Ahh, I didn't specify "target". Shouldn''t it be assumed? When build the war, it automatically goes there.
WILL On Wed, Nov 23, 2011 at 3:33 AM, Hodchenkov, Paul < [email protected]> wrote: > Hi, > warFile in tomcat7 plugin wokrs for me: > > <plugin> > <groupId>org.apache.tomcat.maven</groupId> > <artifactId>tomcat7-maven-plugin</artifactId> > <version>2.0-SNAPSHOT</version> > <configuration> > <warFile>target/app-qa.war</warFile> > <path>/</path> > <update>true</update> > </configuration> > </plugin> > > -----Original Message----- > From: Will Glass-Husain [mailto:[email protected]] > Sent: Tuesday, November 22, 2011 10:03 PM > To: Tomcat Users List > Subject: Maven Tomcat 7 plugin - changing war name > > Hi, > > I'm struggling to get the tomcat7 plugin to work. I want to change the > name of the war file. When I call > > mvn tomcat7:deploy-only > > It looks for war file XXX-YYY.war, where XXX is the artifactId and YYY is > the version name. > > I'd rather use a different, simpler WAR file name "myapp". It's used > elsewhere in the site. But neither of these two things changes the war > name that the plugin is looking for. > > <properties> > <project.build.finalName>simulate</project.build.finalName> > </properties> > > ... > > <plugin> > <groupId>org.apache.tomcat.maven</groupId> > <artifactId>tomcat7-maven-plugin</artifactId> > <version>2.0-SNAPSHOT</version> > <configuration> > <warName>myapp.war</warName> > <path>/myapp</path> > </configuration> > </plugin> > > Any suggestions? Or is this just not yet implemented. > > WILL > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
