Struts2/Maven archetype catalog issue
-------------------------------------

                 Key: WW-3504
                 URL: https://issues.apache.org/jira/browse/WW-3504
             Project: Struts 2
          Issue Type: Bug
          Components: Build Management
    Affects Versions: 2.2.1
         Environment: Windows Vista/HP Pavilion dv9700
            Reporter: Roland T. Craddolph


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart 
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://struts.apache.org/ -> struts2-archetype-blank (Struts 2 Archetypes - 
Blank)
2: http://struts.apache.org/ -> struts2-archetype-convention (Struts 2 
Archetypes - Blank Convention)
3: http://struts.apache.org/ -> struts2-archetype-dbportlet (Struts 2 
Archetypes - Database Portlet)
4: http://struts.apache.org/ -> struts2-archetype-plugin (Struts 2 Archetypes - 
Plugin)
5: http://struts.apache.org/ -> struts2-archetype-portlet (Struts 2 Archetypes 
- Portlet)
6: http://struts.apache.org/ -> struts2-archetype-starter (Struts 2 Archetypes 
- Starter)
Choose a number:  (1/2/3/4/5/6): Define value for groupId: : Define value for 
artifactId: : Define value for version:  1.0-SNAPSHOT: : Define value for 
package:  test11: : Confirm properties configuration:
groupId: test11
artifactId: test11
version: 1.0-SNAPSHOT
package: src/main/java
 Y: : [INFO] 
----------------------------------------------------------------------------
[INFO] Using following parameters for creating OldArchetype: 
struts2-archetype-starter:2.2.1
[INFO] 
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: test11
[INFO] Parameter: packageName, Value: src/main/java
[INFO] Parameter: package, Value: src/main/java
[INFO] Parameter: artifactId, Value: test11
[INFO] Parameter: basedir, Value: C:\Users\Roland T. Craddolph\Desktop\test
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = archetype-resources/pom.xml [line 30,column 22] : ${struts2.version} 
is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = archetype-resources/pom.xml [line 36,column 22] : ${struts2.version} 
is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = archetype-resources/pom.xml [line 42,column 22] : ${struts2.version} 
is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = archetype-resources/pom.xml [line 48,column 22] : ${struts2.version} 
is not a valid reference.
[ERROR] Error reading POM
org.apache.maven.archetype.old.ArchetypeTemplateProcessingException: Error 
reading POM
        at 
org.apache.maven.archetype.old.DefaultOldArchetype.processTemplates(DefaultOldArchetype.java:506)
        at 
org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:331)
        at 
org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processOldArchetype(DefaultArchetypeGenerator.java:253)
        at 
org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:143)
        at 
org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:286)
        at 
org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype(DefaultArchetype.java:69)
        at 
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:184)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        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:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: only 
whitespace content allowed before start tag and not \uef (position: 
START_DOCUMENT seen \uef... @1:1) 
        at 
hidden.org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1519)
        at 
hidden.org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1395)
        at 
hidden.org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3911)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3926)
        at 
org.apache.maven.archetype.old.DefaultOldArchetype.processTemplates(DefaultOldArchetype.java:498)
        ... 24 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] : org.apache.maven.archetype.old.ArchetypeTemplateProcessingException: 
Error reading POM
Error reading POM
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Tue Sep 14 12:03:13 CDT 2010
[INFO] Final Memory: 8M/21M
[INFO] ------------------------------------------------------------------------



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to