You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent ASTRUC (JIRA)" <ji...@codehaus.org> on 2009/10/23 16:59:26 UTC
[jira] Created: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: MANTTASKS-162
URL: http://jira.codehaus.org/browse/MANTTASKS-162
Project: Maven 2.x Ant Tasks
Issue Type: Bug
Affects Versions: 2.0.10
Environment: Windows / Maven 2.2.1
Reporter: Vincent ASTRUC
When we have the following declaration, a classcastexception occured
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>kodo</id>
<phase>package</phase>
<configuration>
<tasks>
<ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.0.10</version>
</dependency>
</dependencies>
</plugin>
--
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
[jira] Commented: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Nagendra Narayanamurthy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212311#action_212311 ]
Nagendra Narayanamurthy commented on MANTTASKS-162:
---------------------------------------------------
I am facing the same issue.
Here is the snippet.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts1</id>
<phase>verify</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<zip destfile="${project.build.directory}/${project.build.finalName}-withDEP.zip"
basedir="${xsd-wsdl.validate.directory}"
update="true" />
<!-- <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" /> -->
<taskdef name="install" classname="org.apache.maven.artifact.ant.InstallTask"/>
<taskdef name="deploy" classname="org.apache.maven.artifact.ant.DeployTask"/>
<install>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</install>
<deploy>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</deploy>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>
</plugin>
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
--
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
[jira] Commented: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Erik Dannenberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=244433#action_244433 ]
Erik Dannenberg commented on MANTTASKS-162:
-------------------------------------------
Any progress on this? If there is still a ready project needed for reproducing the error i can attach something.
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
--
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
[jira] Issue Comment Edited: (MANTTASKS-162)
java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Nagendra Narayanamurthy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212311#action_212311 ]
Nagendra Narayanamurthy edited comment on MANTTASKS-162 at 3/3/10 11:11 AM:
----------------------------------------------------------------------------
I am facing the same issue.
Maven 2.2.1
Ant Tasks: 2.1.0
Here is the snippet.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts1</id>
<phase>verify</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<zip destfile="${project.build.directory}/${project.build.finalName}-withDEP.zip"
basedir="${xsd-wsdl.validate.directory}"
update="true" />
<!-- <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" /> -->
<taskdef name="install" classname="org.apache.maven.artifact.ant.InstallTask"/>
<taskdef name="deploy" classname="org.apache.maven.artifact.ant.DeployTask"/>
<install>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</install>
<deploy>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</deploy>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>
</plugin>
The exception thrown is below
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute(AutoConfigurePhase.java:34)
at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
was (Author: nagendra.kn):
I am facing the same issue.
Here is the snippet.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts1</id>
<phase>verify</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<zip destfile="${project.build.directory}/${project.build.finalName}-withDEP.zip"
basedir="${xsd-wsdl.validate.directory}"
update="true" />
<!-- <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" /> -->
<taskdef name="install" classname="org.apache.maven.artifact.ant.InstallTask"/>
<taskdef name="deploy" classname="org.apache.maven.artifact.ant.DeployTask"/>
<install>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</install>
<deploy>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</deploy>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>
</plugin>
The exception thrown is below
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute(AutoConfigurePhase.java:34)
at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
--
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
[jira] Commented: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=198579#action_198579 ]
Paul Gier commented on MANTTASKS-162:
-------------------------------------
Are you using the maven ant tasks in your build.xml?
Can you provide an example of the build.xml and a log file that shows where the error is coming from?
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
--
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
[jira] Updated: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MANTTASKS-162:
------------------------------------
Description:
When we have the following declaration, a classcastexception occured
{noformat}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>kodo</id>
<phase>package</phase>
<configuration>
<tasks>
<ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.0.10</version>
</dependency>
</dependencies>
</plugin>
{noformat}
was:
When we have the following declaration, a classcastexception occured
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>kodo</id>
<phase>package</phase>
<configuration>
<tasks>
<ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.0.10</version>
</dependency>
</dependencies>
</plugin>
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> {noformat}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
> {noformat}
--
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
[jira] Reopened: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy reopened MANTTASKS-162:
-------------------------------------
can you attach a (non-)working example, that I can unzip and run to reproduce the problem?
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
--
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
[jira] Commented: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Bruno Duarte (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216094#action_216094 ]
Bruno Duarte commented on MANTTASKS-162:
----------------------------------------
This seems to be related with MANTTASKS-106.
You may reproduce it by adding the maven ant tasks as a dependency of the antrun plugin.
You can have something like:
{code:xml} <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>pre-integration-test</phase>
<configuration>
<tasks>
<taskdef name="pom" classname="org.apache.maven.artifact.ant.Pom"/>
<pom id="mypom" file="pom.xml" />
<echo>The POM version is ${mypom.version}</echo>
</tasks>
</configuration>
<goals><goal>run</goal></goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.0.10</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
{code}
Or call an external build.xml that define the ant tasks as follows:
{code:xml}<project ... xmlns:artifact="antlib:org.apache.maven.artifact.ant">{code}
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
--
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
[jira] Closed: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy closed MANTTASKS-162.
-----------------------------------
Resolution: Cannot Reproduce
please reopen and provide a test showing the problem, so we can understand it and investigate
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
--
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
[jira] Issue Comment Edited: (MANTTASKS-162)
java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Nagendra Narayanamurthy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212311#action_212311 ]
Nagendra Narayanamurthy edited comment on MANTTASKS-162 at 3/3/10 11:11 AM:
----------------------------------------------------------------------------
I am facing the same issue.
Here is the snippet.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts1</id>
<phase>verify</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<zip destfile="${project.build.directory}/${project.build.finalName}-withDEP.zip"
basedir="${xsd-wsdl.validate.directory}"
update="true" />
<!-- <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" /> -->
<taskdef name="install" classname="org.apache.maven.artifact.ant.InstallTask"/>
<taskdef name="deploy" classname="org.apache.maven.artifact.ant.DeployTask"/>
<install>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</install>
<deploy>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</deploy>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>
</plugin>
The exception thrown is below
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute(AutoConfigurePhase.java:34)
at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
was (Author: nagendra.kn):
I am facing the same issue.
Here is the snippet.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts1</id>
<phase>verify</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<zip destfile="${project.build.directory}/${project.build.finalName}-withDEP.zip"
basedir="${xsd-wsdl.validate.directory}"
update="true" />
<!-- <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" /> -->
<taskdef name="install" classname="org.apache.maven.artifact.ant.InstallTask"/>
<taskdef name="deploy" classname="org.apache.maven.artifact.ant.DeployTask"/>
<install>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</install>
<deploy>
<attach file="${project.build.finalName}-withDEP.zip"
type="zip" classifier="withDEP" />
</deploy>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>
</plugin>
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
--
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
[jira] Updated: (MANTTASKS-162) java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
cannot be cast to
org.codehaus.plexus.component.configurator.ComponentConfigurator
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTTASKS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MANTTASKS-162:
------------------------------------
Description:
When we have the following declaration, a classcastexception occured
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>kodo</id>
<phase>package</phase>
<configuration>
<tasks>
<ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.0.10</version>
</dependency>
</dependencies>
</plugin>
{code}
was:
When we have the following declaration, a classcastexception occured
{noformat}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>kodo</id>
<phase>package</phase>
<configuration>
<tasks>
<ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.0.10</version>
</dependency>
</dependencies>
</plugin>
{noformat}
> java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-162
> URL: http://jira.codehaus.org/browse/MANTTASKS-162
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.10
> Environment: Windows / Maven 2.2.1
> Reporter: Vincent ASTRUC
>
> When we have the following declaration, a classcastexception occured
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>kodo</id>
> <phase>package</phase>
> <configuration>
> <tasks>
> <ant target="xxx" inheritrefs="true" antfile="/build.xml"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-ant-tasks</artifactId>
> <version>2.0.10</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
--
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