Can you please create a new Jira issue and attach your Maven 2 POM incl. any instructions I need so that I will be able to reproduce your problem.
Thanks in advance Werner Drew Beechum wrote: > Werner, > > Changing to 1.1 in the pom doesn't fix the error. I'm guessing this is a > misconfiguration on my part, but I'm not seeing what I'm doing wrong. > > On 4/10/07, *Werner Guttmann* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi, > > > > In general, any reason why you still have to use an old milestone > build ? In other words, why not switch to e.g. 1.1 GA ? > > > > Now more particular, I have never come across an issue like this, > but I do remember that with one or two milestone build in the 1.0 > and 1.1. area we had issues with deployment units (missing class > files, etc.). > > > > Let me know whether changing to 1.1 makes any difference, and if > not, I guess I'll ask you to create a new Jira issue. > > > > Werner > > > > > > ------------------------------------------------------------------------ > > *Von:* Drew Beechum [mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>] > *Gesendet:* Dienstag, 10. April 2007 01:51 > *An:* [email protected] <mailto:[email protected]> > *Betreff:* [castor-user] Maven 2 / Binding File Error "NoSuchMethod" > > > > Hi, I'm attempting to a castor project build to Maven 2. I've set up > the POM to use 1.1-M2 for my castor dependencies. When I run the > generate-sources goal with a binding file in place, I get: > > java.lang.NoSuchMethodError : > > org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setClassDescriptor(Lorg/exolab/castor/xml/XMLClassDescriptor;)V > at > > org.exolab.castor.builder.binding.PackageTypeDescriptor.<init>(PackageTypeDescriptor.java > :125)... > > This is just on a simple binding file with just a package setting in it. > > <binding xmlns="http://www.castor.org/SourceGenerator/Binding > <http://www.castor.org/SourceGenerator/Binding>" > defaultBindingType='type'> > <package> > <name>com.foo.bar.domain</name> > <namespace>http://www.foo.com/bar</namespace> > </package> > </binding> > > In the pom I have the following: > > <build> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>castor-maven-plugin</artifactId> > <version>1.0</version> > <executions> > <execution> > <goals> > <goal>generate</goal> > </goals> > </execution> > </executions> > <dependencies> > <dependency> > <groupId>org.codehaus.castor</groupId> > <artifactId>castor</artifactId> > <version>1.1-M2</version> > </dependency> > <dependency> > <groupId>org.codehaus.castor</groupId> > <artifactId>castor-codegen</artifactId> > <version> 1.1-M2</version> > </dependency> > </dependencies> > <configuration> > <schemaDirectory> > src/main/resources/xml/playlist/</schemaDirectory> > > > <bindingfile>src/main/resources/xml/playlist/playlistbinding.xml</bindingfile> > > <dest>${project.build.directory}/generated-sources/</dest> > <packaging> com.foo.bar.domain</packaging> > <properties> > > src/main/resources/xml/castorbuilder.properties</properties> > <verbose>true</verbose> > </configuration> > </plugin> > </plugins> > </build> > > Any help would be greatly appreciated. Thanks > > -- Drew > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

