Ok.

I started messing around with some more and option 6 didn't work, it has a 
build failure.

Roland  T. Craddolph
Amagatto Solutions LLC
Principal Member and Lead Architect
Email: rcraddo...@amagatto.com
Website: http://www.amagatto.com


-----Original Message-----
From: Dave Newton [mailto:davelnew...@gmail.com] 
Sent: Tuesday, September 14, 2010 11:55 AM
To: Struts Users Mailing List
Subject: Re: Struts2 and Maven Archetypes

That's a directory structure, not a package structure. The archetype
will put the source in the right place for Maven.

On Tue, Sep 14, 2010 at 12:53 PM, Roland T. Craddolph
<rcraddo...@amagatto.com> wrote:
> Is there a standard like src/main/java?  I'm trying to follow some of the 
> Google examples for project development (mostly RCP for the time being), but 
> I've been in several Java developing environments that don't have the same 
> layout when it comes to Java development.
>
> Roland  T. Craddolph
> Amagatto Solutions LLC
> Principal Member and Lead Architect
> Email: rcraddo...@amagatto.com
> Website: http://www.amagatto.com
>
>
> -----Original Message-----
> From: Dave Newton [mailto:davelnew...@gmail.com]
> Sent: Tuesday, September 14, 2010 10:55 AM
> To: Struts Users Mailing List
> Subject: Re: Struts2 and Maven Archetypes
>
> The root of your package structure.
>
> On Tue, Sep 14, 2010 at 11:50 AM, Roland T. Craddolph
> <rcraddo...@amagatto.com> wrote:
>> After you enter the value for groupId, artifactId, and version, you have to 
>> enter in the value for package I attached a screen shot of an example of 
>> what I'm talking about.  I'm just wondering what would be recommended to put 
>> there.
>>
>> Roland  T. Craddolph
>> Amagatto Solutions LLC
>> Principal Member and Lead Architect
>> Email: rcraddo...@amagatto.com
>> Website: http://www.amagatto.com
>>
>> -----Original Message-----
>> From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
>> Sent: Tuesday, September 14, 2010 1:02 AM
>> To: Struts Users Mailing List
>> Subject: Re: Struts2 and Maven Archetypes
>>
>> 2010/9/14 Roland T. Craddolph <rcraddo...@amagatto.com>:
>>> Sorry I've been having Outlook issues for far too long that finally got 
>>> fixed.  It works and this is a lot easier than that huge command.  My only 
>>> question is for the packaging question what would you recommend to put 
>>> there?  I'm still trying my best to follow "industry" standards if that 
>>> makes sense.
>>
>> Sorry, but I don't understand your question, could you explain it a bit?
>>
>>
>> Kind regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>> Kapituła Javarsovia 2010 http://javarsovia.pl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com
>> Version: 9.0.851 / Virus Database: 271.1.1/3134 - Release Date: 09/14/10 
>> 01:35:00
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.851 / Virus Database: 271.1.1/3134 - Release Date: 09/14/10 
> 01:35:00
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.851 / Virus Database: 271.1.1/3134 - Release Date: 09/14/10 
01:35:00
[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] ------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to