[
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