You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "t redeske (JIRA)" <ji...@codehaus.org> on 2008/04/15 15:42:58 UTC

[jira] Created: (MANTTASKS-109) classifier not supported

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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Krashan Brahmanjara (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190584#action_190584 ] 

Krashan Brahmanjara commented on MANTTASKS-109:
-----------------------------------------------

"change Packaging to pom"  is not solution, this is another workaround.

In serious project I cannot temporary change any file - pom and mainjar. These files are fixed, only classifier jars can be modified and uploaded like deploy do.

At this time 
- feature "file attribute is not required" will be best solution.
- correct workaround is jar file mod like below

<artifact:pom id="mypom" file="${pom}" />
<artifact:install file="${jarname}-${classifier}.jar">
  <localrepository refid="local.repository"/>
  <pom refid="mypom"/>
</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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=188529#action_188529 ] 

Paul Gier commented on MANTTASKS-109:
-------------------------------------

Krashan, your comment doesn't make any sense.  Your example is already supported by the maven deploy plugin, and there is already a way to do this with the ant tasks, so I don't know what you are asking for.

> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Krashan Brahmanjara (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=188525#action_188525 ] 

Krashan Brahmanjara commented on MANTTASKS-109:
-----------------------------------------------

This problem should be opened. 
Maven  install and deploy support classifier! This option is necesarry and usable.

Example of command

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




> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "t redeske (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130904#action_130904 ] 

t redeske commented on MANTTASKS-109:
-------------------------------------

Thanks for the info on the work around.

However, the example pom does work with mvn!


> 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

        

[jira] Closed: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier closed MANTTASKS-109.
-------------------------------

    Resolution: Fixed

This is fixed by MANTASKS-151

> 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

        

[jira] Reopened: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier reopened MANTTASKS-109:
---------------------------------


> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190215#action_190215 ] 

Paul Gier commented on MANTTASKS-109:
-------------------------------------

If you don't want to deploy a main jar, then change your packaging to "pom" as Benjamin suggested in the first comment.

> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138690#action_138690 ] 

Dennis Lundberg commented on MANTTASKS-109:
-------------------------------------------

The POM you supplied is invalid and does not work in when using mvn - I tried it.

> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Krashan Brahmanjara (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190797#action_190797 ] 

Krashan Brahmanjara commented on MANTTASKS-109:
-----------------------------------------------

I haven't got mainjar file.

Case is easy
- this is old project with big complex ant files that cannot be moved to maven
- one team produce mainjar, pom and stardard javadocs and soureces jars   (this case is supported by ant)
- second  team produce another attachments with extension, docs, install files etc.

So, for now second team must use scripts with "deploy ... " commands because Ant tasks don't support this case. So, feature like  "file attribute is not required" is needed. 

BTW
My workaround  "- correct workaround is jar file mod like below " doesn't work.




> 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

        

[jira] Closed: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier closed MANTTASKS-109.
-------------------------------

      Assignee: Paul Gier
    Resolution: Won't Fix

I'm closing this as Won't Fix because the [pom model|http://maven.apache.org/ref/2.0.9/maven-model/maven.html] does not support classifier as given in the example, and the workaround provided should allow resolution to the use case.

> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190167#action_190167 ] 

Paul Gier commented on MANTTASKS-109:
-------------------------------------

Here is an example.  It's described in the reference section of the site, but should probably also be added to the examples.

{code:xml}
<target name="my-target">
  <artifact:pom id="mypom" file="${pom}" />
  <artifact:install file="${mainjar}">
    <pom refid="mypom"/>
    <attach file="my-extra-file.jar" classifier="wowser"/>
  </artifact:install>
</target>
{code}

> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Krashan Brahmanjara (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190070#action_190070 ] 

Krashan Brahmanjara commented on MANTTASKS-109:
-----------------------------------------------

Can you give any example of artifact:install that can do that as 'mvn deploy' example .. without modification of jar filename? 

I think that  user t redeske thinking about  new parameter = <classifier> as in 'mvn deploy' command.
Like in example below

<target name="mvn-install" depends="mvn-init" if="maven.enabled" xmlns:artifact="urn:maven-artifact-ant">
    <artifact:pom id="mypom" file="${pom}" />
    <artifact:install file="${jar}">
      <localrepository refid="local.repository"/>
      <pom refid="mypom"/>
       <classifier>wowser</classifier> 
    </artifact:install>
  </target>

Without classifier user must modify jar file name.

> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190611#action_190611 ] 

Paul Gier commented on MANTTASKS-109:
-------------------------------------

If you have a mainjar and a classifier jar, why wouldn't you deploy them at the same time?  It's not a good practice to deploy them separately.  If you are using timestamped snapshots, doing this can cause problems.  Can you explain your use case in more detail?

> 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

        

[jira] Commented: (MANTTASKS-109) classifier not supported

Posted by "Krashan Brahmanjara (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] Issue Comment Edited: (MANTTASKS-109) classifier not supported

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199504#action_199504 ] 

Paul Gier edited comment on MANTTASKS-109 at 11/25/09 5:04 PM:
---------------------------------------------------------------

This is fixed by MANTTASKS-151

      was (Author: pgier):
    This is fixed by MANTASKS-151
  
> 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