Struts 2 archetypes

View: New views
2 Messages — Rating Filter:   Alert me  

Struts 2 archetypes

by Irc Worm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Looks like the Struts2 snapshot archetypes are removed from the
internal catalog: http://jira.codehaus.org/browse/ARCHETYPE-199

Is there a way I can add them to my internal archetypes to be able to
use them in the archetype:generate interactive mode?

Thanks in advance

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


RE: Struts 2 archetypes

by mgainty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


start here to get an understanding of existing struts archetypes
http://struts.apache.org/2.1.8/docs/struts-2-blank-archetype.html

you'll notice the page says you should use package.properties (from struts-blank webapp) which contains
HelloWorld.message= Struts is up and running ...
requiredstring = ${getText(fieldName)} is required.
password = Password
username = User Name
Missing.message =  This feature is under construction. Please try again in the next interation.

i prefer a more comprehensive archetype.properties file statinh groupId,artifactId and version such as what is seen in the example
$ cat archetype.properties
archetype.groupId=org.apache.struts
archetype.artifactId=struts2-blank
archetype.version=2.1.8

archetype.filteredExtensions=java
archetype.languages=java

//now you can create the archetype based on archetype characterics
$ cd struts2-blank
$ mvn archetype:create-from-project -Darchetype.properties=../archetype.properties
http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-with-property-file.html

HTH
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 6 Nov 2009 21:03:20 +1100
> Subject: Struts 2 archetypes
> From: irc.worm@...
> To: users@...
>
> Hi,
>
> Looks like the Struts2 snapshot archetypes are removed from the
> internal catalog: http://jira.codehaus.org/browse/ARCHETYPE-199
>
> Is there a way I can add them to my internal archetypes to be able to
> use them in the archetype:generate interactive mode?
>
> Thanks in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
     
_________________________________________________________________
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/