Maven Eclipse Plugin
  1. Maven Eclipse Plugin
  2. MECLIPSE-667

(regression) use project.build.finalName for WTP context-root (if specified)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      java on linux, maven 2.0
    • Number of attachments :
      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() ) )

      { contextRoot = finalName; }

        Issue Links

          Activity

          Hide
          Michael Osipov added a comment -

          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.

          Show
          Michael Osipov added a comment - 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.

            People

            • Assignee:
              Unassigned
              Reporter:
              Barrie Treloar
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: