You're not using the default folder for the webapp sources.
So either change your folder structure (using src/main/webapp instead of
WebContent)
or configure
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#warSourceDirectory
Robert
Op Mon, 16 Apr 2012 18:19:12 +0200 schreef titans <odess...@mail.ru>:
Hello. I'm doing a training project on Eclipse with Spring MVC and
Hibernate.
The problem is that I am exporting to the Eclipse WAR file, but TomCat
sees
it as one error. I decided to try to compile the project in Maven.
However,
after compiling I see in war only archive of the folder WEB-INF (web.xml
and
the location of the libraries) and the META-INF. There is no jsp file,
why?
Help me
The context of pom.xml
<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>tableFinish</groupId>
<artifactId>tableFinish</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>tableFinish</name>
<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>EBR Spring Release Repository</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>EBR External Release Repository</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
</repositories>
<properties>
<org.springframework.version>3.0.1.RELEASE</org.springframework.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>WebContent\WEB-INF\web.xml</webXml>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.core</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web.servlet</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
</dependency>
</dependencies>
<description>tableFinish</description>
</project>
http://maven.40175.n5.nabble.com/file/n5644304/d1.png
http://maven.40175.n5.nabble.com/file/n5644304/d2.png
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-don-t-include-index-jsp-tp5644304p5644304.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org