gmshake opened a new pull request #34: [MENFORCER-185] [WIP] Excludes take 
reactorProjects into account
URL: https://github.com/apache/maven-enforcer/pull/34
 
 
   TODO require IT
   
   Enforce only when release
   ```xml
   <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <execution>
                <id>enforce-no-snapshots</id>
                <goals>
                        <goal>enforce</goal>
                </goals>
                <configuration>
                        <rules>
                                <requireReleaseDeps>
                                        <onlyWhenRelease>true</onlyWhenRelease>
                                </requireReleaseDeps>
                        </rules>
                </configuration>
        </execution>
   </plugin>
   ```
   Or
   ```xml
   <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <execution>
                <id>enforce-no-snapshots</id>
                <goals>
                        <goal>enforce</goal>
                </goals>
                <configuration>
                        <rules>
                                <requireReleaseDeps>
                                        
<failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
                                        <excludes>
                                                
<exclude>${project.groupId}:*</exclude>
                                        </excludes>
                                </requireReleaseDeps>
                        </rules>
                </configuration>
        </execution>
   </plugin>
   ```
   
   ref: https://stackoverflow.com/q/40591346/942671

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to