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

