Skip to content

Commit 8b5f8b5

Browse files
author
lbw
committed
💚 Fixing CI Build. 修复快照包上传github action pom 配置
1 parent 79f6c1a commit 8b5f8b5

File tree

1 file changed

+80
-2
lines changed

1 file changed

+80
-2
lines changed

Diff for: pom.xml

+80-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101

102102
<profiles>
103103
<profile>
104-
<id>release</id>
104+
<id>snapshot</id>
105105
<build>
106106
<plugins>
107107
<!-- Source -->
@@ -129,7 +129,7 @@
129129
<charset>UTF-8</charset>
130130
<encoding>UTF-8</encoding>
131131
<docencoding>UTF-8</docencoding>
132-
<additionalparam>-Xdoclint:none</additionalparam>
132+
<doclint>none</doclint>
133133
<detectJavaApiLink>false</detectJavaApiLink>
134134
</configuration>
135135
<executions>
@@ -182,6 +182,84 @@
182182
https://oss.sonatype.org/content/repositories/snapshots/
183183
</url>
184184
</snapshotRepository>
185+
</distributionManagement>
186+
</profile>
187+
<profile>
188+
<id>release</id>
189+
<build>
190+
<plugins>
191+
<!-- Source -->
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-source-plugin</artifactId>
195+
<version>2.2.1</version>
196+
<executions>
197+
<execution>
198+
<phase>package</phase>
199+
<goals>
200+
<goal>jar-no-fork</goal>
201+
</goals>
202+
</execution>
203+
</executions>
204+
</plugin>
205+
<!-- Javadoc -->
206+
<plugin>
207+
<groupId>org.apache.maven.plugins</groupId>
208+
<artifactId>maven-javadoc-plugin</artifactId>
209+
<version>3.3.2</version>
210+
<configuration>
211+
<show>private</show>
212+
<nohelp>true</nohelp>
213+
<charset>UTF-8</charset>
214+
<encoding>UTF-8</encoding>
215+
<docencoding>UTF-8</docencoding>
216+
<doclint>none</doclint>
217+
<detectJavaApiLink>false</detectJavaApiLink>
218+
</configuration>
219+
<executions>
220+
<execution>
221+
<phase>package</phase>
222+
<goals>
223+
<goal>jar</goal>
224+
</goals>
225+
</execution>
226+
</executions>
227+
</plugin>
228+
<!-- GPG -->
229+
<plugin>
230+
<groupId>org.apache.maven.plugins</groupId>
231+
<artifactId>maven-gpg-plugin</artifactId>
232+
<version>3.0.1</version>
233+
<executions>
234+
<execution>
235+
<id>sign-artifacts</id>
236+
<phase>verify</phase>
237+
<goals>
238+
<goal>sign</goal>
239+
</goals>
240+
</execution>
241+
</executions>
242+
<configuration>
243+
<gpgArguments>
244+
<arg>--pinentry-mode</arg>
245+
<arg>loopback</arg>
246+
</gpgArguments>
247+
</configuration>
248+
</plugin>
249+
<plugin>
250+
<groupId>org.sonatype.plugins</groupId>
251+
<artifactId>nexus-staging-maven-plugin</artifactId>
252+
<version>1.6.13</version>
253+
<extensions>true</extensions>
254+
<configuration>
255+
<serverId>sonatype</serverId>
256+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
257+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
258+
</configuration>
259+
</plugin>
260+
</plugins>
261+
</build>
262+
<distributionManagement>
185263
<repository>
186264
<id>sonatype</id>
187265
<url>

0 commit comments

Comments
 (0)