[ 
http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130894#action_130894
 ] 

Benjamin Bentmann commented on MANTTASKS-109:
---------------------------------------------

If you check out the [Maven 
Model|http://maven.apache.org/ref/2.0.8/maven-model/maven.html], you will 
notice that Maven in general does not allow to specify a classifier for a 
project's main artifact, that's not an issue with the Ant Tasks.

The following workaround could do: Change the POM in question to 
{{<packaging>pom</packaging>}} and drop the offending {{<classifier>}} line. 
Next, attach your TAR to this POM via the {{<attach>}} element described in the 
docs for the [Ant Tasks|http://maven.apache.org/ant-tasks.html]. This element 
allows you to set both packaging/type and classifier.

> classifier not supported
> ------------------------
>
>                 Key: MANTTASKS-109
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-109
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>         Environment: ant tasks 2.0.8, ant 1.7.0, Sun Java 5
>            Reporter: t redeske
>
> When attempting to install/deploy with a pom, if the pom contains a 
> classifier, it doesn't work.
> Example pom:
> <?xml version='1.0' encoding='UTF-8'?>
> <project>
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>wow</groupId>
>     <name>wow</name>
>     <artifactId>wow</artifactId>
>     <packaging>tar</packaging>
>     <classifier>wowser</classifier>     <!--       THIS LINE -->
> </project>
> Example build.xml:
> <project default='push' xmlns:artifact='antlib:org.apache.maven.artifact.ant'>
>     <target name='push'>
>         <artifact:install file='wow.tar'>
>             <pom file='pom.xml'/>
>         </artifact:install>
>     </target>
> </project>
> Error is:
> Error parsing pom: Unrecognised tag: 'classifier' (position: START_+TAG seen 
> ... </packaging>\n   <classifier>... @9:17)
>     

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

        

Reply via email to