For those who are not reading dev list and didn't look at
MNGECLIPSE-716 issue, there is a workaround that works in both mvn 2.0
and 2.1, including version embedded in m2eclipse.
Basically, you just need to add xerces as plugin dependency, and may
also move all dependencies needed by jaxb plugin from <dependencies>
section into plugin dependencies.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
<packageName>com.seamless.ers.suite.xsd</packageName>
</configuration>
<dependencies>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.0.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.9</version>
</dependency>
</dependencies>
</plugin>
regards,
Eugene
Henri Gomez wrote:
Hum, also got problems with JAXWS with maven 2.1 (and m2eclipse use
the maven 2.1 embedded) :(MNG-3586)
2008/7/4 Kent Närling <[EMAIL PROTECTED]>:
I have now created a JIRA ticket for this:
MNGECLIPSE-716 - org.apache.xerces.jaxp.SAXParserFactoryImpl not found error
with projects using jaxb2-maven-plugin?
//Kent
2008/7/3 Eugene Kuleshov <[EMAIL PROTECTED]>:
Guys, can you please submit a bug report for this and attach test project
as described at http://docs.codehaus.org/display/M2ECLIPSE/Reporting+Issues
Thanks
Eugene
Damien Lecan wrote:
Same thing for me since 0.9.4 release.
Everything worked fine with 0.9.3 version of the plugin.
Damien
2008/7/3 Kent Närling <[EMAIL PROTECTED]>:
When I check out a project using the jaxb2-maven-plugin, I get the
error:
An internal error occurred during: "Building workspace".
Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
However if I do the same on the command line it works fine!
So it seems to have something to do with the m2 plugin...
Anyone know how to fix this?
//Kent
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Kent Närling
System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email