Skip to content

Commit a6e2a82

Browse files
author
Emil Forslund
committed
Add nexus plugin
1 parent ca5c07b commit a6e2a82

1 file changed

Lines changed: 22 additions & 8 deletions

File tree

pom.xml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<modelVersion>4.0.0</modelVersion>
2222
<groupId>com.github.pyknic</groupId>
2323
<artifactId>codegen</artifactId>
24-
<version>1.1.1-SNAPSHOT</version>
24+
<version>1.1.2-SNAPSHOT</version>
2525
<packaging>jar</packaging>
2626

2727
<name>CodeGen</name>
@@ -64,7 +64,7 @@
6464
</snapshotRepository>
6565
<repository>
6666
<id>ossrh</id>
67-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
67+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
6868
</repository>
6969
</distributionManagement>
7070

@@ -157,15 +157,29 @@
157157
</executions>
158158
<configuration>
159159
<useagent>true</useagent>
160-
<!--<defaultKeyring>false</defaultKeyring>-->
161-
162160
<keyname>${gpg.keyname}</keyname>
163161
<passphrase>${gpg.passphrase}</passphrase>
164-
<!--<passphraseServerId>ossrh</passphraseServerId>-->
165-
166162
<executable>${gpg.executable}</executable>
167-
<!-- <publicKeyring>${gpg.homedir}/pubring.gpg</publicKeyring>
168-
<secretKeyring>${gpg.homedir}/secring.gpg</secretKeyring>-->
163+
</configuration>
164+
</plugin>
165+
<plugin>
166+
<groupId>org.sonatype.plugins</groupId>
167+
<artifactId>nexus-staging-maven-plugin</artifactId>
168+
<version>1.6.3</version>
169+
<extensions>true</extensions>
170+
<executions>
171+
<execution>
172+
<id>default-deploy</id>
173+
<phase>deploy</phase>
174+
<goals>
175+
<goal>deploy</goal>
176+
</goals>
177+
</execution>
178+
</executions>
179+
<configuration>
180+
<serverId>ossrh</serverId>
181+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
182+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
169183
</configuration>
170184
</plugin>
171185
</plugins>

0 commit comments

Comments
 (0)