Hi,
the war plugin tries to tell you that it can not find the 'web.xml' file in the source
tree of your poject (the default location is 'src/main/webapp/WEB-INF/web.xml'). If your
'web.xml' file is at a non default location you can configure war plugin as shown below:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>${basedir}/path/to/file/web.xml</webXml>
</configuration>
</plugin>
Hope this helps
-Tim
narayan dhumale schrieb:
hi,
I want to create the war file using maven2.0.3,after creating the jar.
the pom.xml for creating the jar is as mentioned below:-
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>a.b.c</groupId>
<artifactId>Tiles</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>OmniVision Tiles </name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>Tiles</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
however when try to create the war of this project using pom.xml mentioned
below :
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>a.b.c</groupId>
<artifactId>ManagerWebapp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>OmniVision</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>a.b.c</groupId>
<artifactId>Tiles</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<finalName>Webapp</finalName>
</build>
</project>
error is:-
[INFO] Error assembling WAR
Embedded error: Deployment descriptor: E:\eclipse\OmniManagerSVN\OmniManager\tar
get\OmniVision_Tiles\WEB-INF\web.xml does not exist.
[INFO
please help!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]