Skip to content

Commit 9ed1265

Browse files
committed
Prepare POM for sonatype deployment
1 parent d27d0f2 commit 9ed1265

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

pom.xml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
<connection>scm:git:git://github.com/usb4java/${project.artifactId}.git</connection>
6767
<developerConnection>scm:git:ssh://git@github.com/usb4java/${project.artifactId}.git</developerConnection>
6868
<url>http://github.com/usb4java/${project.artifactId}</url>
69-
<tag>HEAD</tag>
7069
</scm>
7170

7271
<issueManagement>
@@ -216,14 +215,67 @@
216215
<artifactId>maven-resources-plugin</artifactId>
217216
<version>3.1.0</version>
218217
</plugin>
218+
<plugin>
219+
<groupId>org.apache.maven.plugins</groupId>
220+
<artifactId>maven-source-plugin</artifactId>
221+
<version>3.0.1</version>
222+
</plugin>
223+
<plugin>
224+
<groupId>org.apache.maven.plugins</groupId>
225+
<artifactId>maven-javadoc-plugin</artifactId>
226+
<version>3.0.1</version>
227+
</plugin>
228+
<plugin>
229+
<groupId>org.apache.maven.plugins</groupId>
230+
<artifactId>maven-release-plugin</artifactId>
231+
<version>2.5.3</version>
232+
</plugin>
219233
</plugins>
220234
</build>
221235

236+
<profiles>
237+
<profile>
238+
<id>release-sign-artifacts</id>
239+
<activation>
240+
<property>
241+
<name>performRelease</name>
242+
<value>true</value>
243+
</property>
244+
</activation>
245+
<build>
246+
<plugins>
247+
<plugin>
248+
<groupId>org.apache.maven.plugins</groupId>
249+
<artifactId>maven-gpg-plugin</artifactId>
250+
<version>1.6</version>
251+
<executions>
252+
<execution>
253+
<id>sign-artifacts</id>
254+
<phase>verify</phase>
255+
<goals>
256+
<goal>sign</goal>
257+
</goals>
258+
</execution>
259+
</executions>
260+
</plugin>
261+
</plugins>
262+
</build>
263+
</profile>
264+
</profiles>
265+
222266
<repositories>
267+
<repository>
268+
<id>sonatype-releases</id>
269+
<name>Sonatype Snapshot Repository</name>
270+
<url>https://oss.sonatype.org/content/repositories/releases</url>
271+
<releases><enabled>true</enabled></releases>
272+
<snapshots><enabled>false</enabled></snapshots>
273+
</repository>
223274
<repository>
224275
<id>sonatype-snapshots</id>
225276
<name>Sonatype Snapshot Repository</name>
226277
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
278+
<releases><enabled>false</enabled></releases>
227279
<snapshots><enabled>true</enabled></snapshots>
228280
</repository>
229281
</repositories>
@@ -271,7 +323,7 @@
271323
<dependency>
272324
<groupId>org.usb4java</groupId>
273325
<artifactId>usb4java</artifactId>
274-
<version>1.3.0-SNAPSHOT</version>
326+
<version>1.3.0</version>
275327
</dependency>
276328
</dependencies>
277329

0 commit comments

Comments
 (0)