Skip to content

Commit 1f5d832

Browse files
committed
add exists-maven-plugin
1 parent 853f373 commit 1f5d832

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,31 @@
118118

119119
</executions>
120120
</plugin>
121+
<!-- if exact RELEASE version of module already exists, -->
122+
<!-- then skip deployment by setting maven.deploy.skip=true property for that module -->
123+
<!-- GitHub doesn't allow overwriting existing RELEASE modules and deploy will fail with HTTP 409 -->
124+
<plugin>
125+
<groupId>org.honton.chas</groupId>
126+
<artifactId>exists-maven-plugin</artifactId>
127+
<version>0.13.0</version>
128+
<executions>
129+
<execution>
130+
<phase>install</phase>
131+
<goals>
132+
<goal>remote</goal>
133+
</goals>
134+
<configuration>
135+
<!-- run only if deploy goal is specified in maven command line -->
136+
<requireGoal>deploy</requireGoal>
137+
</configuration>
138+
</execution>
139+
</executions>
140+
<configuration>
141+
<failIfNotMatch>false</failIfNotMatch>
142+
<userProperty>true</userProperty>
143+
<!--skip>true</skip-->
144+
</configuration>
145+
</plugin>
121146
<plugin>
122147
<artifactId>maven-install-plugin</artifactId>
123148
<version>3.1.2</version>

0 commit comments

Comments
 (0)