maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saurabhjj <saurab...@sify.com>
Subject [jira] web.xml does not exist
Date Tue, 01 Dec 2009 19:12:30 GMT

hi, 
i am writing my first pom.xml, on making a build i am getting an error which
says "Error assembling WAR: Deployment descriptor:
C:\eShop\target\eShop-1.0-SNAPSHOT\WEB-INF\web.xml does not exist."

my folder structure is 
eShop -> src, pom.xml -> main -> java, resources, webapp  -> WEB-INF ->
web.xml
 and my pom.xml is

<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>
<!--***********************************************************************-->
<!-- Parent project                                                       
-->
<!--***********************************************************************-->
  <groupId>com.eShop</groupId>  
  <artifactId>eShop</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>e-shop Happy shopping</name>
  <description>E-shopping site</description>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

      
    <repositories>
  	    <repository>
  	        <releases>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
                <checksumPolicy>warn</checksumPolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
  		    <id>public</id>
  		    <name>eshop Maven 2 Repository (Releases)</name>
  <url>http://maven.apache.org</url>
  		    <layout>default</layout>
  	    </repository>
  	</repositories>
  <dependencies>

      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context-support</artifactId>
      <version>2.5.6</version>
    </dependency>
	<dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring</artifactId>
      <version>2.5.6</version>
    </dependency>
    <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aspects</artifactId>
            <version>2.5.6</version>
     </dependency> 
   <!--<dependency>
            <groupId>aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>1.6.1</version>
    </dependency>-->
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>org.springframework.js</artifactId>
        <version>2.0.5.RELEASE</version>
    </dependency>
       
    
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-webmvc</artifactId>
      <version>2.5.6</version>
    </dependency>

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>2.5.6</version>
    </dependency>
    
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>org.springframework.webflow</artifactId>
        <version>2.0.5.RELEASE</version>
    </dependency>

<dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.1.2</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jsp-api</artifactId>
      <version>2.0</version>
      <scope>provided</scope>
    </dependency>
		<dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>jetty</artifactId>
      <version>6.1.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>1.1.2</version>
    </dependency>
    <dependency>
      <groupId>jdom</groupId>
      <artifactId>jdom</artifactId>
      <version>1.0</version>
    </dependency>
   <!-- <dependency>
      <groupId>com.sun.cnpi</groupId>
      <artifactId>rssutils</artifactId>
      <version>unknown</version>
    </dependency>
<dependency>
      <groupId>javax.jms</groupId>
      <artifactId>jms</artifactId>
      <version>1.1</version>
      <scope>provided</scope>
    </dependency>
	<dependency>
      <groupId>de.nava</groupId>
      <artifactId>informa</artifactId>
      <version>unknown</version>
    </dependency>-->
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>3.1-rc1</version>
    </dependency>
    <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4.1</version>
    </dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>1.5.6</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-log4j12</artifactId>
		<version>1.5.6</version>
		<scope>runtime</scope>
	</dependency>
</dependencies>

<!--***********************************************************************-->
<!-- Build                                                                
-->
<!--***********************************************************************-->
  <build>
    <resources>
      <resource>
        <directory>${basedir}src/main/resources</directory>
      </resource>
    </resources>  








 <!--<resources> 
            <resource>
                <directory>${basedir}/src/main/resources</directory>
            </resource>
            <resource>
                <directory>${basedir}/src/main/webapp/WEB-INF</directory>
                <includes>
                    <include>web.xml</include>
                </includes>
                <filtering>true</filtering>
                <targetPath>${project.build.directory}</targetPath>
            </resource>
        </resources>
-->





<!-- Maven Clean -->
      <pluginManagement>
       <plugins>
<plugin>
<!-- Ant used for this b/c there is no way to filter webapp source using the
core maven plugins -->
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>filter-src-webapp</id>
            <phase>compile</phase>
            <configuration>
              <tasks>
                <delete dir="temp/webapp" />
                <filter filtersfile="../filter-${env}.properties" />
<!-- Name of filter is dependent on profile being used -->
                <copy todir="temp/webapp" filtering="true">
<!-- Tokens must be surrounded with '@' characters -->
                  <fileset dir="src/main/webapp">
                    <include name="**/*.*" />
                    <exclude name="**/images/**" />
                  </fileset>
                </copy>
                <copy todir="temp/webapp" filtering="false">
                  <fileset dir="src/main/webapp">
                    <include name="**/images/**" />
                  </fileset>
                </copy>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
	  
	  
	  <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <configuration>
          <filesets>
            <fileset>
              <directory>temp</directory>
<!-- Temp space used for filtering and other intermediate steps -->
            </fileset>
<!-- Directories used for war:inplace (best not to use this goal b/c it
doesn't work with filtering -->
            <fileset>
              <directory>src/main/webapp/WEB-INF/lib</directory>
            </fileset>
            <fileset>
              <directory>src/main/webapp/WEB-INF/classes</directory>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
<!-- Run unit tests -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>**/*IntegrationTest.java</exclude>
          </excludes>
        </configuration>
      </plugin>
<!-- Package -->
<!-- Please use only package, war:war or war:exploded...war:inplace does not
work b/c the src needs to be filtered -->
      
	  <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>

	  
	  <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
          <warSourceDirectory>temp/webapp</warSourceDirectory>
          <warName>eShop</warName>
          <manifest>
           
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
          </manifest>
          <archive>
            <manifestEntries>
             
<Build-Number>${project.artifactId}-${project.version}-r${buildNumber}</Build-Number>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
<!-- Deploy -->
    </plugins>
    
    </pluginManagement>
     
    
  </build>
</project>


pls help me
-- 
View this message in context: http://old.nabble.com/web.xml-does-not-exist-tp26597372p26597372.html
Sent from the Maven - Issues mailing list archive at Nabble.com.


Mime
View raw message