You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2010/08/23 23:44:32 UTC

[jira] Closed: (MENFORCER-96) 'requirePluginVersions' recognizises some released maven-plugins as SNAPSHOTS

     [ http://jira.codehaus.org/browse/MENFORCER-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox closed MENFORCER-96.
------------------------------

    Resolution: Not A Bug

The message says that the versions are not locked down, and adds additional info that snapshots are not allowed (even if they are explicitly defined). IE this rule is intended to check that you have defined your preferred versions somewhere in your pom hierarchy and that you haven't just allowed the defaults from the super pom to fall through.

> 'requirePluginVersions' recognizises some released maven-plugins as SNAPSHOTS
> -----------------------------------------------------------------------------
>
>                 Key: MENFORCER-96
>                 URL: http://jira.codehaus.org/browse/MENFORCER-96
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 1.0-beta-1
>            Reporter: Lars Corneliussen
>
> Have a look at this log. 2.4 can't be a snapshot, can it?
> {noformat} 
> [INFO] [enforcer:enforce {execution: default-cli}]
> [WARNING] Rule 2: org.apache.maven.plugins.enforcer.RequirePluginVersions failed with message:
> Some plugins are missing valid versions:(SNAPSHOT are not allowed )
> org.apache.maven.plugins:maven-clean-plugin.    The version currently in use is 2.4
> org.apache.maven.plugins:maven-deploy-plugin.   The version currently in use is 2.5
> org.apache.maven.plugins:maven-install-plugin.  The version currently in use is 2.3
> org.apache.maven.plugins:maven-site-plugin.     The version currently in use is 2.1
> {noformat} 
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-enforcer-plugin</artifactId>
>   <version>1.0-beta-1</version>
>   <configuration>
>     <rules>
>       <requireReleaseVersion />
>       <requireReleaseDeps>
>         <message>All dependencies must be released!</message>
>         <failWhenParentIsSnapshot>true</failWhenParentIsSnapshot>
>       </requireReleaseDeps>
>       <requirePluginVersions>
>         <banRelease>false</banRelease>
>         <banLatest>false</banLatest>
>         <banSnapshots>true</banSnapshots>
>         <banTimestamps>false</banTimestamps>
>         <!-- unCheckedPlugins>
>           <unCheckedPlugin>org.apache.maven.plugins:maven-clean-plugin</unCheckedPlugin>
>           <unCheckedPlugin>org.apache.maven.plugins:maven-deploy-plugin</unCheckedPlugin>
>           <unCheckedPlugin>org.apache.maven.plugins:maven-install-plugin</unCheckedPlugin>
>           <unCheckedPlugin>org.apache.maven.plugins:maven-site-plugin</unCheckedPlugin>
>         </unCheckedPlugins -->
>       </requirePluginVersions>
>     </rules>
>     <fail>true</fail>
>   </configuration>
> </plugin>
> {code}
> When I list the plugins as unChecked, it passes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira