Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Commit 2a8d41b

Browse files
committed
Add maven-enforcer-plugin
1 parent 057cedb commit 2a8d41b

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
@@ -178,6 +178,31 @@
178178
</rules>
179179
</configuration>
180180
</plugin>
181+
<plugin>
182+
<groupId>org.apache.maven.plugins</groupId>
183+
<artifactId>maven-enforcer-plugin</artifactId>
184+
<version>3.0.0-M2</version>
185+
<executions>
186+
<execution>
187+
<id>enforce-no-snapshots</id>
188+
<goals>
189+
<goal>enforce</goal>
190+
</goals>
191+
<configuration>
192+
<rules>
193+
<requireReleaseDeps>
194+
<message>No Snapshots Allowed!</message>
195+
<failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
196+
<excludes>
197+
<exclude>org.openapitools.swagger.parser:*</exclude>
198+
</excludes>
199+
</requireReleaseDeps>
200+
</rules>
201+
<fail>true</fail>
202+
</configuration>
203+
</execution>
204+
</executions>
205+
</plugin>
181206
</plugins>
182207
</build>
183208
<dependencyManagement>

0 commit comments

Comments
 (0)