> -----Original Message-----
> From: Brett Porter (JIRA) [mailto:[EMAIL PROTECTED]
> Sent: lundi 25 avril 2005 10:15
> To: [EMAIL PROTECTED]
> Subject: [jira] Commented: (MNG-348) Create Verifier plugin

[snip]

> 1) yes, known issue with m2-alpha-1. You specify the version in your POM,
> but we need a better way to discover that where they typically aren't
> configured in the POM. For the verifier, I think it is wise to always add
> it with the version to the POM.

I do have the version in the verifier's POM:

  <version>1.0-alpha-2-SNAPSHOT</version>

> 2) sounds like you are building with alpha-2 and running in alpha-1 (you
> probably have a dependency on maven-plugin-api in META-
> INF/maven/plugin.xml, which will conflict with maven-plugin in
> $M2_HOME/lib). Rebuild with alpha-1. Specifically, the CCE is because
> Plugin.class of the plugin != Plugin.class of $M2_HOME/lib

I've modified the dep and the only one I have is:

  <dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact</artifactId>
      <version>2.0-alpha-1</version>
    </dependency>
  </dependencies>

I'm getting the same CCE:

org.apache.maven.reactor.ReactorException: Error executing project within
the reactor
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:144)
[snip]
Caused by: java.lang.ClassCastException
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:382)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeMojo(DefaultLifec
ycleExecutor.java:393)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:142)
        ... 11 more
 
> 3) probably also a symptom of mixing builds as the ${} was only introduced
> recently. No reason why #... shouldn't work though.
> 
> I think it might be best to make it work with alpha-2 now and track SVN
> for a while. We're only 2.5 weeks out from the release.

Ok, I'll try building m2 trunk.

Thanks
-Vincent

> > Create Verifier plugin
> > ----------------------
> >
> >          Key: MNG-348
> >          URL: http://jira.codehaus.org/browse/MNG-348
> >      Project: m2
> >         Type: Task
> >   Components: maven-plugins
> >     Versions: 2.0-alpha-1
> >     Reporter: Vincent Massol
> >     Assignee: Vincent Massol
> >  Attachments: maven-verifier-plugin_try1.zip
> >
> >
> > Create a plugin that will allow verifying existence and contents of
> files and directories. It could be used when performing integration tests,
> for example when writing m2 plugins. It could be later on expanded for
> other types of tests too.
> > The way it'll work is that it'll have a configuration similar to:
> > <verifications>
> >   <files>
> >     <file>
> >       <location>${basedir}/target/clover/clover.db</location>
> >       <contains>[enter a regexp here - This is optional]</contains>
> >       <test>exist (default)|notfound</test>
> >     </file>
> >     <file>[...]
> >   </files>
> > </verifications>
> > This file will be called verifications.xml (for example) in user's
> projects and the plugin will look for it by default in
> src/test/verifier/verifications.xml
> > This plugin will be bound to an integration testing phase that Brett
> will add to maven-core/src/main/resources/META-INF/plexus/components.xml.

___________________________________________________________

Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !

Yahoo! Mail : http://fr.mail.yahoo.com


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

Reply via email to