[JBoss] JBoss AS7 | EAP6 + Seam 3 + Maven 3 on Fedora 16
April 6, 2012
Dear *,
Recently I looked for Seam 3 applications running into JBoss AS7 (foretaste purpose) or EAP 6 (Professional use purpose).
So I uncompressed the following packages into a temporary directory (Test purpose) of a common|standard user of the system :
- JBoss EAP6 Beta – Server which provides software applications with services such as security, data services, transaction support, load balancing, and management of large distributed systems. – -> Download Package
- JBoss AS7 – Server which provides software applications with services such as security, data services, transaction support, load balancing, and management of large distributed systems. -> Download Package
- Seam 3 – Seam is a powerful open source development platform for building rich Internet applications in Java. – -> Download Package
- Maven 3.0.3 -> well, if you are using Fedora or RHEL, be root on your system and run “yum install maven”. If not, then go to http://maven.apache.org to install the application
Then I set the JBOSS_HOME directory with the path of my application server – Here I chose to use JBoss EAP6 Beta : export JBOSS_HOME=/home/user/jboss-eap-6.0 (you can set it definitively in the maven settings.xml file or in you local profile).
I ran the JBoss EAP6 Beta Application Server in standalone mode with the following command :
jboss-eap-6.0/bin/standalone.sh
I opened the seam-3.1.0.Final/examples directories to set the following stanza in the pom.xml file :
<plugins>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.1.1.Final</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
Finally, I choose one of the Seam 3 examples, went to the corresponding directory and I compiled and deployed it to the running JBoss EAP6 Beta application server with the following commands :
cd seam-3.1.0.Final/examples/seam-booking
mvn package jboss-as:deploy
and then went to the following URL : http://localhost:8080/seam-booking
Ref : https://docs.jboss.org/jbossas/7/plugins/maven/latest/index.html
BR
Frederic