Bryan,

that's odd, as I have tried this myself numerous times. Would you have a minimal Maven POM which I could use to replay things myself.

Regards
Werner

Bryan Ward wrote:
Hi Werner,

Apologies if this has already been discussed / answered... If so, could you please point me in the direction of the answer?

I'm having a problem with the maven-castor-plugin. On the castor website ( http://www.castor.org/srcgen-maven-plugin.html) it states...

By default, the Maven Castor plugin has been built and tested against a particular version of Castor. To switch to a newer version of Castor (not the plugin itself), please use a <dependencies> section as shown below to point the plugin to e.g. a newer version of Castor:

<plugin>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>castor-maven-plugin</artifactId>
   <version>1.0</version>
   <dependencies>

<dependency> <groupId>org.codehaus.castor</groupId>
       <artifactId>castor</artifactId>
       <version>1.1-M3-SNAPSHOT</version>
     </dependency>

   </dependencies>
 </plugin>                

so I've changed my pom as described above, however I've noticed that in the generated code I see the following in the comments at the top.

/*
 * This class was automatically generated with
 * <a href="http://www.castor.org";>Castor 0.9.7</a>, using an XML
 * Schema.
 * $Id$
 */

so it appears to me if "overloading" the castor dependency in the plugin configuration is not working.
Do you know how this problem can be fixed?

Thanks,

Bryan




---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to