17.08.2016 Views

Apache Maven 3 Cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Java Development with <strong>Maven</strong><br />

Getting ready<br />

Seam is a web application framework. Hence you need a <strong>Maven</strong> web application project<br />

to implement it in. If you don't have one ready, create it by running the following command<br />

in the console:<br />

$ mvn archetype:generate -DarchetypeArtifactId=maven-archetypewebapp<br />

-DartifactId=testWebApp -DgroupId=net.srirangan.packt.maven<br />

-Dversion=1.0-SNAPSHOT -Dpackage=net.srirangan.packt.maven<br />

How to do it...<br />

Seam3 artifacts and examples are published on the JBoss Community <strong>Maven</strong> Repository.<br />

These include source and JavaDoc artifacts as well. To access them, you need to modify<br />

your <strong>Maven</strong> settings.xml to recognize and access the JBoss public repository.<br />

<br />

<br />

jboss-public-repository<br />

<br />

<br />

jboss-public-repository<br />

!false<br />

<br />

<br />

<br />

<br />

jboss-public-repository-group<br />

JBoss Public <strong>Maven</strong> Repository Group<br />

http://repository.jboss.org<br />

/nexus/content/groups/public<br />

<br />

true<br />

never<br />

<br />

<br />

false<br />

never<br />

<br />

<br />

<br />

<br />

<br />

jboss-public-repository-group<br />

JBoss Public <strong>Maven</strong> Repository Group<br />

120

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!