Hello Renald, On Tue, Jan 4, 2011 at 11:53 PM, Reynald Borer <reynald.bo...@gmail.com> wrote: > Hi, > > > You can modify the finalName tag to change the name of artifact. By default > it is defined like the following: > <project> > <build> > <finalName>${artifactId}-${version}</finalName> > </build> > </project>
thats exactly what I did, and as I wrote before it builds it under the name I gave it, but publishes under the default name: built as distributeme.war published as /Users/another/.m2/repository/net/anotheria/distributeme-registry/1.0.1-SNAPSHOT/distributeme-registry-1.0.1-SNAPSHOT.war regards Leon > > > Or you can modify it only in the war plugin by changing the warName parameter > (see http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html). > > > I personally recommend the first way. > > > Regards, > Reynald > > > > On Tuesday, January 4, 2011 at 23:26 , Leon Rosenberg wrote: > >> Hi, >> >> next day, next problem ;-)) >> >> I'm right now fighting with the name that comes out of the war packaging. >> My artifact is a webapp, called distributeme-registry and is a module >> of a larger project. However, >> the automatically generated client expects it to be accessable under >> http://host:port/distributeme/ . >> Hence I need my artifact to be called distributeme.war. >> I added this as finalName into the build section of the pom, and it >> generates distributeme.war allright, but publishes it under the >> 'proper' name: >> >> >> [INFO] Building war: >> /Users/another/projects/distributeme/distributeme-registry/target/distributeme.war >> [INFO] WEB-INF/web.xml already added, skipping >> [INFO] [install:install {execution: default-install}] >> [INFO] Installing >> /Users/another/projects/distributeme/distributeme-registry/target/distributeme.war >> to >> /Users/another/.m2/repository/net/anotheria/distributeme-registry/1.0.1-SNAPSHOT/distributeme-registry-1.0.1-SNAPSHOT.war >> >> is there any chance to force maven to deploy it as >> /Users/another/.m2/repository/net/anotheria/distributeme-registry/1.0.1-SNAPSHOT/distributeme.war >> >> regards >> Leon >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org