Skip to content

Commit 2e9e280

Browse files
author
fengyikai
committed
pom
1 parent 774ec2a commit 2e9e280

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ jobs:
4848
with:
4949
java-version: '8'
5050
distribution: 'adopt'
51-
server-id: central
51+
server-id: ossrh
5252
server-username: MAVEN_USERNAME
5353
server-password: MAVEN_PASSWORD
54+
cache: 'maven'
5455

5556
- name: Install gpg secret key
5657
run: |

pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,20 @@
233233
<groupId>org.sonatype.plugins</groupId>
234234
<artifactId>nexus-staging-maven-plugin</artifactId>
235235
<version>${dep.nexus-staging-maven-plugin.version}</version>
236-
<extensions>true</extensions>
237236
<configuration>
238237
<serverId>ossrh</serverId>
239238
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
240239
<autoReleaseAfterClose>true</autoReleaseAfterClose>
241240
</configuration>
241+
<executions>
242+
<execution>
243+
<id>default-deploy</id>
244+
<phase>deploy</phase>
245+
<goals>
246+
<goal>deploy</goal>
247+
</goals>
248+
</execution>
249+
</executions>
242250
</plugin>
243251

244252
</plugins>

0 commit comments

Comments
 (0)