tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mikusa <dmik...@gopivotal.com>
Subject Re: Deploy web app with context version by tomcat-maven-plugin
Date Wed, 09 Oct 2013 11:00:47 GMT
On Oct 8, 2013, at 9:37 PM, Phuoc Nguyen <nhphuoc@mytrax.co.jp> wrote:

> 
> Dear tomcat experts,
> I am using Tomcat 7. In the manager html interface, there is a column named
> version in the list of applications table. I read the document here
> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Naming to find
> the way to set version for my web application. I deploy my web application
> by tomcat-maven-plugin
> <plugin>
> 
>        <groupId>org.codehaus.mojo</groupId>
> 
>        <artifactId>tomcat-maven-plugin</artifactId>
> 
>        <version>1.1</version>
> 
>        <configuration>
> 
> 
> <warFile>${project.build.directory}/${project.build.finalName}.war</warFile>
> 
>          <url>http://myhostname.com:8080/manager/text</url>
> 
>  <path>/</path>
> 
>  <tag>##${project.version}</tag>
> 
>          <username>tomcat</username>
> 
>          <password>xxx</password>
> 
>        </configuration>
> 
>      </plugin>
> 
> Please help me how can I set the version for my web app.
> If I manually deploy I just rename the war to ROOT#version.war.

Are you using "ROOT#version.war"?  Cause it should be "ROOT##version.war".  Using one "#"
means something different.

Dan

> Thanks & best regards
> Phuoc Nguyen
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message