Thanks! That was the problem... Julien.
2007/8/28, Wayne Fay <[EMAIL PROTECTED]>: > > Try bumping your version to 2.0.2 which is apparently the latest > available... > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/ > > Don't know if that will do anything, just an idea. > > Wayne > > On 8/28/07, Julien Martin <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Apparently the "targetPath" tag is COMPLETELY ignored by Maven... The > > persistence.xml is copied at the root of the war... > > > > Can anyone please help? > > > > Julien. > > > > > > Here is my POM: > > > > code: > > ------------------------------ > > > > > > <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"> > > <http://maven.apache.org/maven-v4_0_0.xsd> > > <modelVersion>4.0.0</modelVersion> > > <groupId>com.calyonfinancial</groupId> > > <artifactId>protide</artifactId> > > <packaging>war</packaging> > > <version>1.0-SNAPSHOT</version> > > <name>ProtideWeb</name> > > <build> > > <sourceDirectory>src</sourceDirectory> > > <outputDirectory>build</outputDirectory> > > <finalName>ProtideWeb</finalName> > > <plugins> > > <plugin> > > <artifactId>maven-compiler-plugin</artifactId> > > <configuration> > > <source>1.5</source> > > <target>1.5</target> > > </configuration> > > </plugin> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-war-plugin</artifactId> > > <version>2.0</version> > > <configuration> > > <warSourceDirectory>web</warSourceDirectory> > > <webResources> > > <resource> > > <directory>src/conf</directory> > > <targetPath>META-INF</targetPath> > > <includes> > > <include>persistence.xml</include> > > </includes> > > </resource> > > </webResources> > > </configuration> > > </plugin> > > </plugins> > > </build> > > <dependencies> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate</artifactId> > > <version>3.2.1.ga</version> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-annotations</artifactId> > > <version>3.2.1.ga</version> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-entitymanager</artifactId> > > <version>3.2.1.ga</version> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-commons-annotations</artifactId> > > <version>3.3.0.ga</version> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-validator</artifactId> > > <version>3.0.0.ga</version> > > </dependency> > > <dependency> > > <groupId>javax.persistence</groupId> > > <artifactId>persistence-api</artifactId> > > <version>1.0</version> > > </dependency> > > <dependency> > > <groupId>log4j</groupId> > > <artifactId>log4j</artifactId> > > <version>1.2.14</version> > > </dependency> > > <dependency> > > <groupId>com.sun.xml.bind</groupId> > > <artifactId>jaxb-impl</artifactId> > > <version>2.0</version> > > </dependency> > > <dependency> > > <groupId>com.sun.xml.bind</groupId> > > <artifactId>jaxb-xjc</artifactId> > > <version>2.0</version> > > </dependency> > > <dependency> > > <groupId>javax.xml.bind</groupId> > > <artifactId>jaxb-api</artifactId> > > <version>2.0</version> > > </dependency> > > <!-- > > <dependency> > > <groupId>org.apache.maven</groupId> > > <artifactId>maven-project</artifactId> > > <version>2.0.4</version> > > </dependency> > > <dependency> > > <groupId>org.apache.maven</groupId> > > <artifactId>maven-plugin-api</artifactId> > > <version>2.0.4</version> > > </dependency> > > --> > > <dependency> > > <groupId>jdbc</groupId> > > <artifactId>as400</artifactId> > > <version>5.1.0.1</version> > > </dependency> > > <dependency> > > <groupId>javax.xml.bind</groupId> > > <artifactId>jsr173_api</artifactId> > > <version>1.0</version> > > </dependency> > > <dependency> > > <groupId>org.apache.myfaces.core</groupId> > > <artifactId>myfaces-api</artifactId> > > <version>1.1.5</version> > > </dependency> > > <dependency> > > <groupId>org.apache.myfaces.core</groupId> > > <artifactId>myfaces-impl</artifactId> > > <version>1.1.5</version> > > </dependency> > > <dependency> > > <groupId>org.apache.myfaces.tomahawk</groupId> > > <artifactId>tomahawk</artifactId> > > <version>1.1.6</version> > > </dependency> > > <dependency> > > <groupId>javax.servlet</groupId> > > <artifactId>servlet-api</artifactId> > > <version>2.4</version> > > <scope>provided</scope> > > </dependency> > > <dependency> > > <groupId>javax.servlet</groupId> > > <artifactId>jsp-api</artifactId> > > <version>2.0</version> > > <scope>provided</scope> > > </dependency> > > <dependency> > > <groupId>org.ajax4jsf</groupId> > > <artifactId>ajax4jsf</artifactId> > > <version>1.1.1</version> > > <exclusions> > > <exclusion> > > <groupId>javax.faces</groupId> > > <artifactId>jsf-api</artifactId> > > </exclusion> > > <exclusion> > > <groupId>javax.faces</groupId> > > <artifactId>jsf-impl</artifactId> > > </exclusion> > > </exclusions> > > </dependency> > > <dependency> > > <groupId>org.richfaces</groupId> > > <artifactId>richfaces</artifactId> > > <version>3.0.1</version> > > <exclusions> > > <exclusion> > > <groupId>javax.faces</groupId> > > <artifactId>jsf-api</artifactId> > > </exclusion> > > <exclusion> > > <groupId>javax.faces</groupId> > > <artifactId>jsf-impl</artifactId> > > </exclusion> > > </exclusions> > > </dependency> > > <dependency> > > <groupId>org.apache.poi</groupId> > > <artifactId>poi</artifactId> > > <version>3.0.1-FINAL</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.myfaces.trinidad</groupId> > > <artifactId>trinidad-api</artifactId> > > <version>1.0.2</version> > > </dependency> > > <dependency> > > <groupId>org.apache.myfaces.trinidad</groupId> > > <artifactId>trinidad-impl</artifactId> > > <version>1.0.2</version> > > </dependency> > > <!-- > > <dependency> > > <groupId>org.ajax4jsf</groupId> > > <artifactId>a4j-trinidad</artifactId> > > <version>1.0</version> > > </dependency> > > --> > > </dependencies> > > </project> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
