You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matt Raible (JIRA)" <ji...@codehaus.org> on 2009/11/17 07:42:55 UTC
[jira] Issue Comment Edited: (MANTRUN-123) Plugin class path
pollutes class path of custom tasks
[ http://jira.codehaus.org/browse/MANTRUN-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=198472#action_198472 ]
Matt Raible edited comment on MANTRUN-123 at 11/17/09 12:41 AM:
----------------------------------------------------------------
FWIW, using reverseLoader="true" does solve the problem and allows this setup to work with Maven 3 alpha 3.
Unfortunately, it breaks Maven 2.2.1 if I add it.
>From http://builds.appfuse.org/build/viewBuildLog.action?buildNumber=601&buildKey=APF-DEPLOY:
16-Nov-2009 19:55:13 [INFO] Executing tasks
16-Nov-2009 19:55:13 [typedef] The reverseloader attribute is DEPRECATED. It will be removed
16-Nov-2009 19:55:13 [INFO] ------------------------------------------------------------------------
16-Nov-2009 19:55:13 [ERROR] BUILD ERROR
16-Nov-2009 19:55:13 [INFO] ------------------------------------------------------------------------
16-Nov-2009 19:55:13 [INFO] An Ant BuildException has occured: The following error occurred while executing this line:
16-Nov-2009 19:55:13 /opt/j2ee/domains/appfuse.org/builds/webapps/atlassian-bamboo/data/atlassian-bamboo-2.2.1/xml-data/build-dir/APF-DEPLOY/archetypes/build.xml:14: java.lang.ClassCastException: org.apache.maven.plugin.MavenPluginDiscoverer
was (Author: mraible):
FWIW, using reverseLoader="true" does solve the problem and allows this setup to work with Maven 3 alpha 3.
> Plugin class path pollutes class path of custom tasks
> -----------------------------------------------------
>
> Key: MANTRUN-123
> URL: http://jira.codehaus.org/browse/MANTRUN-123
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: Maven 3.0-alpha-3
> Reporter: Matt Raible
> Attachments: err.log
>
>
> Steps to reproduce:
> svn co https://appfuse.dev.java.net/svn/appfuse/trunk/archetypes (user: guest, pass: <blank>)
> mvn install
> Here's the build.xml file:
> http://source.appfuse.org/browse/appfuse/trunk/archetypes/build.xml?r=HEAD
> [ERROR] An Ant BuildException has occured: The following error occurred while executing this line:
> /Users/mraible/Work/appfuse/archetypes/build.xml:14: java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.setClassWorld(Lorg/codehaus/classworlds/ClassWorld;)V
> -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
--
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