Hi Benoit, Do you have the same error if you launch maven directly in m1-common-build ? Arnaud
Benoitx wrote: > > Hi *, > > I have this problem with 1.1-RC1 but not with 1.1-beta3 (august). > > When I try to compile, jar:install or any other goal a project which is > part of a multi-project setup, I get the following exception: > > BUILD FAILED > > Errors stack : >>> Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' >>> Duplicated tag: 'project' > > Exception stack traces : > org.apache.maven.MavenException: Error parsing project.xml > 'C:\project\qalab\m1-common-build\project.xml' > at > org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:195) > at > org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:231) > at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123) > at org.apache.maven.MavenUtils.getProject(MavenUtils.java:104) > at > org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) > at org.apache.maven.MavenSession.initialize(MavenSession.java:173) > at org.apache.maven.cli.App.doMain(App.java:292) > at org.apache.maven.cli.App.main(App.java:218) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:589) > at com.werken.forehead.Forehead.run(Forehead.java:551) > at com.werken.forehead.Forehead.main(Forehead.java:581) > Caused by: org.dom4j.DocumentException: Duplicated tag: 'project' > at > org.apache.maven.project.io.dom4j.MavenDom4jReader.parseModel(MavenDom4jReader.java:1643) > at > org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2617) > at > org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2628) > at org.apache.maven.project.Project.<init>(Project.java:151) > at > org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:191) > ... 13 more > > C:\project\qalab\m1-common-build\project.xml does NOT contain <project> > twice... > > Here is the common-build project.xml: > <project> > <!-- the version of maven's project object model --> > <pomVersion>3</pomVersion> > <!-- a unique name for this project --> > <!-- <id>qalab:qalab</id>--> > <!-- a short but descriptive name for the project --> > <artifactId>qalab</artifactId> > <name>QALab Stats for Builds</name> > <!-- The version of the project under development, e.g. > 1.1, 1.2, 2.0-SNAPSHOT --> > <groupId>net.objectlab</groupId> > <currentVersion>1.0-b1</currentVersion> > <!-- details about the organization that 'owns' the project --> > <organization> > <name>ObjectLab Financial Ltd</name> > <url>http://www.objectlab.co.uk/</url> > <logo> > http://www.objectlab.co.uk/images/objectlab-web-noblue.gif > </logo> > </organization> > <!-- the year the project started --> > <licenses> > <license> > <name>GNU General Public License</name> > <url>http://www.gnu.org/copyleft/gpl.html</url> > </license> > </licenses> > <reports> > <report>maven-faq-plugin</report> > <report>maven-checkstyle-plugin</report> > <report>maven-findbugs-plugin</report> > <report>maven-pmd-plugin</report> > <report>maven-simian-plugin</report> > <report>maven-cobertura-plugin</report> > <report>maven-qalab-plugin</report> > <!--<report>maven-ydoc-plugin</report>--> > <report>maven-jdepend-plugin</report> > <report>maven-junit-report-plugin</report> > <report>maven-jxr-plugin</report> > <report>maven-changes-plugin</report> > <report>maven-developer-activity-plugin</report> > <report>maven-file-activity-plugin</report> > <!--<report>maven-linkcheck-plugin</report>--> > <report>maven-tasklist-plugin</report> > <!--<report>maven-dashboard-plugin</report>--> > <report>maven-license-plugin</report> > </reports> > <inceptionYear>2004</inceptionYear> > <package>net.objectlab.qalab</package> > <logo>http://www.objectlab.co.uk/images/qalab.gif</logo> > <description> > This project collects data from several QA tools, like pmd, > checkstyle, FindBugs, Cobertura and Simian and
 keeps track of > them overtime. This allows developers, architects and project > managers alike to be presented
 with a trend of the QA > statistics of their project. > </description> > <!-- a short description of what the project does --> > <shortDescription> > QA Statistics aggregation and trend analysis. > </shortDescription> > <!-- the project home page --> > <url>http://qalab.sourceforge.net</url> > <issueTrackingUrl> > http://www.sourceforge.net/tracker/?group_id=140880 > </issueTrackingUrl> > <siteAddress>www.objectlab.co.uk</siteAddress> > <siteDirectory>/home/groups/q/qa/qalab/htdocs</siteDirectory> > <distributionDirectory> > /home/groups/q/qa/qalab/ > </distributionDirectory> > <!-- the version control repository and http url for online access > the connection element has the form: > scm:<system>:<system specific connection string> --> > <repository> > <url>http://svn.sourceforge.net/qalab</url> > <connection> > scm:svn:https://svn.sourceforge.net/svnroot/qalab/trunk > </connection> > <developerConnection> > scm:svn:https://svn.sourceforge.net/svnroot/qalab/trunk > </developerConnection> > </repository> > <versions> > <version> > <id>0.7</id> > <name>0.7</name> > <tag>QALAB_0_7</tag> > </version> > <version> > <id>0.7.1</id> > <name>0.7.1</name> > <tag>QALAB_0_7_1</tag> > </version> > <version> > <id>0.7.2</id> > <name>0.7.2</name> > <tag>QALAB_0_7_2</tag> > </version> > <version> > <id>0.8.0</id> > <name>0.8.0</name> > <tag>QALAB_0_8_0</tag> > </version> > <version> > <id>0.9.0</id> > <name>0.9.0</name> > <tag>QALAB_0_9_0</tag> > </version> > <version> > <id>0.9.1</id> > <name>0.9.1</name> > <tag>QALAB_0_9_1</tag> > </version> > <version> > <id>1.0-b1</id> > </version> > </versions> > <!-- any mailing lists for the project --> > <mailingLists> > <mailingList> > <name>QALab Announcements</name> > <subscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-announce > </subscribe> > <unsubscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-announce > </unsubscribe> > <archive> > > http://sourceforge.net/mailarchive/forum.php?forum=qalab-announce > </archive> > </mailingList> > <mailingList> > <name>QALab Users</name> > <subscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-users > </subscribe> > <unsubscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-users > </unsubscribe> > <archive> > http://sourceforge.net/mailarchive/forum.php?forum=qalab-users > </archive> > </mailingList> > <mailingList> > <name>QALab Developers (CVS checkins)</name> > <subscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-develop > </subscribe> > <unsubscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-develop > </unsubscribe> > <archive> > > http://sourceforge.net/mailarchive/forum.php?forum=qalab-develop > </archive> > </mailingList> > </mailingLists> > <!-- who the developers are for the project --> > <developers> > <developer> > <name>Marcin Jekot</name> > <id>marchy</id> > marcin at jekot DOt net > <organization>ObjectLab Financial Ltd</organization> > <roles> > <role>Developer</role> > </roles> > <timezone>+0</timezone> > </developer> > <developer> > <name>Dave Sag</name> > <id>davsag</id> > davesag at sourceforge dot net > <organization>individual</organization> > <url>http://www.davesag.com</url> > <timezone>+1</timezone> > <roles> > <role>Java Developer</role> > </roles> > </developer> > <developer> > <name>Benoit Xhenseval</name> > <id>benoitx</id> > qalab at objectlab dot co dot uk > <organization>ObjectLab Ltd</organization> > <url>http://www.xhenseval.com</url> > <timezone>0</timezone> > <roles> > <role>Founder</role> > <role>Java Developer</role> > </roles> > </developer> > </developers> > <contributors> > <contributor> > <name>Paramjit Rehinsi</name> > qalab at objectlab dot co dot uk > <organization>ObjectLab Ltd</organization> > <url>http://www.objectlab.co.uk</url> > <timezone>0</timezone> > <roles> > <role>Java Developer</role> > </roles> > </contributor> > </contributors> > > <!-- jar files the project is dependent on --> > <dependencies> > <dependency> > <groupId>jfree</groupId> > <artifactId>jfreechart</artifactId> > <version>1.0.2</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>jfree</groupId> > <artifactId>jcommon</artifactId> > <version>1.0.5</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>xerces</groupId> > <artifactId>xerces</artifactId> > <version>2.4.0</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>xerces</groupId> > <artifactId>xercesImpl</artifactId> > <version>2.6.2</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>ant</groupId> > <artifactId>ant</artifactId> > <version>1.6.4</version> > <type>jar</type> > </dependency> > </dependencies> > <!-- build information for the project --> > <build> > <defaultGoal>qa:releasebuild</defaultGoal> > <nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress> > </build> > > <reports>...</reports> > ... > </build> > > And the project.xml in the directory I try to compile: > > Am I use the extend correctly? Is this a bug? > > <project> > <extend>../m1-common-build/project.xml</extend> > <!-- the version of maven's project object model --> > <pomVersion>3</pomVersion> > <!-- a unique name for this project --> > <!-- <id>qalab:qalab</id>--> > <!-- a short but descriptive name for the project --> > <artifactId>qalab</artifactId> > <name>QALab Stats for Builds</name> > <!-- The version of the project under development, e.g. > 1.1, 1.2, 2.0-SNAPSHOT --> > <groupId>net.objectlab</groupId> > <currentVersion>1.0-b1</currentVersion> > <!-- details about the organization that 'owns' the project --> > <organization> > <name>ObjectLab Ltd</name> > <url>http://www.objectlab.co.uk/</url> > <logo> > http://www.objectlab.co.uk/images/objectlab-web-noblue.gif > </logo> > </organization> > <!-- the year the project started --> > <licenses> > <license> > <name>GNU General Public License</name> > <url>http://www.gnu.org/copyleft/gpl.html</url> > </license> > </licenses> > <reports> > <report>maven-faq-plugin</report> > <report>maven-checkstyle-plugin</report> > <report>maven-findbugs-plugin</report> > <report>maven-pmd-plugin</report> > <report>maven-simian-plugin</report> > <report>maven-cobertura-plugin</report> > <report>maven-qalab-plugin</report> > <!--<report>maven-ydoc-plugin</report>--> > <report>maven-jdepend-plugin</report> > <report>maven-junit-report-plugin</report> > <report>maven-jxr-plugin</report> > <report>maven-changes-plugin</report> > <report>maven-developer-activity-plugin</report> > <report>maven-file-activity-plugin</report> > <!--<report>maven-linkcheck-plugin</report>--> > <report>maven-tasklist-plugin</report> > <!--<report>maven-dashboard-plugin</report>--> > <report>maven-license-plugin</report> > </reports> > <inceptionYear>2004</inceptionYear> > <package>net.objectlab.qalab</package> > <logo>http://www.objectlab.co.uk/images/qalab.gif</logo> > <description> > This project collects data from several QA tools, like pmd, > checkstyle, FindBugs, Cobertura and Simian and
 keeps track of > them overtime. This allows developers, architects and project > managers alike to be presented
 with a trend of the QA > statistics of their project. > </description> > <!-- a short description of what the project does --> > <shortDescription> > QA Statistics aggregation and trend analysis. > </shortDescription> > <!-- the project home page --> > <url>http://qalab.sourceforge.net</url> > <issueTrackingUrl> > http://www.sourceforge.net/tracker/?group_id=140880 > </issueTrackingUrl> > <siteAddress>www.objectlab.co.uk</siteAddress> > <siteDirectory>/home/groups/q/qa/qalab/htdocs</siteDirectory> > <distributionDirectory> > /home/groups/q/qa/qalab/ > </distributionDirectory> > <!-- the version control repository and http url for online access > the connection element has the form: > scm:<system>:<system specific connection string> --> > <repository> > <url>http://svn.sourceforge.net/qalab</url> > <connection> > scm:svn:https://svn.sourceforge.net/svnroot/qalab/trunk > </connection> > <developerConnection> > scm:svn:https://svn.sourceforge.net/svnroot/qalab/trunk > </developerConnection> > </repository> > <versions> > <version> > <id>1.0-b1</id> > <name>1.0-b1</name> > <tag>1.0-b1</tag> > </version> > <version> > <id>0.9.1</id> > <name>0.9.1</name> > <tag>QALAB_0_9_1</tag> > </version> > <version> > <id>0.9.0</id> > <name>0.9.0</name> > <tag>QALAB_0_9_0</tag> > </version> > <version> > <id>0.8.0</id> > <name>0.8.0</name> > <tag>QALAB_0_8_0</tag> > </version> > <version> > <id>0.7.2</id> > <name>0.7.2</name> > <tag>QALAB_0_7_2</tag> > </version> > <version> > <id>0.7.1</id> > <name>0.7.1</name> > <tag>QALAB_0_7_1</tag> > </version> > <version> > <id>0.7</id> > <name>0.7</name> > <tag>QALAB_0_7</tag> > </version> > </versions> > <!-- any mailing lists for the project --> > <mailingLists> > <mailingList> > <name>QALab Announcements</name> > <subscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-announce > </subscribe> > <unsubscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-announce > </unsubscribe> > <archive> > > http://sourceforge.net/mailarchive/forum.php?forum=qalab-announce > </archive> > </mailingList> > <mailingList> > <name>QALab Users</name> > <subscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-users > </subscribe> > <unsubscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-users > </unsubscribe> > <archive> > http://sourceforge.net/mailarchive/forum.php?forum=qalab-users > </archive> > </mailingList> > <mailingList> > <name>QALab Developers (CVS checkins)</name> > <subscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-develop > </subscribe> > <unsubscribe> > http://lists.sourceforge.net/lists/listinfo/qalab-develop > </unsubscribe> > <archive> > > http://sourceforge.net/mailarchive/forum.php?forum=qalab-develop > </archive> > </mailingList> > </mailingLists> > <!-- who the developers are for the project --> > <developers> > <developer> > <name>Marcin Jekot</name> > <id>marchy</id> > marcin at jekot DOt net > <organization>ObjectLab Financial Ltd</organization> > <roles> > <role>Developer</role> > </roles> > <timezone>+0</timezone> > </developer> > <developer> > <name>Dave Sag</name> > <id>davsag</id> > davesag at sourceforge dot net > <organization>individual</organization> > <url>http://www.davesag.com</url> > <timezone>+1</timezone> > <roles> > <role>Java Developer</role> > </roles> > </developer> > <developer> > <name>Benoit Xhenseval</name> > <id>benoitx</id> > qalab at objectlab dot co dot uk > <organization>ObjectLab Ltd</organization> > <url>http://www.xhenseval.com</url> > <timezone>0</timezone> > <roles> > <role>Founder</role> > <role>Java Developer</role> > </roles> > </developer> > </developers> > <contributors> > <contributor> > <name>Paramjit Rehinsi</name> > qalab at objectlab dot co dot uk > <organization>ObjectLab Ltd</organization> > <url>http://www.objectlab.co.uk</url> > <timezone>0</timezone> > <roles> > <role>Java Developer</role> > </roles> > </contributor> > </contributors> > > <!-- jar files the project is dependent on --> > <dependencies> > <dependency> > <groupId>jfree</groupId> > <artifactId>jfreechart</artifactId> > <version>1.0.2</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>jfree</groupId> > <artifactId>jcommon</artifactId> > <version>1.0.5</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>xerces</groupId> > <artifactId>xerces</artifactId> > <version>2.4.0</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>xerces</groupId> > <artifactId>xercesImpl</artifactId> > <version>2.6.2</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>ant</groupId> > <artifactId>ant</artifactId> > <version>1.6.4</version> > <type>jar</type> > </dependency> > </dependencies> > <!-- build information for the project --> > <build> > <defaultGoal>qa:releasebuild</defaultGoal> > <nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress> > <sourceDirectory>src/main/java</sourceDirectory> > <unitTestSourceDirectory>src/test/java</unitTestSourceDirectory> > <unitTest> > <includes> > <include>**/*Test.java</include> > </includes> > <excludes> > <exclude>**/NaughtyTest.java</exclude> > </excludes> > <resources> > <resource> > <directory>src/test/java</directory> > <includes> > <include>**/*.xml</include> > </includes> > <filtering>false</filtering> > </resource> > </resources> > </unitTest> > <resources> > <resource> > <directory>src/conf</directory> > <includes> > <include>*.properties</include> > <include>**/*.gif</include> > </includes> > <filtering>false</filtering> > </resource> > </resources> > </build> > </project> > > Thanks a lot > -- View this message in context: http://www.nabble.com/-M1.1-RC1-Oct--Issue---%3E-Duplicated-tag%3A-%27project%27-tf2581521s177.html#a7197779 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]