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 2014/11/25 21:23:31 UTC
[jira] (MPEAR-40) maven.ear.src can't be at the root of the project
as the ear will be improperly packaged
[ https://jira.codehaus.org/browse/MPEAR-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MPEAR-40.
-------------------------------
Resolution: Won't Fix
Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
> maven.ear.src can't be at the root of the project as the ear will be improperly packaged
> ----------------------------------------------------------------------------------------
>
> Key: MPEAR-40
> URL: https://jira.codehaus.org/browse/MPEAR-40
> Project: Maven 1.x Ear Plugin
> Issue Type: Bug
> Reporter: Shawn Taylor
>
> The maven.ear.src directory can not be the root of the project.
> If maven.ear.src is set to the root of the project, Maven will improperly package the dependencies in the EAR (the "tmpEarDeps" directory will get mistakenly included in the EAR as well as other root level files that don't belong in the final EAR endstate). This presents a problem because RAD (Rational Application Developer - i.e. the new version of WSAD) requires the META-INF directory to be at the root of the project. Therefore, since Maven cannot have it at the root and RAD requires it to be at the root, we have to rearrage the directory structure arround each time before we build the EAR to satisfy Maven. We copy the META-INF directory to a temp folder that is not at the root of the project. Then, we set the maven.ear.src to point to the temp folder. This current workaround is done with a preGoal to the ear:ear goal.
> There has also been a bug/enhancement logged with RAD as it should be more flexible as well.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)