maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <apa...@sourcegrounds.com>
Subject Re: webappsource location in POM
Date Mon, 05 Mar 2012 18:40:35 GMT
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 <sarmahdi@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

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


Mime
View raw message