Skip to content

Commit e17945c

Browse files
committed
配置发布pom
1 parent 333c04a commit e17945c

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

pom.xml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@
3232
<version>2.1.1.RELEASE</version>
3333
</parent>
3434

35+
<distributionManagement>
36+
<snapshotRepository>
37+
<id>oss</id>
38+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
39+
</snapshotRepository>
40+
<repository>
41+
<id>oss</id>
42+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
43+
</repository>
44+
</distributionManagement>
45+
46+
3547
<dependencyManagement>
3648
<dependencies>
3749
<dependency>
@@ -78,13 +90,112 @@
7890
</dependency>
7991

8092
</dependencies>
93+
8194
</dependencyManagement>
8295

8396
<dependencies>
8497

8598
</dependencies>
8699

100+
<profiles>
101+
<profile>
102+
<id>release</id>
103+
<build>
104+
105+
<plugins>
106+
<plugin>
107+
<groupId>org.sonatype.plugins</groupId>
108+
<artifactId>nexus-staging-maven-plugin</artifactId>
109+
<version>1.6.7</version>
110+
<extensions>true</extensions>
111+
<configuration>
112+
<serverId>ossrh</serverId>
113+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
114+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
115+
</configuration>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-release-plugin</artifactId>
120+
<version>2.5</version>
121+
<configuration>
122+
<autoVersionSubmodules>true</autoVersionSubmodules>
123+
<useReleaseProfile>false</useReleaseProfile>
124+
<releaseProfiles>release</releaseProfiles>
125+
<goals>deploy</goals>
126+
</configuration>
127+
</plugin>
128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-source-plugin</artifactId>
131+
<version>2.2.1</version>
132+
<executions>
133+
<execution>
134+
<id>attach-sources</id>
135+
<goals>
136+
<goal>jar-no-fork</goal>
137+
</goals>
138+
</execution>
139+
</executions>
140+
</plugin>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-javadoc-plugin</artifactId>
144+
<version>2.9.1</version>
145+
<executions>
146+
<execution>
147+
<id>attach-javadocs</id>
148+
<goals>
149+
<goal>jar</goal>
150+
</goals>
151+
</execution>
152+
</executions>
153+
</plugin>
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-gpg-plugin</artifactId>
157+
<version>1.5</version>
158+
<executions>
159+
<execution>
160+
<id>sign-artifacts</id>
161+
<phase>verify</phase>
162+
<goals>
163+
<goal>sign</goal>
164+
</goals>
165+
</execution>
166+
</executions>
167+
</plugin>
168+
</plugins>
169+
</build>
170+
</profile>
171+
</profiles>
172+
173+
<licenses>
174+
<license>
175+
<name>GNU General Public License v3.0</name>
176+
<url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
177+
</license>
178+
</licenses>
179+
180+
<scm>
181+
<connection>https://github.com/lvyahui8/spring-boot-data-aggregator</connection>
182+
<url>https://github.com/lvyahui8/spring-boot-data-aggregator.git</url>
183+
<developerConnection>https://github.com/lvyahui8</developerConnection>
184+
</scm>
185+
186+
<developers>
187+
<developer>
188+
<name>Feego</name>
189+
<email>[email protected]</email>
190+
<url>https://github.com/lvyahui8</url>
191+
</developer>
192+
</developers>
193+
87194
<build>
195+
<pluginManagement>
196+
<plugins>
88197

198+
</plugins>
199+
</pluginManagement>
89200
</build>
90201
</project>

0 commit comments

Comments
 (0)