Skip to content

Commit 75d9b04

Browse files
committed
ossrh
1 parent f50bc22 commit 75d9b04

File tree

1 file changed

+117
-26
lines changed

1 file changed

+117
-26
lines changed

pom.xml

Lines changed: 117 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -120,77 +120,168 @@
120120
<compilerArgument>-Xlint:deprecation</compilerArgument>
121121
</configuration>
122122
</plugin>
123+
123124
</plugins>
124125
</build>
125126

126127
<profiles>
127128
<profile>
128-
<id>dev</id>
129-
<activation>
130-
<activeByDefault>true</activeByDefault>
131-
</activation>
129+
<id>travis</id>
132130
<properties>
133-
<boot.profile>dev</boot.profile>
131+
<boot.profile>travis</boot.profile>
134132
</properties>
135133
<build>
136134
<plugins>
137135
<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>
141139
<executions>
142140
<execution>
143-
<id>attach-sources</id>
144141
<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>
146150
</goals>
147151
</execution>
148152
</executions>
149153
</plugin>
150154

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>
151165
</plugins>
152166
</build>
153167
</profile>
168+
154169
<profile>
155-
<id>travis</id>
170+
<id>ossrh</id>
171+
156172
<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>
158183
</properties>
159184
<build>
160185
<plugins>
186+
161187
<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>
165191
<executions>
166192
<execution>
193+
<id>attach-sources</id>
167194
<goals>
168-
<goal>prepare-agent</goal>
195+
<goal>jar-no-fork</goal>
169196
</goals>
170197
</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>
171220
<execution>
172-
<id>report</id>
173-
<phase>test</phase>
221+
<id>attach-javadocs</id>
174222
<goals>
175-
<goal>report</goal>
223+
<goal>jar</goal>
176224
</goals>
177225
</execution>
178226
</executions>
179227
</plugin>
180228

181229

182230
<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>
190243
</plugin>
244+
191245
</plugins>
192246
</build>
193247
</profile>
248+
194249
</profiles>
195250

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+
<email>[email protected]</email>
280+
<roles>
281+
<role>developer</role>
282+
</roles>
283+
<timezone>+8</timezone>
284+
</developer>
285+
</developers>
286+
196287
</project>

0 commit comments

Comments
 (0)