[ 
http://jira.codehaus.org/browse/MGWT-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259443#action_259443
 ] 

Geoffrey De Smet commented on MGWT-271:
---------------------------------------

There is something really odd. The error says:

{code}
... A required class is missing: org/codehaus/plexus/util/xml/XmlStreamReader
[ERROR] urls[0] = 
file:/home/gdesmet/.m2/repository/org/codehaus/mojo/gwt-maven-plugin/2.2.0/gwt-maven-plugin-2.2.0.jar
[ERROR] urls[1] = 
file:/home/gdesmet/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
{code}

So it using org.codehaus.plexus:plexus-utils:1.1 for the gwt-maven-plugin.
But 
http://repo1.maven.org/maven2/org/codehaus/mojo/gwt-maven-plugin/2.2.0/gwt-maven-plugin-2.2.0.pom
clearly states that it should use org.codehaus.plexus:plexus-utils:2.0.5

However, 
file:///home/gdesmet/.m2/repository/org/codehaus/mojo/gwt-maven-plugin/2.2.0/gwt-maven-plugin-2.2.0.pom
contains:
{code}
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
<modelVersion>4.0.0</modelVersion>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.2.0</version>
<packaging>maven-plugin</packaging>
<description>POM was created by Sonatype Nexus</description>
</project>
{code}

> Compilatin mojo fails with "A required class is missing: 
> org/codehaus/plexus/util/xml/XmlStreamReader" [Regression in 2.2.0]
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MGWT-271
>                 URL: http://jira.codehaus.org/browse/MGWT-271
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Geoffrey De Smet
>
> Just upgraded guvnor locally to gwt 2.2.0 and gwt-maven-plugin 2.2.0 and I 
> get this error:
>   A required class is missing: org/codehaus/plexus/util/xml/XmlStreamReader
> Since 2.2.0 is just been released, I suspect the 2.2.0 release might be 
> broken?
> to reproduce:
> git clone [email protected]:droolsjbpm/droolsjbpm-build-bootstrap.git 
> droolsjbpm-build-bootstrap
> cd droolsjbpm-build-bootstrap
> gedit pom.xml // adjust gwt.version
> mvn clean install
> cd ..
> git clone [email protected]:droolsjbpm/guvnor.git guvnor
> cd guvnor
> gedit pom.xml // adjust gwt-maven-plugin version
> mvn clean install -DskipTests
> and you get:
> [INFO] Guvnor web application ............................ FAILURE [4.641s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 14.647s
> [INFO] Finished at: Wed Mar 02 14:42:24 CET 2011
> [INFO] Final Memory: 12M/297M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.codehaus.mojo:gwt-maven-plugin:2.2.0:compile (default) on project 
> guvnor-webapp: Execution default of goal 
> org.codehaus.mojo:gwt-maven-plugin:2.2.0:compile failed: Unable to load the 
> mojo 'compile' in the plugin 'org.codehaus.mojo:gwt-maven-plugin:2.2.0'. A 
> required class is missing: org/codehaus/plexus/util/xml/XmlStreamReader
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    plugin>org.codehaus.mojo:gwt-maven-plugin:2.2.0
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/home/gdesmet/.m2/repository/org/codehaus/mojo/gwt-maven-plugin/2.2.0/gwt-maven-plugin-2.2.0.jar
> [ERROR] urls[1] = 
> file:/home/gdesmet/.m2/repository/com/google/gwt/gwt-servlet/2.2.0/gwt-servlet-2.2.0.jar
> [ERROR] urls[2] = 
> file:/home/gdesmet/.m2/repository/com/google/gwt/gwt-user/2.2.0/gwt-user-2.2.0.jar
> [ERROR] urls[3] = 
> file:/home/gdesmet/.m2/repository/com/google/gwt/gwt-dev/2.2.0/gwt-dev-2.2.0.jar
> [ERROR] urls[4] = 
> file:/home/gdesmet/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm 
> ClassRealm[project>org.droolsjbpm:guvnor:5.2.0-SNAPSHOT, parent: 
> ClassRealm[maven.api, parent: null]]]

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