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 2007/11/15 15:45:25 UTC

[jira] Commented: (MENFORCER-25) Not actually possible to use the enforce-plugin-versions rule

    [ http://jira.codehaus.org/browse/MENFORCER-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_113926 ] 

Brian Fox commented on MENFORCER-25:
------------------------------------

Try using 1.0-SNAPSHOT, this is the latest and has the rule.

> Not actually possible to use the enforce-plugin-versions rule
> -------------------------------------------------------------
>
>                 Key: MENFORCER-25
>                 URL: http://jira.codehaus.org/browse/MENFORCER-25
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin, Standard Rules
>    Affects Versions: 1.0-alpha-3, 1.0
>            Reporter: Nigel Magnay
>            Assignee: Brian Fox
>            Priority: Blocker
>
> http://maven.apache.org/plugins/maven-enforcer-plugin/rules/requirePluginVersions.html describes how to configure the plugin. 
> But by default it won't work, because you have to specify the version of the enforcer plugin itself.
> If you pick 1.0-alpha-3, you get
> [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-enforcer-plugin:1.0-alpha-3
> Cause: Class 'org.apache.maven.shared.enforcer.rule.api.EnforcerRule' cannot be instantiated
> If you pick 1.0-alpha-4-SNAPSHOT (which would fail the rule anyway, but...), you get
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.maven.plugins.enforcer.DefaultEnforcementRuleHelper.<init>(Lorg/apache/maven/execution/MavenSession;Lorg/codehaus/plexus/component/configurator/expression/ExpressionEvaluator;Lorg/apache/maven/plugin/logging/Log;)V
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoSuchMethodError: org.apache.maven.plugins.enforcer.DefaultEnforcementRuleHelper.<init>(Lorg/apache/maven/execution/MavenSession;Lorg/codehaus/plexus/component/configurator/expression/ExpressionEvaluator;Lorg/apache/maven/plugin/logging/Log;)V

-- 
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