Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there no Wildfly 8 / Java EE 7 quickstart archetypes? [closed]

I remember from Jboss AS 7 and earlier there being convenient maven archetypes available that would set up maven projects with the apropriate dependencies and BOM, but I can't find any for Wildfly/Java EE 7.

I found the BOMs and instruction on how to manually add them to a project, but I'm wondering if I'm not missing preconfigured archetypes that exist somewhere.

Also, if there are indeed no updated archetypes: why not ?

like image 669
Torque Avatar asked Jul 04 '14 16:07

Torque


2 Answers

WildFly Java EE 7 archetypes are available at:

http://mvnrepository.com/artifact/org.wildfly.archetype

Is that what you are looking for ?

like image 130
Arun Gupta Avatar answered Oct 12 '22 10:10

Arun Gupta


Actually there are not yet official wildfly archetypes but you can start with webapp-javaee7 such as:

mvn -DarchetypeGroupId=org.codehaus.mojo.archetypes   \
    -DarchetypeArtifactId=webapp-javaee7              \
    -DarchetypeVersion=0.1-SNAPSHOT                   \
    -DarchetypeRepository=https://nexus.codehaus.org/content/repositories/snapshots/ \
    -DgroupId=com.sample                              \
    -DartifactId=javaee7-sample                       \
    -Dversion=1.0-SNAPSHOT                            \
    -Dpackage=com.sample                              \
    -Darchetype.interactive=false                     \
    --batch-mode --update-snapshots archetype:generate

Then you can further refine your pom.xml by adding Bill of Materials and the WildFly plugin. See this Maven configuration tutorial for info about the available BOMs.

like image 27
Francesco Marchioni Avatar answered Oct 12 '22 11:10

Francesco Marchioni