Skip to content

Commit a240b63

Browse files
authored
Disabled maven-deploy-plugin. (#461)
* Disabled `maven-deploy-plugin`. * Removed `distribution-management` section.
1 parent 5a7f1a4 commit a240b63

File tree

4 files changed

+13
-57
lines changed

4 files changed

+13
-57
lines changed

openfasttrace-mc-deployable-parent/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ It is maintained separately from the main parent POM for the following reasons:
5656
</execution>
5757
</executions>
5858
</plugin>
59-
<!-- This plugin needs to be skipped when using the central-publishing-maven-plugin
60-
-->
61-
<plugin>
62-
<groupId>org.apache.maven.plugins</groupId>
63-
<artifactId>maven-deploy-plugin</artifactId>
64-
<version>3.1.4</version>
65-
<configuration>
66-
<skip>true</skip>
67-
</configuration>
68-
</plugin>
6959
</plugins>
7060
</build>
7161
</profile>

parent/pom.xml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,16 @@
582582
</execution>
583583
</executions>
584584
</plugin>
585+
<!-- The maven-deploy-plugin MUST be disabled when using the central-publishing-maven-plugin!
586+
-->
587+
<plugin>
588+
<groupId>org.apache.maven.plugins</groupId>
589+
<artifactId>maven-deploy-plugin</artifactId>
590+
<!-- The version does not really matter if all we want is disabling the plugin -->
591+
<configuration>
592+
<skip>true</skip>
593+
</configuration>
594+
</plugin>
585595
<!--This
586596
plugin's configuration is used to store Eclipse
587597
m2e settings only. It has no influence on the Maven build itself. -->
@@ -669,16 +679,7 @@
669679
</plugin>
670680
</plugins>
671681
</reporting>
672-
<distributionManagement>
673-
<repository>
674-
<id>central</id>
675-
<name>Maven Central</name>
676-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
677-
</repository>
678-
<snapshotRepository>
679-
<id>central</id>
680-
<name>Maven Central Snapshots</name>
681-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
682-
</snapshotRepository>
683-
</distributionManagement>
682+
<!-- With the central-publishing-plugin, the distribution management section
683+
is now obsolete, since the only place this plugin can deploy to is Maven
684+
central anyway. -->
684685
</project>

pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,4 @@
3535
<module>reporter/aspec</module>
3636
<module>testutil</module>
3737
</modules>
38-
<build>
39-
<plugins>
40-
<plugin>
41-
<groupId>org.apache.maven.plugins</groupId>
42-
<artifactId>maven-deploy-plugin</artifactId>
43-
<version>3.1.4</version>
44-
<configuration>
45-
<skip>true</skip>
46-
</configuration>
47-
</plugin>
48-
</plugins>
49-
</build>
5038
</project>

testutil/pom.xml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,29 +73,6 @@
7373
<useModulePath>false</useModulePath>
7474
</configuration>
7575
</plugin>
76-
<!-- Skip everything that has to do with deployment to Maven Central -->
77-
<plugin>
78-
<groupId>org.apache.maven.plugins</groupId>
79-
<artifactId>maven-deploy-plugin</artifactId>
80-
<configuration>
81-
<skip>true</skip>
82-
</configuration>
83-
</plugin>
84-
<plugin>
85-
<groupId>org.sonatype.central</groupId>
86-
<artifactId>central-publishing-maven-plugin</artifactId>
87-
<configuration>
88-
<autoPublish>false</autoPublish>
89-
<skipPublishing>true</skipPublishing>
90-
</configuration>
91-
</plugin>
92-
<plugin>
93-
<groupId>org.apache.maven.plugins</groupId>
94-
<artifactId>maven-gpg-plugin</artifactId>
95-
<configuration>
96-
<skip>true</skip>
97-
</configuration>
98-
</plugin>
9976
</plugins>
10077
</build>
10178
</project>

0 commit comments

Comments
 (0)