[ http://jira.codehaus.org/browse/MNG-1893?page=comments#action_77870 ]
Philipp Bracher commented on MNG-1893:
--------------------------------------
I run into the exactely same problem. The difference is that the maven-model's
pom uses an execution and we both tried withou (just configuration). In the
first case an additional artifact is created where in the later the main
artifact is missed I guess:
WORKING:
<profile>
<id>full</id>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>full</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
NOT WORKING:
<profile>
<id>full</id>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<classifier>full</classifier>
</configuration>
</plugin>
> Cannot deploy artifacts using classifier
> ----------------------------------------
>
> Key: MNG-1893
> URL: http://jira.codehaus.org/browse/MNG-1893
> Project: Maven 2
> Issue Type: Bug
> Reporter: Miguel Griffa
> Assigned To: Brett Porter
> Priority: Critical
>
> The classifier concept is well understood in maven, beeing an elemnt of the
> dependency.
> However, a project that generates artifacs with classifiers, cannot be
> deployed, nor installed:
> install plugin seem to 'not see' the classifier:
> this output might help:
> [INFO] [jar:jar]
> [INFO] Building jar:
> /home/mgriffa/workspace/tfv-core/target/tfv-core-2.1-SNAPSHOT-localdev.jar
> [INFO] [install:install]
> [INFO] Installing
> /home/mgriffa/workspace/tfv-core/target/tfv-core-2.1-SNAPSHOT.jar to
> /home/mgriffa/.m2/repository/transferval/tfv-core/2.1-SNAPSHOT/tfv-core-2.1-SNAPSHOT.jar
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Error installing artifact
> Embedded error: Error installing artifact: File
> /home/mgriffa/workspace/tfv-core/target/tfv-core-2.1-SNAPSHOT.jar does not
> exist
> jar:jar generates the artifact with the classifier, as told to do so, but
> install misses it
--
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