[ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190195#action_190195 ]
Krashan Brahmanjara commented on MANTTASKS-109: ----------------------------------------------- True this command can work but in different way than mvn deploy:deploy-file -DgroupId=org.icefaces -Durl=http://10.4.101.41:9999/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty -Dversion=1.8.1 -DartifactId=icefaces-parent -Dfile=pom.xml -Dpackaging=pom -DgeneratePom=false -DcreateChecksum=true -Dpackaging=jar -Dclassifier=asseco Above command deploy two files :pom.xml and icefaces-parent-1.8.1-asseco.jar But artifact:install with attach require attribute "file" and will try to deploy three files: pom. mainjar, and extra.jar. There are not good solution if someone want to deploy only classifier jar and pom. In my case I don't want update mainjar because I don't got it and I don't want to make any workaround like :download mainjar, deploy extrajar with dummy mainjar, deploy mainjar ... Better workaround - remove required from "file" attribute if any attach attribute is defined. In this case current version generate this error : >Current wersion of maven-ant-tasks >[artifact:install] An error has occurred while processing the Maven artifact >tasks. >[artifact:install] Diagnosis: >[artifact:install] >[artifact:install] You must specify a file to install to the local repository. >[artifact:install] > 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 > Assignee: Paul Gier > > 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