Skip to content

Commit 5a9153f

Browse files
committed
pom: Separate github and ossrh profiles and their requirements for deployment
1 parent 11a5d9f commit 5a9153f

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

pom.xml

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,6 @@
9898
<releaseProfiles>release</releaseProfiles>
9999
</configuration>
100100
</plugin>
101-
<plugin>
102-
<groupId>org.apache.maven.plugins</groupId>
103-
<artifactId>maven-gpg-plugin</artifactId>
104-
<version>1.6</version>
105-
<executions>
106-
<execution>
107-
<id>sign-artifacts</id>
108-
<phase>verify</phase>
109-
<goals>
110-
<goal>sign</goal>
111-
</goals>
112-
</execution>
113-
</executions>
114-
</plugin>
115-
<plugin>
116-
<groupId>org.sonatype.plugins</groupId>
117-
<artifactId>nexus-staging-maven-plugin</artifactId>
118-
<version>1.6.7</version>
119-
<extensions>true</extensions>
120-
<configuration>
121-
<serverId>ossrh</serverId>
122-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
123-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
124-
</configuration>
125-
</plugin>
126101
</plugins>
127102
</build>
128103
<profiles>
@@ -141,6 +116,35 @@
141116
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
142117
</repository>
143118
</distributionManagement>
119+
<build>
120+
<plugins>
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-gpg-plugin</artifactId>
124+
<version>1.6</version>
125+
<executions>
126+
<execution>
127+
<id>sign-artifacts</id>
128+
<phase>verify</phase>
129+
<goals>
130+
<goal>sign</goal>
131+
</goals>
132+
</execution>
133+
</executions>
134+
</plugin>
135+
<plugin>
136+
<groupId>org.sonatype.plugins</groupId>
137+
<artifactId>nexus-staging-maven-plugin</artifactId>
138+
<version>1.6.7</version>
139+
<extensions>true</extensions>
140+
<configuration>
141+
<serverId>ossrh</serverId>
142+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
143+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
144+
</configuration>
145+
</plugin>
146+
</plugins>
147+
</build>
144148
</profile>
145149
<profile>
146150
<id>github</id>

0 commit comments

Comments
 (0)