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
    • 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

      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

          Barrie Treloar created issue -
          Barrie Treloar made changes -
          Field Original Value New Value
          Link This issue relates to MECLIPSE-36 [ MECLIPSE-36 ]
          Barrie Treloar made changes -
          Assignee fabrizio giustina [ fgiust ]
          Affects Version/s 2.1 [ 12172 ]
          Fix Version/s 2.1 [ 12172 ]
          Michael Osipov made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:00:37 UTC 2015 [ 1428228037919 ]
          Mark Thomas made changes -
          Workflow jira [ 12721053 ] Default workflow, editable Closed status [ 12750548 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:47:18 UTC 2015 [ 1428277638729 ]
          Mark Thomas made changes -
          Workflow jira [ 12958302 ] Default workflow, editable Closed status [ 12995099 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development