[
http://jira.codehaus.org/browse/MGWT-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259300#action_259300
]
Geoffrey De Smet commented on MGWT-271:
---------------------------------------
The PluginContainerException can have 3 causes:
1. The JAR or POM of the plugin or any of its dependencies got corrupted
while being downloaded from the plugin repository to your local repository. For
instance, if the plugin class path is missing some dependencies of the plugin,
this can result in linkage errors that prevent the instantiation of the goal.
=> I removed the plugin from my local repository to trigger a new download =>
same problem.
2. You specified custom dependencies for the plugin in your POM which are
not compatible with the plugin.
=> Where in the pom? Removing those in the <dependencies> of the plugin doesn't
make a difference.
3. The plugin was not properly assembled by its creator.
> 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