Skip to content

Commit 6273620

Browse files
authored
Merge pull request #2 from prchen/release
add ossrh plugin configurations
2 parents 7e2688b + 4a084e1 commit 6273620

File tree

1 file changed

+62
-13
lines changed

1 file changed

+62
-13
lines changed

pom.xml

Lines changed: 62 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,40 @@
1717
<description>Antares is an SpringBoot extension used to simplify the process of dynamically registering beans to Spring context.</description>
1818
<url>https://github.com/prchen/antares</url>
1919

20+
<licenses>
21+
<license>
22+
<name>Apache License, Version 2.0</name>
23+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
24+
<distribution>repo</distribution>
25+
</license>
26+
</licenses>
27+
28+
<developers>
29+
<developer>
30+
<name>prchen</name>
31+
<email>[email protected]</email>
32+
<organization>prchen</organization>
33+
<organizationUrl>https://github.com/prchen</organizationUrl>
34+
</developer>
35+
</developers>
36+
37+
<scm>
38+
<connection>scm:git:git://github.com/prchen/antares.git</connection>
39+
<developerConnection>scm:git:ssh://github.com/prchen/antares.git</developerConnection>
40+
<url>https://github.com/prchen/antares/tree/master</url>
41+
</scm>
42+
43+
<distributionManagement>
44+
<snapshotRepository>
45+
<id>ossrh</id>
46+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
47+
</snapshotRepository>
48+
<repository>
49+
<id>ossrh</id>
50+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
51+
</repository>
52+
</distributionManagement>
53+
2054
<properties>
2155
<maven.compiler.source>1.8</maven.compiler.source>
2256
<maven.compiler.target>1.8</maven.compiler.target>
@@ -43,18 +77,20 @@
4377
<plugin>
4478
<groupId>org.apache.maven.plugins</groupId>
4579
<artifactId>maven-source-plugin</artifactId>
80+
<version>2.2.1</version>
4681
<executions>
4782
<execution>
4883
<id>attach-sources</id>
4984
<goals>
50-
<goal>jar</goal>
85+
<goal>jar-no-fork</goal>
5186
</goals>
5287
</execution>
5388
</executions>
5489
</plugin>
5590
<plugin>
5691
<groupId>org.apache.maven.plugins</groupId>
5792
<artifactId>maven-javadoc-plugin</artifactId>
93+
<version>2.9.1</version>
5894
<executions>
5995
<execution>
6096
<id>attach-javadocs</id>
@@ -64,18 +100,31 @@
64100
</execution>
65101
</executions>
66102
</plugin>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-gpg-plugin</artifactId>
106+
<version>1.5</version>
107+
<executions>
108+
<execution>
109+
<id>sign-artifacts</id>
110+
<phase>verify</phase>
111+
<goals>
112+
<goal>sign</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.sonatype.plugins</groupId>
119+
<artifactId>nexus-staging-maven-plugin</artifactId>
120+
<version>1.6.7</version>
121+
<extensions>true</extensions>
122+
<configuration>
123+
<serverId>ossrh</serverId>
124+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
125+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
126+
</configuration>
127+
</plugin>
67128
</plugins>
68129
</build>
69-
70-
<distributionManagement>
71-
<snapshotRepository>
72-
<id>snapshots</id>
73-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
74-
</snapshotRepository>
75-
<repository>
76-
<id>central</id>
77-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
78-
</repository>
79-
</distributionManagement>
80-
81130
</project>

0 commit comments

Comments
 (0)