Forget about wtpversion, I didn't see it was already set in your pom file.
On 6/8/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
If you want a web project, add '<packaging>war</packaging>' just after '<version>'. Also be sure to run 'mvn eclise:eclipse -Dwtpversion=1.0'. If you don't specify the wtpversion, Maven just create a regular Eclipse project and not a web project. On 6/8/06, giacumbert <[EMAIL PROTECTED]> wrote: > > Hello Alexandre > > I tried to convert an example from the xfire distribution to an wtp project. > I used the following commands: > > mvn eclipse:clean eclipse:eclipse > > But this command doesn't to the trick at all for me. I used the following > pom.xml in the xfire example. > If you can see any faults please tell me. > > Cheers Christian > > <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>org.codehaus.xfire.examples</groupId> > <artifactId>xfire.demo.book</artifactId> > <name>Book Example</name> > <version>1.1</version> > <inceptionYear>2004</inceptionYear> > > <dependencies> > <dependency> > <groupId>org.codehaus.xfire</groupId> > <artifactId>xfire-spring</artifactId> > <version>1.1</version> > </dependency> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.3</version> > <scope>provided</scope> > </dependency> > </dependencies> > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <configuration> > <warSourceDirectory>${basedir}/src/webapp</warSourceDirectory> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-eclipse-plugin</artifactId> > <configuration> > <wtpversion >1.0</wtpversion > > </configuration> > </plugin> > </plugins> > <sourceDirectory>src/main</sourceDirectory> > <testSourceDirectory>src/test</testSourceDirectory> > <resources> > <resource> > <directory>src/main</directory> > <includes> > <include>**/*.xml</include> > </includes> > </resource> > </resources> > <testResources> > <testResource> > <directory>src/test</directory> > <includes> > <include>**/*.xml</include> > <include>**/*.properties</include> > <include>**/*.wsdl</include> > </includes> > </testResource> > </testResources> > </build> > > <!-- needed for XmlSchema --> > <repositories> > <repository> > <id>codehaus</id> > <name>Codehaus maven repository</name> > <url>http://dist.codehaus.org/</url> > <layout>legacy</layout> > </repository> > </repositories> > > </project> > -- > View this message in context: http://www.nabble.com/Maven-2-and-WTP-t1746013.html#a4766814 > Sent from the Maven - Users forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]