|
120 | 120 | <compilerArgument>-Xlint:deprecation</compilerArgument>
|
121 | 121 | </configuration>
|
122 | 122 | </plugin>
|
| 123 | + |
123 | 124 | </plugins>
|
124 | 125 | </build>
|
125 | 126 |
|
126 | 127 | <profiles>
|
127 | 128 | <profile>
|
128 |
| - <id>dev</id> |
129 |
| - <activation> |
130 |
| - <activeByDefault>true</activeByDefault> |
131 |
| - </activation> |
| 129 | + <id>travis</id> |
132 | 130 | <properties>
|
133 |
| - <boot.profile>dev</boot.profile> |
| 131 | + <boot.profile>travis</boot.profile> |
134 | 132 | </properties>
|
135 | 133 | <build>
|
136 | 134 | <plugins>
|
137 | 135 | <plugin>
|
138 |
| - <groupId>org.apache.maven.plugins</groupId> |
139 |
| - <artifactId>maven-source-plugin</artifactId> |
140 |
| - <version>${maven.source.plugin}</version> |
| 136 | + <groupId>org.jacoco</groupId> |
| 137 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 138 | + <version>0.8.2</version> |
141 | 139 | <executions>
|
142 | 140 | <execution>
|
143 |
| - <id>attach-sources</id> |
144 | 141 | <goals>
|
145 |
| - <goal>jar-no-fork</goal> |
| 142 | + <goal>prepare-agent</goal> |
| 143 | + </goals> |
| 144 | + </execution> |
| 145 | + <execution> |
| 146 | + <id>report</id> |
| 147 | + <phase>test</phase> |
| 148 | + <goals> |
| 149 | + <goal>report</goal> |
146 | 150 | </goals>
|
147 | 151 | </execution>
|
148 | 152 | </executions>
|
149 | 153 | </plugin>
|
150 | 154 |
|
| 155 | + |
| 156 | + <plugin> |
| 157 | + <groupId>org.openclover</groupId> |
| 158 | + <artifactId>clover-maven-plugin</artifactId> |
| 159 | + <version>4.3.1</version> |
| 160 | + <configuration> |
| 161 | + <generateHtml>true</generateHtml> |
| 162 | + <generateXml>true</generateXml> |
| 163 | + </configuration> |
| 164 | + </plugin> |
151 | 165 | </plugins>
|
152 | 166 | </build>
|
153 | 167 | </profile>
|
| 168 | + |
154 | 169 | <profile>
|
155 |
| - <id>travis</id> |
| 170 | + <id>ossrh</id> |
| 171 | + |
156 | 172 | <properties>
|
157 |
| - <boot.profile>travis</boot.profile> |
| 173 | + <repository.id>ossrh</repository.id> |
| 174 | + <repository.name>Maven Central Staging Repository</repository.name> |
| 175 | + <repository.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</repository.url> |
| 176 | + |
| 177 | + <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format> |
| 178 | + <nexus.staging.maven.plugin>1.6.3</nexus.staging.maven.plugin> |
| 179 | + <maven.source.plugin>3.0.1</maven.source.plugin> |
| 180 | + <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version> |
| 181 | + <maven.javadoc.plugin>2.10.3</maven.javadoc.plugin> |
| 182 | + <maven.gpg.plugin>1.6</maven.gpg.plugin> |
158 | 183 | </properties>
|
159 | 184 | <build>
|
160 | 185 | <plugins>
|
| 186 | + |
161 | 187 | <plugin>
|
162 |
| - <groupId>org.jacoco</groupId> |
163 |
| - <artifactId>jacoco-maven-plugin</artifactId> |
164 |
| - <version>0.8.2</version> |
| 188 | + <groupId>org.apache.maven.plugins</groupId> |
| 189 | + <artifactId>maven-source-plugin</artifactId> |
| 190 | + <version>${maven.source.plugin}</version> |
165 | 191 | <executions>
|
166 | 192 | <execution>
|
| 193 | + <id>attach-sources</id> |
167 | 194 | <goals>
|
168 |
| - <goal>prepare-agent</goal> |
| 195 | + <goal>jar-no-fork</goal> |
169 | 196 | </goals>
|
170 | 197 | </execution>
|
| 198 | + </executions> |
| 199 | + </plugin> |
| 200 | + |
| 201 | + |
| 202 | + <plugin> |
| 203 | + <groupId>org.sonatype.plugins</groupId> |
| 204 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 205 | + <version>${nexus.staging.maven.plugin}</version> |
| 206 | + <extensions>true</extensions> |
| 207 | + <configuration> |
| 208 | + <serverId>ossrh</serverId> |
| 209 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 210 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 211 | + </configuration> |
| 212 | + </plugin> |
| 213 | + |
| 214 | + |
| 215 | + <plugin> |
| 216 | + <groupId>org.apache.maven.plugins</groupId> |
| 217 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 218 | + <version>${maven.javadoc.plugin}</version> |
| 219 | + <executions> |
171 | 220 | <execution>
|
172 |
| - <id>report</id> |
173 |
| - <phase>test</phase> |
| 221 | + <id>attach-javadocs</id> |
174 | 222 | <goals>
|
175 |
| - <goal>report</goal> |
| 223 | + <goal>jar</goal> |
176 | 224 | </goals>
|
177 | 225 | </execution>
|
178 | 226 | </executions>
|
179 | 227 | </plugin>
|
180 | 228 |
|
181 | 229 |
|
182 | 230 | <plugin>
|
183 |
| - <groupId>org.openclover</groupId> |
184 |
| - <artifactId>clover-maven-plugin</artifactId> |
185 |
| - <version>4.3.1</version> |
186 |
| - <configuration> |
187 |
| - <generateHtml>true</generateHtml> |
188 |
| - <generateXml>true</generateXml> |
189 |
| - </configuration> |
| 231 | + <groupId>org.apache.maven.plugins</groupId> |
| 232 | + <artifactId>maven-gpg-plugin</artifactId> |
| 233 | + <version>${maven.gpg.plugin}</version> |
| 234 | + <executions> |
| 235 | + <execution> |
| 236 | + <id>sign-artifacts</id> |
| 237 | + <phase>verify</phase> |
| 238 | + <goals> |
| 239 | + <goal>sign</goal> |
| 240 | + </goals> |
| 241 | + </execution> |
| 242 | + </executions> |
190 | 243 | </plugin>
|
| 244 | + |
191 | 245 | </plugins>
|
192 | 246 | </build>
|
193 | 247 | </profile>
|
| 248 | + |
194 | 249 | </profiles>
|
195 | 250 |
|
| 251 | + |
| 252 | + |
| 253 | + <distributionManagement> |
| 254 | + <repository> |
| 255 | + <id>ossrh</id> |
| 256 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 257 | + </repository> |
| 258 | + </distributionManagement> |
| 259 | + |
| 260 | + |
| 261 | + <scm> |
| 262 | + <connection>scm:git:https://github.com/codingapi/simple-mybatis.git</connection> |
| 263 | + <developerConnection>scm:git:https://github.com/codingapi/simple-mybatis.git</developerConnection> |
| 264 | + <url>https://github.com/codingapi/simple-mybatis</url> |
| 265 | + <tag>v${project.version}</tag> |
| 266 | + </scm> |
| 267 | + |
| 268 | + |
| 269 | + <licenses> |
| 270 | + <license> |
| 271 | + <name>The Apache License, Version 2.0</name> |
| 272 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 273 | + </license> |
| 274 | + </licenses> |
| 275 | + |
| 276 | + <developers> |
| 277 | + <developer> |
| 278 | + <name>lorne</name> |
| 279 | + |
| 280 | + <roles> |
| 281 | + <role>developer</role> |
| 282 | + </roles> |
| 283 | + <timezone>+8</timezone> |
| 284 | + </developer> |
| 285 | + </developers> |
| 286 | + |
196 | 287 | </project>
|
0 commit comments