You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2008/07/04 20:11:26 UTC

[jira] Created: (MWAR-161) Overridden artifact finalName ist ignored by the war plugin.

Overridden artifact finalName ist ignored by the war plugin.
------------------------------------------------------------

                 Key: MWAR-161
                 URL: http://jira.codehaus.org/browse/MWAR-161
             Project: Maven 2.x War Plugin
          Issue Type: Bug
    Affects Versions: 2.1-alpha-1
         Environment: Maven 2.0.9, JDK 6, WinXP SP2
            Reporter: Michael Osipov
         Attachments: example.png

I have a multimodule project.
groupId: net.fckeditor

Parent ArtifactId: fckeditor-java
1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though

module one is a jar artifact, module 2 a war artifact which has a dependency on module 2.

the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar

An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.

-- 
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: (MWAR-161) Overridden artifact finalName ist ignored by the war plugin.

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MWAR-161:
---------------------------------

    Description: 
I have a multimodule project.
groupId: net.fckeditor

Parent ArtifactId: fckeditor-java
1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though

module one is a jar artifact, module 2 a war artifact which has a dependency on module 1.

the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar

An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.

  was:
I have a multimodule project.
groupId: net.fckeditor

Parent ArtifactId: fckeditor-java
1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though

module one is a jar artifact, module 2 a war artifact which has a dependency on module 2.

the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar

An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.


> Overridden artifact finalName ist ignored by the war plugin.
> ------------------------------------------------------------
>
>                 Key: MWAR-161
>                 URL: http://jira.codehaus.org/browse/MWAR-161
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-1
>         Environment: Maven 2.0.9, JDK 6, WinXP SP2
>            Reporter: Michael Osipov
>         Attachments: example.png
>
>
> I have a multimodule project.
> groupId: net.fckeditor
> Parent ArtifactId: fckeditor-java
> 1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
> 2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though
> module one is a jar artifact, module 2 a war artifact which has a dependency on module 1.
> the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar
> An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.

-- 
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: (MWAR-161) Overridden artifact finalName ist ignored by the war plugin.

Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140660#action_140660 ] 

Michael Osipov commented on MWAR-161:
-------------------------------------

A correction.

module one is a jar artifact, module 2 a war artifact. The war depends on the jar.

> Overridden artifact finalName ist ignored by the war plugin.
> ------------------------------------------------------------
>
>                 Key: MWAR-161
>                 URL: http://jira.codehaus.org/browse/MWAR-161
>             Project: Maven 2.x War Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-1
>         Environment: Maven 2.0.9, JDK 6, WinXP SP2
>            Reporter: Michael Osipov
>         Attachments: example.png
>
>
> I have a multimodule project.
> groupId: net.fckeditor
> Parent ArtifactId: fckeditor-java
> 1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
> 2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though
> module one is a jar artifact, module 2 a war artifact which has a dependency on module 2.
> the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar
> An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.

-- 
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: (MWAR-161) Overridden artifact finalName ist ignored by the war plugin.

Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140660#action_140660 ] 

sgfan edited comment on MWAR-161 at 7/4/08 1:42 PM:
-------------------------------------------------------------

Correction:
module one is a jar artifact, module 2 a war artifact. The war depends on the jar.

      was (Author: sgfan):
    A correction.

module one is a jar artifact, module 2 a war artifact. The war depends on the jar.
  
> Overridden artifact finalName ist ignored by the war plugin.
> ------------------------------------------------------------
>
>                 Key: MWAR-161
>                 URL: http://jira.codehaus.org/browse/MWAR-161
>             Project: Maven 2.x War Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-1
>         Environment: Maven 2.0.9, JDK 6, WinXP SP2
>            Reporter: Michael Osipov
>         Attachments: example.png
>
>
> I have a multimodule project.
> groupId: net.fckeditor
> Parent ArtifactId: fckeditor-java
> 1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
> 2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though
> module one is a jar artifact, module 2 a war artifact which has a dependency on module 2.
> the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar
> An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.

-- 
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: (MWAR-161) Overridden artifact finalName ist ignored by the war plugin.

Posted by "Tim Schwenk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170802#action_170802 ] 

Tim Schwenk commented on MWAR-161:
----------------------------------

This also affects manifest creation for "skinny" WARs.  That is, the maven-ear-plugin puts the artifact into the EAR using the specified finalName, but the maven-war-plugin uses the default artifact name when adding the dependency to the WAR's META-INF/MANIFEST.MF.

Steps to reproduce:

1. create a simple JAR project and define the finalName in the build section as: <finalName>${artifactId}</finalName>
2. create a simple WAR project and specify the JAR created in step one as a dependency and make it optional so that it isn't included in WEB-INF/lib.
3. in the WAR project, configure the maven-war-plugin to generate the manifest and add the classpath.
4. create an EAR project and define the WAR project created in step one as a web module.
5. 'mvn package' the EAR project and look at the META-INF/MANIFEST.MF generated for the WAR project.

I realize these are very rough directions, but I'm not permitted by my employer to share the project that I was building when I ran into the bug.  If this is not clear enough, I could probably put together a minimal example project.

Also, I think this is a new bug, because switching back to 2.1-alpha-2 solved the problem for me.

> Overridden artifact finalName ist ignored by the war plugin.
> ------------------------------------------------------------
>
>                 Key: MWAR-161
>                 URL: http://jira.codehaus.org/browse/MWAR-161
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-1
>         Environment: Maven 2.0.9, JDK 6, WinXP SP2
>            Reporter: Michael Osipov
>         Attachments: example.png
>
>
> I have a multimodule project.
> groupId: net.fckeditor
> Parent ArtifactId: fckeditor-java
> 1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
> 2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though
> module one is a jar artifact, module 2 a war artifact which has a dependency on module 2.
> the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar
> An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.

-- 
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: (MWAR-161) Overridden artifact finalName ist ignored by the war plugin.

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll closed MWAR-161.
--------------------------------

    Resolution: Duplicate

This is a duplicate. See MWAR-215.

> Overridden artifact finalName ist ignored by the war plugin.
> ------------------------------------------------------------
>
>                 Key: MWAR-161
>                 URL: http://jira.codehaus.org/browse/MWAR-161
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-1
>         Environment: Maven 2.0.9, JDK 6, WinXP SP2
>            Reporter: Michael Osipov
>         Attachments: example.png
>
>
> I have a multimodule project.
> groupId: net.fckeditor
> Parent ArtifactId: fckeditor-java
> 1. module ArtifactId: java-core; finalName "fckeditor-${artifactId}-${version}" though => e.g. fckeditor-java-core-2.4-SNAPSHOT
> 2. module ArtifactId: java-demo; finalName "fckeditor-${artifactId}-${version}" though
> module one is a jar artifact, module 2 a war artifact which has a dependency on module 1.
> the final WAR file contains all dependencies included the java-core but the jar name is not fckeditor-java-core-2.4-SNAPSHOT.jar but java-core-2.4-SNAPSHOT.jar
> An example picture is attached and the project can be checked out at our [trac|http://dev.fckeditor.net/browser/FCKeditor.Java/trunk] and the [SVN|http://svn.fckeditor.net/FCKeditor.Java/trunk/] directly.

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