Building JOnAS

Get the sources


Anonymous access:

svn checkout svn:// jonas

Developer access:

svn checkout svn+ssh:// jonas
A    jonas/README.J2EE
A    jonas/.project
A    jonas/src
A    jonas/src/.classpath
A    jonas/src/.project
A    jonas/src/conf
A    jonas/src/conf/java.policy
A    jonas/src/conf/
A    jonas/src/conf/
A    jonas/src/conf/jaas.config
A    jonas/src/conf/
A    jonas/src/conf/context.xml
A    jonas/src/conf/clusterd.xml
A    jonas/src/conf/

Environment setup

Update Maven settings.xml

Internet Proxies

This section is useful when the developer is behind a proxy (Squid, ...).

Add a proxies section:


Notice that you can declare proxies for https repositories by changing protocol to https.

Maven tips

For windows

This is for windows users: Your maven2 repository has to be in a directory without any space. This is a bug that may comes from the JSP compiler maven plugin.

You can move your C:/Documents and Settings/User/.m2/repository in C:/m2 for example. You have to make the follow change in your C:/Documents and Settings/User/settings.xml to give to maven the repository location:

  [ . . . ]
 <localRepository>YOUR NEW REPOSITORY LCOATION</localRepository>

When OutOfMemory occurs

Set the following line in your environment:

export MAVEN_OPTS="-Xms256m -Xmx512m"

Repositories Proxies

This section is useful for developers that can access maven repositories acting like a cache to central maven2 repositories (central, ...).

This configuration is suited for a maven archiva or proximity repository.

Remember to change the URLs according to your local proxy configuration.

        <id>Repository Proxy</id>


Building JOnAS

Maven Build

The Maven Build compiles all the JOnAS modules:

mvn clean install

If the svn command is not available in your PATH (may be the case for Windows developers), it is recommended to use the following compilation command line:

mvn -P!build-number-generation clean install

Here is a snippet of the output:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   JOnAS : Modules
[INFO]   JOnAS : APIs : Deployment
[INFO]   JOnAS : APIs : Services Interfaces
[INFO]   JOnAS : Libraries
[INFO]   JOnAS : Libraries : Commons
[INFO]   JOnAS : Libraries : Deployment
[INFO]   JOnAS : Libraries : Naming
[INFO]   JOnAS : Services
[INFO]   JOnAS : Services : Service Manager
[INFO]   JOnAS : Libraries : J2EE Management (JSR 77)
[INFO]   JOnAS : Services : JMX
[INFO]   JOnAS : Services : Security
[INFO]   JOnAS : Libraries : Version Number
[INFO]   JOnAS : Libraries : Timer Manager
[INFO]   JOnAS : Services : JCA Resource
[INFO]   JOnAS : Libraries : EJB Container
[INFO]   JOnAS : Services : Carol Registry
[INFO]   JOnAS : Services : HSQL DB
[INFO]   JOnAS : Services : Mail
[INFO]   JOnAS : Services : JOTM Transaction
[INFO]   JOnAS : Services : Web Services
[INFO]   JOnAS : Services : Web Container
[INFO]   JOnAS : Services : Web Container :: Base
[INFO]   JOnAS : Services : Web Container :: Tomcat
[INFO]   JOnAS : Services : Web Container :: Tomcat :: 6.0.x
[INFO]   JOnAS : Security :: Tomcat :: 5.5.x
[INFO]   JOnAS : Services : Web Container :: Tomcat :: 5.5.x
[INFO]   JOnAS : Services : JCA WorkManager
[INFO]   JOnAS : Tools
[INFO]   JOnAS : Tools : Ant Tasks
[INFO]   JOnAS : Tools : Cluster Daemon
[INFO]   JOnAS : Generators
[INFO]   JOnAS : Generators : Base
[INFO]   JOnAS : Generators : Client Stubs
[INFO]   JOnAS : Generators : WSGen
[INFO]   JOnAS : EE Components
[INFO]   JOnAS : EE Components : Web Context Root
. . .
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 5 seconds
[INFO] Finished at: Mon Jun 11 13:31:28 CEST 2007
[INFO] Final Memory: 26M/53M
[INFO] ------------------------------------------------------------------------

Thank You