-
-
Building Seam 3
Seam 3 is built entirely with Maven 2, so you will need to have that installed before you begin. You also need to use JDK 6 at the moment. Seam 3 will target JDK 5, but we're using a JDK 6 API for convenience/prototyping. Keep in mind that Seam 3 is in the very early stages, so put on your lab glasses ;)
Begin by installing/extracting JBoss AS 5. Set the JBOSS_HOME environment variable to point to this installation. Now, checkout and build!
Open a shell and switch to your development directory. (Committers note that you can change the repository URLs to https://svn.jboss.org...)
Let's begin by building Weld. Seam 3 requires a JSR-299 implementation, so Weld fulfills this requirement.
mkdir weld-trunk cd weld-trunk svn co http://anonsvn.jboss.org/repos/weld/ri/trunk ri svn co http://anonsvn.jboss.org/repos/jbossas/projects/webbeans-ri-int/trunk ri-int svn co http://anonsvn.jboss.org/repos/weld/extensions/trunk extensions cd ri mvn install -Dmaven.test.skip=true cd ../ri-int mvn install -Dmaven.test.skip=true cd ../extensions/logger mvn install -Dmaven.test.skip=true cd ../../ri/jboss-as
PAUSE
Create file local.build.properties and populate with:
jboss.home=<
> webbeans-ri-int.version=5.2.0-SNAPSHOT webbeans.version=1.0.0-SNAPSHOT Now to install the web beans deployer into JBoss AS 5.
ant update
Let's now get Seam 3 checked out and built.
cd ../../.. mkdir seam-trunk cd seam-trunk svn co http://anonsvn.jboss.org/repos/seam/modules/trunk modules cd modules mvn install cd jsf-upgrade-tool mvn cd ../..
To run the examples, you must have a Bean Validation implementation and API JAR in the JBoss AS classpath. I use the following JARs:
hibernate-validator-4.0.0.Beta1.jar slf4j-api-1.5.6.jar slf4j-log4j12-1.5.6.jar validation-api-1.0.CR2.jar
Now to build the booking example:
svn co http://anonsvn.jboss.org/repos/seam/examples/trunk examples cd examples/booking mvn cli:execute-phase > explode
Start JBoss and visit http://localhost:8080/seam-booking/
-
Posted from Diigo. The rest of my favorite links are here.
Nessun commento:
Posta un commento