You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Sanda <jo...@gmail.com> on 2006/04/13 18:37:09 UTC

Project build error Duplicate project ID

I just started working with the Eclipse plug-in, and I do not
understand why I get the following build error in the Eclipse console
- "Project build error Duplicate project ID found in
C:\dev\xfire-examples\BookFinder\pom.xml". Here is what my pom.xml
looks like:

<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>com.foo</groupId>
  <artifactId>bookfinder</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Maven Webapp Archetype</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>org.codehaus.xfire</groupId>
      <artifactId>xfire-spring</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <build>
    <finalName>bookfinder</finalName>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <warSourceDirectroy>${basedir}/src/webapp</warSourceDirectroy>
        </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>


Is there a problem with my POM? Thanks.

--

- John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Project build error Duplicate project ID

Posted by bkbonner <br...@paraware.com>.
It looks like MVNECLIPSE 0.7 resolves this problem.

In Eclipse choose:
Help -> Software -> Manage Configuration -> Maven 2.0 integration and then
click scan for updates :)
--
View this message in context: http://www.nabble.com/Project-build-error-Duplicate-project-ID-t1445476.html#a4172291
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Project build error Duplicate project ID

Posted by bkbonner <br...@paraware.com>.
I'm seeing a similar sort of build error in Eclipse.  Any suggestions as to
how we resolve this?
--
View this message in context: http://www.nabble.com/Project-build-error-Duplicate-project-ID-t1445476.html#a4172246
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org