[jira] Created: (MINSTALL-41) Install with classifier does not install pom

View: New views
5 Messages — Rating Filter:   Alert me  

[jira] Created: (MINSTALL-41) Install with classifier does not install pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


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

       

[jira] Commented: (MINSTALL-41) Install with classifier does not install pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MINSTALL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110926 ]

Libor Kramolis commented on MINSTALL-41:
----------------------------------------

I think *it is a BUG* because it is recommended to use classifier to distinguish between different deployment environments. Look *Building For Different Environments with Maven 2* - [http://maven.apache.org/guides/mini/guide-building-for-different-environments.html].

I have similar experience with *ejb*, *war* and *ear* project types.


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

       

[jira] Commented: (MINSTALL-41) Install with classifier does not install pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MINSTALL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125812 ]

Dennis Lundberg commented on MINSTALL-41:
-----------------------------------------

Can someone provide an example project that highlights this problem?

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

       

[jira] Updated: (MINSTALL-41) Install with classifier does not install pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ 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

       

[jira] Commented: (MINSTALL-41) Install with classifier does not install pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MINSTALL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134896#action_134896 ]

Libor Kramolis commented on MINSTALL-41:
----------------------------------------

There is same problem in depoy plugin MDEPLOY-78.

> 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