You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Jeffery (JIRA)" <ji...@codehaus.org> on 2007/05/22 13:27:58 UTC
[jira] Created: (MNG-3002) finalName taken into account for full
build but not for ear build
finalName taken into account for full build but not for ear build
-----------------------------------------------------------------
Key: MNG-3002
URL: http://jira.codehaus.org/browse/MNG-3002
Project: Maven 2
Issue Type: Bug
Components: Dependencies
Affects Versions: 2.0.6
Environment: Windows XP; JDK1.5
Reporter: Mark Jeffery
If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll closed MEAR-66.
-------------------------------
Resolution: Won't Fix
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip, j2ee-1.0.jar
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Maarten Billemont (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191310#action_191310 ]
Maarten Billemont commented on MEAR-66:
---------------------------------------
This *IS* a bug. If only because of its inconsistent behavior. Building an EAR artifact with dependencies that are in the reactor and have a finalName specified results in a *different* resulting EAR artifact than building the EAR artifact without the dependencies in the reactor.
This is not only a problem with the manifest, but, for instance, JBoss uses the archive name to build the JNDI mapping of EJBs. If the name of the archive is unpredictable (because you don't know how it will be built; either with or without the dependencies in the reactor), the JNDI mapping that JBoss will use when deploying the archive is unpredictable and your EJBs are inaccessible half the time.
When copying the dependencies, their finalName should be considered and their destination name should conform to it.
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip, j2ee-1.0.jar
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191316#action_191316 ]
Stephane Nicoll commented on MEAR-66:
-------------------------------------
It's not an ear plugin bug, that's whay I meant.
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip, j2ee-1.0.jar
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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] Moved: (MEAR-66) finalName taken into account for full build
but not for ear build
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll moved MNG-3002 to MEAR-66:
------------------------------------------
Affects Version/s: (was: 2.0.6)
2.3
Component/s: (was: Dependencies)
Complexity: (was: Intermediate)
Key: MEAR-66 (was: MNG-3002)
Project: Maven 2.x Ear Plugin (was: Maven 2)
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Mark Jeffery (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Jeffery updated MEAR-66:
-----------------------------
Attachment: j2ee-1.0.jar
To run the build
Add to
.m2\repository\wasad\j2ee\1.0
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip, j2ee-1.0.jar
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191371#action_191371 ]
Joerg Schaible commented on MEAR-66:
------------------------------------
Do it the other way round. Drop the final name thing in the EJB pom and configure the ear plugin to use a constant name for the EJB.
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip, j2ee-1.0.jar
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_97170 ]
Stephane Nicoll commented on MEAR-66:
-------------------------------------
it has nothing to do with the EAR plugin. It's a manifest thing. The ear plugin does not read the manifest, it just applies the rules that are given by the configuration.
finalName is only applicable for the current project, not for dependencies manipulated by a project.
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip, j2ee-1.0.jar
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account
for full build but not for ear build
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191316#action_191316 ]
Stephane Nicoll edited comment on MEAR-66 at 9/17/09 6:32 AM:
--------------------------------------------------------------
It's not an ear plugin bug, that's what I meant.
was (Author: sni):
It's not an ear plugin bug, that's whay I meant.
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip, j2ee-1.0.jar
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96650 ]
Stephane Nicoll commented on MEAR-66:
-------------------------------------
Sorry I don't understand. Please attach a sample project to reproduce the issue.
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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: (MEAR-66) finalName taken into account for full
build but not for ear build
Posted by "Mark Jeffery (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Jeffery updated MEAR-66:
-----------------------------
Attachment: build.zip
Extract and run a clean install in the top directory....
Have a look at the resultant EAR. The ejb client jar is named without and extension and is correctly refererenced in the ejb jar's manifest.
Then change to MTestEAR directory and run a clean install
Have a look at the resultant EAR. The ejb client jar is named with an extension but is still referenced without an extension in the ejb jars manifest.
The j2ee dependency is also attached
Thanks
> finalName taken into account for full build but not for ear build
> -----------------------------------------------------------------
>
> Key: MEAR-66
> URL: http://jira.codehaus.org/browse/MEAR-66
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP; JDK1.5
> Reporter: Mark Jeffery
> Assignee: Stephane Nicoll
> Attachments: build.zip
>
>
> If I force a build of all projects via a parent pom (which build 2 EARS), then the finalName attribute of the jar plugin is taken into account for the dependencies when they are built.
> If I quickly build one EAR only, via its pom, it retrieves the dependencies from the repository, the finalName in the dependency pom is not taken into account and the version number is added to the jar name.
> This breaks the manifest entries for the jars that were built with the forced build as they still reference the specified name but the jars included in the EAR have the version on the name.
--
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