Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,33 @@
</execution>
</executions>
</plugin>
<!-- Require profile `snapshot` or `release` when deploying.
Having explicit profiles (instead of relying on deploy plugin's
automatic snapshot/release routing) prevents the "on push"
snapshot publish action from accidentally publishing a release version. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-deploy-has-active-profile</id>
<phase>deploy</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProfileIdsExist/>
<requireActiveProfile>
<profiles>snapshot,release</profiles>
<all>false</all>
</requireActiveProfile>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down Expand Up @@ -178,33 +205,6 @@
</execution>
</executions>
</plugin>
<!-- Require profile `snapshot` or `release` when deploying.
Having explicit profiles (instead of relying on deploy plugin's
automatic snapshot/release routing) prevents the "on push"
snapshot publish action from accidentally publishing a release version. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-deploy-has-active-profile</id>
<phase>deploy</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProfileIdsExist/>
<requireActiveProfile>
<profiles>snapshot,release</profiles>
<all>false</all>
</requireActiveProfile>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Loading