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)

    XMLWordPrintableJSON

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() ) )

      { contextRoot = finalName; }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: