Issue Details (XML | Word | Printable)

Key: APF-1175
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Javier Pinilla
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
AppFuse

mvn appfuse:full-source in appfuse-modular archetypes produces duplicated tag modules

Created: 01/Dec/09 01:13 PM   Updated: 01/Dec/09 10:50 PM
Return to search
Component/s: Build, Test, or Deploy Process
Affects Version/s: 2.1.0-M2
Fix Version/s: 2.1.0-M2

Environment:
$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_15
Java home: c:\Archivos de programa\Java\jdk1.6.0_15\jre
Default locale: es_ES, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"


 Description  « Hide
The modified pom.xml after mvn appfuse:full-source contains a duplicated modules tag:
<modules>
<module>core</module>
<module>web</module>
</modules>

How to reproduce it:
--------------------
$ mvn archetype:generate -B \
-DarchetypeGroupId=org.appfuse.archetypes \
-DarchetypeArtifactId=appfuse-modular-spring-archetype \
-DarchetypeVersion=2.1.0-M2-SNAPSHOT \
-DgroupId=es.xxx.app \
-DartifactId=modular-spring \
-DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse

$ cd modular-spring

$ mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
(mvn eclipse:eclise does not work)

$ mvn appfuse:full-source

$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown
POM Location: e:\var\workspaces\appfuse\modular-spring\pom.xml

Reason: Parse error reading POM. Reason: Duplicated tag: 'modules' (position: ST
ART_TAG seen ...</properties>\r\n <modules>... @400:12) for project unknown at
 e:\var\workspaces\appfuse\modular-spring\pom.xml

Matt Raible made changes - 01/Dec/09 10:50 PM
Field Original Value New Value
Fix Version/s 2.1.0-M2 [ 10210 ]