Issue Details (XML | Word | Printable)

Key: MPEAR-40
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Shawn Taylor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Ear Plugin

maven.ear.src can't be at the root of the project as the ear will be improperly packaged

Created: 13/Jun/05 12:28 PM   Updated: 22/Jun/05 06:44 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide

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.



There are no comments yet on this issue.