Skip to content

Commit 30725ec

Browse files
committed
Switch approach to disabling plugins for releasing
1 parent e04c16c commit 30725ec

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/perform-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- name: "Deploy"
115115
run: |
116116
MVN_ARGS="${{ env.MVN_CLI_ARGS }} -Drelease -s settings.xml"
117-
mvn org.sonatype.central:central-publishing-maven-plugin:publish $MVN_ARGS
117+
mvn deploy $MVN_ARGS
118118
env:
119119
MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
120120

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,28 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
724724
</plugins>
725725
</pluginManagement>
726726
<plugins>
727+
<!-- The release artifacts don't contain our custom config files for these plugins -->
728+
<plugin>
729+
<groupId>org.apache.maven.plugins</groupId>
730+
<artifactId>maven-checkstyle-plugin</artifactId>
731+
<configuration>
732+
<skip>true</skip>
733+
</configuration>
734+
</plugin>
735+
<plugin>
736+
<groupId>org.apache.maven.plugins</groupId>
737+
<artifactId>maven-pmd-plugin</artifactId>
738+
<configuration>
739+
<skip>true</skip>
740+
</configuration>
741+
</plugin>
742+
<plugin>
743+
<groupId>com.github.spotbugs</groupId>
744+
<artifactId>spotbugs-maven-plugin</artifactId>
745+
<configuration>
746+
<skip>true</skip>
747+
</configuration>
748+
</plugin>
727749
<plugin>
728750
<groupId>org.apache.maven.plugins</groupId>
729751
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)