maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nagendra Narayanamurthy (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MANTTASKS-162) java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator cannot be cast to org.codehaus.plexus.component.configurator.ComponentConfigurator
Date Wed, 03 Mar 2010 17:11:55 GMT

    [ 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

        

Mime
View raw message