Hi,
Two suggestions:
- remove the executions-section, since you've already configured it in the
(global-)plugin configuration
- don't use absolute paths. Now it is bound to your system. Either use
<webappDirectory>WebContent<webappDirectory> or
<webappDirectory>${basedir}/WebContent<webappDirectory>
-Robert
Op Mon, 05 Mar 2012 12:00:45 +0100 schreef sarmahdi <sarma...@hotmail.com>:
I added the location in the war plugin :D
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>default-war</id>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
<configuration>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
// to
exclude libs normally u dont need that
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
<failOnMissingWebXml>false</failOnMissingWebXml>
<webappDirectory>C:\RSA75Workspace\workspace\Corpweb\WebContent</webappDirectory>
</configuration>
</execution>
</executions>
<configuration>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>// to
exclude libs normally u dont need that
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
<failOnMissingWebXml>false</failOnMissingWebXml>
*
<webappDirectory>C:\RSA75Workspace\workspace\Corpweb\WebContent</webappDirectory>*
</configuration>
</plugin>
--
View this message in context:
http://maven.40175.n5.nabble.com/webappsource-location-in-POM-tp5536805p5537186.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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