I had this when I attempted to use the enforcer plugin, I assumed it
was http://jira.codehaus.org/browse/MENFORCER-25.  It works okay with
the trunk, but that's no good if your project can't rely on snapshots.

Mark

On 09/04/2008, Brian E. Fox <[EMAIL PROTECTED]> wrote:
> Can you show the debug output to see the real stack trace? We've run
>  through several tests with people using the enforcer so this is
>  interesting.
>
>
>  -----Original Message-----
>  From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, April 09, 2008 12:41 PM
>  To: Maven Developers List
>  Subject: maven 2.0.9 and enforcer plugin
>
>  Using maven 2.0.9 and the enforcer plugin I receive this error :
>
>  mvn install
>  [INFO] Scanning for projects...
>  WAGON_VERSION: 1.0-beta-2
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Building POM Parent Generali
>  [INFO]    task-segment: [install]
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO]
>  ------------------------------------------------------------------------
>  [ERROR] BUILD ERROR
>  [INFO]
>  ------------------------------------------------------------------------
>  [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
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] For more information, run Maven with the -e switch
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Total time: 2 seconds
>  [INFO] Finished at: Wed Apr 09 18:36:40 CEST 2008
>  [INFO] Final Memory: 7M/63M
>  [INFO]
>  ------------------------------------------------------------------------
>
>  My pom has this :
>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-enforcer-plugin</artifactId>
>         <version>1.0-alpha-3</version>
>         <executions>
>           <execution>
>             <id>enforce-versions</id>
>             <goals>
>               <goal>enforce-once</goal>
>             </goals>
>             <configuration>
>               <rules>
>                 <requireMavenVersion>
>                   <version>2.0.9</version>
>                 </requireMavenVersion>
>                 <requireJavaVersion>
>                   <version>1.5</version>
>                 </requireJavaVersion>
>                 <requirePluginVersions>
>                   <message>Best Practice is to always define plugin
>  versions!</message>
>                 </requirePluginVersions>
>               </rules>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>
>  any idea ?
>
>  --
>  ..........................................................
>  Arnaud HERITIER
>  ..........................................................
>  OCTO Technology - aheritier AT octo DOT com
>  www.octo.com | blog.octo.com
>  ..........................................................
>  ASF - aheritier AT apache DOT org
>  www.apache.org | maven.apache.org
>  ...........................................................
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to