Skip to content

Commit 2d67f09

Browse files
Dewey joseDewey jose
authored andcommitted
Move deploy/publish plugins to release profile in parent POM; keep pluginManagement for compile, plugin, and spotless only
1 parent 32b5348 commit 2d67f09

File tree

1 file changed

+17
-47
lines changed

1 file changed

+17
-47
lines changed

pom.xml

Lines changed: 17 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -123,54 +123,9 @@
123123
</repository>
124124
</distributionManagement>
125125

126-
<build>
127-
<plugins>
128-
<plugin>
129-
<groupId>org.apache.maven.plugins</groupId>
130-
<artifactId>maven-deploy-plugin</artifactId>
131-
<version>3.1.1</version>
132-
<configuration>
133-
<skip>true</skip>
134-
</configuration>
135-
</plugin>
136-
<plugin>
137-
<groupId>org.apache.maven.plugins</groupId>
138-
<artifactId>maven-gpg-plugin</artifactId>
139-
<version>3.2.7</version>
140-
<configuration>
141-
<skip>true</skip>
142-
</configuration>
143-
</plugin>
144-
<plugin>
145-
<groupId>org.apache.maven.plugins</groupId>
146-
<artifactId>maven-source-plugin</artifactId>
147-
<version>3.3.1</version>
148-
<configuration>
149-
<skip>true</skip>
150-
</configuration>
151-
</plugin>
152-
<plugin>
153-
<groupId>org.apache.maven.plugins</groupId>
154-
<artifactId>maven-javadoc-plugin</artifactId>
155-
<version>3.11.2</version>
156-
<configuration>
157-
<skip>true</skip>
158-
</configuration>
159-
</plugin>
160-
</plugins>
126+
<build>
161127
<pluginManagement>
162128
<plugins>
163-
<plugin>
164-
<groupId>org.sonatype.plugins</groupId>
165-
<artifactId>nexus-staging-maven-plugin</artifactId>
166-
<version>${nexus-staging-maven-plugin.version}</version>
167-
<extensions>true</extensions>
168-
<configuration>
169-
<serverId>ossrh</serverId>
170-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
171-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
172-
</configuration>
173-
</plugin>
174129
<plugin>
175130
<groupId>org.apache.maven.plugins</groupId>
176131
<artifactId>maven-compiler-plugin</artifactId>
@@ -212,6 +167,22 @@
212167
<id>release</id>
213168
<build>
214169
<plugins>
170+
<plugin>
171+
<groupId>org.sonatype.plugins</groupId>
172+
<artifactId>nexus-staging-maven-plugin</artifactId>
173+
<version>${nexus-staging-maven-plugin.version}</version>
174+
<extensions>true</extensions>
175+
<configuration>
176+
<serverId>ossrh</serverId>
177+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
178+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
179+
</configuration>
180+
</plugin>
181+
<plugin>
182+
<groupId>org.apache.maven.plugins</groupId>
183+
<artifactId>maven-deploy-plugin</artifactId>
184+
<version>3.1.1</version>
185+
</plugin>
215186
<plugin>
216187
<groupId>org.apache.maven.plugins</groupId>
217188
<artifactId>maven-source-plugin</artifactId>
@@ -252,7 +223,6 @@
252223
</execution>
253224
</executions>
254225
<configuration>
255-
<!-- Prevent gpg from using pinentry programs -->
256226
<gpgArguments>
257227
<arg>--pinentry-mode</arg>
258228
<arg>loopback</arg>

0 commit comments

Comments
 (0)