You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Dan Allen (JIRA)" <ji...@codehaus.org> on 2005/12/01 22:17:06 UTC

[jira] Created: (MNG-1729) use project.build.finalName for WTP context-root (if specified)

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

         Key: MNG-1729
         URL: http://jira.codehaus.org/browse/MNG-1729
     Project: Maven 2
        Type: Improvement
  Components: maven-eclipse-plugin  
    Versions: 2.0    
 Environment: java on linux, maven 2.0
    Reporter: Dan Allen


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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MECLIPSE-36) use project.build.finalName for WTP context-root (if specified)

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-36?page=all ]

fabrizio giustina updated MECLIPSE-36:
--------------------------------------

    Version: 2.0

> use project.build.finalName for WTP context-root (if specified)
> ---------------------------------------------------------------
>
>          Key: MECLIPSE-36
>          URL: http://jira.codehaus.org/browse/MECLIPSE-36
>      Project: Maven 2.x Eclipse Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: java on linux, maven 2.0
>     Reporter: Dan Allen

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MECLIPSE-36) use project.build.finalName for WTP context-root (if specified)

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-36?page=all ]
     
fabrizio giustina closed MECLIPSE-36:
-------------------------------------

      Assign To: fabrizio giustina
     Resolution: Fixed
    Fix Version: 2.1

fix in svn for 2.1, thansk

> use project.build.finalName for WTP context-root (if specified)
> ---------------------------------------------------------------
>
>          Key: MECLIPSE-36
>          URL: http://jira.codehaus.org/browse/MECLIPSE-36
>      Project: Maven 2.x Eclipse Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: java on linux, maven 2.0
>     Reporter: Dan Allen
>     Assignee: fabrizio giustina
>      Fix For: 2.1

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org