Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Component/s: None
-
Labels:None
-
Environment:java on linux, maven 2.0
-
Number of attachments :
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() ) )
Issue Links
- is related to
-
MECLIPSE-667
(regression) use project.build.finalName for WTP context-root (if specified)
-
fix in svn for 2.1, thansk