Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.0, 2.1
-
None
-
None
-
None
-
java on linux, maven 2.0
Description
When the regular maven build creates a *.war file, it honors the project.build.finalName if specified. However, the maven-eclipse-plugin always uses the artifactId of the project and therefore the *.war file generated by eclipse is different than the one generated by maven.
The following code in EclipseWtpmodulesWriter.java can resolve the correct context-root and should be used for setting the "deploy-name" and the "context-root".
String contextRoot = project.getArtifactId();
String finalName = project.getBuild().getFinalName();
if ( !finalName.equals( project.getArtifactId() + "-" + project.getVersion() ) )
Attachments
Issue Links
- relates to
-
MECLIPSE-36 use project.build.finalName for WTP context-root (if specified)
- Closed