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 ?
WildFly Java EE 7 archetypes are available at:
http://mvnrepository.com/artifact/org.wildfly.archetype
Is that what you are looking for ?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With