Fatal error when generating sources with dependency on 
org.codehaus.castor:castor:1.2
-------------------------------------------------------------------------------------

                 Key: MCASTOR-20
                 URL: http://jira.codehaus.org/browse/MCASTOR-20
             Project: Maven 2.x Castor Plugin
          Issue Type: Bug
          Components: Core MOJOs
    Affects Versions: 1.0
         Environment: Windows XP Maven 2.0.8
            Reporter: Marco Beelen
         Attachments: generateFaillureCastor.zip

Generating java source fails when castor 1.2 has been specified as the 
dependency of the castor-maven-plugin.

I configured the plugin like this.

{noformat} 
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>castor-maven-plugin</artifactId>
        <version>2.0-alpha1</version>
       <dependencies>
         <dependency> 
           <groupId>org.codehaus.castor</groupId>
           <artifactId>castor</artifactId>
             <version>1.2</version>
         </dependency>
       </dependencies>        
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
              <configuration>
                <verbose>true</verbose>
              </configuration>            
          </execution>
        </executions>          
      </plugin>
    </plugins>
  </build>
{noformat} 

This causes the execution to fail due to: {{java.lang.NoClassDefFoundError: 
org/exolab/castor/util/Configuration}}

The attached zip-file contains the minimal set of project to reproduce the 
problem including a log name castor-maven-plugin.logging, which contain the 
output of mvn -X

I switched to version 1.2 of Castor since the default version (1.1.2.1) failes 
due to: Duplicate name found as a class member.
There was an issue with that, which should have been fix in Castor 1.2.
[http://jira.codehaus.org/browse/CASTOR-2206]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to