[
http://jira.codehaus.org/browse/MINSTALL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Libor Kramolis updated MINSTALL-41:
-----------------------------------
Attachment: maven-install-plugin-2.2.patch
Problem is that when there is an classifier set to artifact there is no primary
artifact just pom file. Artifact with classifier is placed in
attachedArtifacts. It means that it is necessary to install POM although there
is no primary artifact.
This is fixed by attached patch. There is a new method install in a class
InstallMojo. This class is subset of same named method of Maven core
DefaultArtifactInstaller class. It would be better to change core
DefaultArtifactInstaller to ignore null File source argument.
> Install with classifier does not install pom
> --------------------------------------------
>
> Key: MINSTALL-41
> URL: http://jira.codehaus.org/browse/MINSTALL-41
> Project: Maven 2.x Install Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: Michele Lorenzini
> Priority: Minor
> Attachments: maven-install-plugin-2.2.patch, pom.xml
>
>
> I have a project wich I need to build only specifying a classifier (in
> detail: a war project which I need to build with different profiles to
> include different
> configurations. So I set up different filters and the package produces
> different classified wars).
> When I install the artifact, I've got the attached artifact installed but the
> pom is NOT installed.
> The log says "No primary artifact to install, installing attached artifacts
> instead".
> It's maybe related to MINSTALL-18 as it seems the mojo does not recognize the
> presence of a primary artifact and goes to install the attached artifacts
> (without installing the POM).
> Don't know if this is really a bug or if I am trying a strange/not valid
> project configuration (a project without a primary artifact).
--
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