Hi

I have a problem with tomcat:deploy in combination with parameters in the war 
file name. It seems that the variables in the final name are not substituted b 
the deploy task. The war file is actually created with the correct replacements 
form scmBranch and buildNumber.

In my pom.xml I define

      <finalName>MyApp-${scmBranch}-r${buildNumber}</finalName>
...
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>tomcat-maven-plugin</artifactId>
            <version>1.1</version>
            <configuration>
               <username>${tomcat.username}</username>
               <password>${tomcat.password}</password>
               <url>${tomcat.manager}</url>
               <path>${tomcat.context}</path>
               
<warFile>${project.build.directory}/${project.build.finalName}.war</warFile>
            </configuration>
         </plugin>


The result from mvn tomcat:deploy is:

[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy 
(default-cli) on project SertalVision: Cannot find war file: 
/Users/timo/java/Projects/MyApp/target/MyApp-${scmBranch}-r${buildNumber}.war 
-> [Help 1]


Any help is much appreciated.

Thanks

Timo
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to