Skip to content

Commit ce7d2c3

Browse files
committed
update version
1 parent 8d83e8a commit ce7d2c3

File tree

1 file changed

+60
-14
lines changed

1 file changed

+60
-14
lines changed

pom.xml

Lines changed: 60 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<execution>
108108
<id>attach-sources</id>
109109
<goals>
110-
<goal>jar</goal>
110+
<goal>jar-no-fork</goal>
111111
</goals>
112112
</execution>
113113
</executions>
@@ -116,9 +116,6 @@
116116
<groupId>org.apache.maven.plugins</groupId>
117117
<artifactId>maven-javadoc-plugin</artifactId>
118118
<version>2.9.1</version>
119-
<configuration>
120-
<encoding>UTF-8</encoding>
121-
</configuration>
122119
<executions>
123120
<execution>
124121
<id>attach-javadocs</id>
@@ -131,38 +128,87 @@
131128
<plugin>
132129
<groupId>org.apache.maven.plugins</groupId>
133130
<artifactId>maven-release-plugin</artifactId>
134-
<version>2.4.1</version>
131+
<version>2.5</version>
132+
<configuration>
133+
<autoVersionSubmodules>true</autoVersionSubmodules>
134+
<useReleaseProfile>false</useReleaseProfile>
135+
<releaseProfiles>release</releaseProfiles>
136+
<goals>deploy</goals>
137+
</configuration>
135138
</plugin>
136139
</plugins>
137140
</build>
138141

139142
<profiles>
140143
<profile>
141-
<id>release-sign-artifacts</id>
142-
<activation>
143-
<property>
144-
<name>performRelease</name>
145-
<value>true</value>
146-
</property>
147-
</activation>
144+
<id>release</id>
148145
<build>
149146
<plugins>
147+
<!-- Source -->
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-source-plugin</artifactId>
151+
<version>2.2.1</version>
152+
<executions>
153+
<execution>
154+
<phase>package</phase>
155+
<goals>
156+
<goal>jar-no-fork</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
</plugin>
161+
<!-- Javadoc -->
162+
<plugin>
163+
<groupId>org.apache.maven.plugins</groupId>
164+
<artifactId>maven-javadoc-plugin</artifactId>
165+
<version>2.9.1</version>
166+
<executions>
167+
<execution>
168+
<phase>package</phase>
169+
<goals>
170+
<goal>jar</goal>
171+
</goals>
172+
</execution>
173+
</executions>
174+
</plugin>
175+
<!-- GPG -->
150176
<plugin>
151177
<groupId>org.apache.maven.plugins</groupId>
152178
<artifactId>maven-gpg-plugin</artifactId>
153-
<version>1.1</version>
179+
<version>1.5</version>
154180
<executions>
155181
<execution>
156-
<id>sign-artifacts</id>
157182
<phase>verify</phase>
158183
<goals>
159184
<goal>sign</goal>
160185
</goals>
161186
</execution>
162187
</executions>
163188
</plugin>
189+
<plugin>
190+
<groupId>org.sonatype.plugins</groupId>
191+
<artifactId>nexus-staging-maven-plugin</artifactId>
192+
<version>1.6</version>
193+
<extensions>true</extensions>
194+
<configuration>
195+
<serverId>sonatype-nexus-staging</serverId>
196+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
197+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
198+
</configuration>
199+
</plugin>
164200
</plugins>
165201
</build>
202+
<distributionManagement>
203+
<snapshotRepository>
204+
<id>sonatype-nexus-snapshots</id>
205+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
206+
</snapshotRepository>
207+
<repository>
208+
<id>sonatype-nexus-staging</id>
209+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
210+
</repository>
211+
</distributionManagement>
166212
</profile>
167213
</profiles>
168214

0 commit comments

Comments
 (0)