You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2018/05/17 11:43:24 UTC

[GitHub] gmshake opened a new pull request #34: [MENFORCER-185] [WIP] Excludes take reactorProjects into account

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:
users@infra.apache.org


With regards,
Apache Git Services