Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-667

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

      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; }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: