Skip to content

Commit 86f35c4

Browse files
committed
🔧 修复maven打包插件问题
1 parent 1c59da3 commit 86f35c4

File tree

1 file changed

+54
-14
lines changed

1 file changed

+54
-14
lines changed

pom.xml

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,6 @@
117117
</execution>
118118
</executions>
119119
</plugin>
120-
<!-- GPG -->
121-
<plugin>
122-
<groupId>org.apache.maven.plugins</groupId>
123-
<artifactId>maven-gpg-plugin</artifactId>
124-
<version>1.5</version>
125-
<executions>
126-
<execution>
127-
<phase>verify</phase>
128-
<goals>
129-
<goal>sign</goal>
130-
</goals>
131-
</execution>
132-
</executions>
133-
</plugin>
134120
<!-- 支持多个 source -->
135121
<plugin>
136122
<groupId>org.codehaus.mojo</groupId>
@@ -239,6 +225,24 @@
239225
<profiles>
240226
<profile>
241227
<id>release</id>
228+
<build>
229+
<plugins>
230+
<!-- GPG -->
231+
<plugin>
232+
<groupId>org.apache.maven.plugins</groupId>
233+
<artifactId>maven-gpg-plugin</artifactId>
234+
<version>1.5</version>
235+
<executions>
236+
<execution>
237+
<phase>verify</phase>
238+
<goals>
239+
<goal>sign</goal>
240+
</goals>
241+
</execution>
242+
</executions>
243+
</plugin>
244+
</plugins>
245+
</build>
242246
<distributionManagement>
243247
<snapshotRepository>
244248
<id>oss</id>
@@ -254,6 +258,24 @@
254258
</profile>
255259
<profile>
256260
<id>nexus</id>
261+
<build>
262+
<plugins>
263+
<!-- GPG -->
264+
<plugin>
265+
<groupId>org.apache.maven.plugins</groupId>
266+
<artifactId>maven-gpg-plugin</artifactId>
267+
<version>1.5</version>
268+
<executions>
269+
<execution>
270+
<phase>verify</phase>
271+
<goals>
272+
<goal>sign</goal>
273+
</goals>
274+
</execution>
275+
</executions>
276+
</plugin>
277+
</plugins>
278+
</build>
257279
<distributionManagement>
258280
<!-- 发布版私服仓库 -->
259281
<repository>
@@ -271,6 +293,24 @@
271293
</profile>
272294
<profile>
273295
<id>github</id>
296+
<build>
297+
<plugins>
298+
<!-- GPG -->
299+
<plugin>
300+
<groupId>org.apache.maven.plugins</groupId>
301+
<artifactId>maven-gpg-plugin</artifactId>
302+
<version>1.5</version>
303+
<executions>
304+
<execution>
305+
<phase>verify</phase>
306+
<goals>
307+
<goal>sign</goal>
308+
</goals>
309+
</execution>
310+
</executions>
311+
</plugin>
312+
</plugins>
313+
</build>
274314
<distributionManagement>
275315
<!-- 发布到GitHub仓库 -->
276316
<repository>

0 commit comments

Comments
 (0)