Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

This guide is intended to cover how to build the latest server/trunk, though other newer branches should also follow similar instructions. Server trees that use the same basic build tooling include:

...

branches/2.2. Refer to Building Apache Geronimo in the Development documents for more information on building Geronimo, including this and other branches.

Prerequisites

Java Developer Kit (JDK)

...

To execute the build process you need to have Apache Maven version 2.0.9 (or newer) installed. Note that Geronimo 2.2.x does not build with Maven 3.0 or above.

To check if your installation is working and you have the required minimum version run:

...

If you have an incompatible version the server build will probably fail with a message complaining (wink)

Tip
titlemaven repository

Add the following to your settings.xml for maven so that you can avoid the redirect (and hence avoid the bogus poms/jars) and get beyond compilation failure problem to build Geronimo using maven. See this message for more details.

Code Block
xml
xml
titleexcerpt of setting.xml for maven


...
   <mirrors>
       <mirror>
           <id>java.net</id>
           <name>Mirror of https://maven-repository.dev.java.net/nonav/repository/</name>
           <url>http://download.java.net/maven/1/</url>
           <mirrorOf>java.net</mirrorOf>
       </mirror>
   </mirrors>
...

Subversion

To fetch the source code for the server, you will need to have a Subversion client version 1.2 (or newer, 1.4 is recommended) installed.

...

No Format
svn co https://svn.apache.org/repos/asf/geronimo/server/trunk serverbranches/2.2 server22
Tip
titleTip

If you are using Chinese system, please change your locale to en_US. Otherwise, the maven 2.0.7(or below) can't parse Chinese characters.

Tip
titleWindows Tip

Windows users are strongly encouraged to checkout Geronimo into c:\g.

Using a longer path may cause the build (and Geronimo itself) to behave very strangely when it hits the 260 char limit for filenames on Windows.

Starting from 2.2, you can also use Git mirrors to checkout Geronimo source code, using the following command:

No Format

git clone git://git.apache.org/geronimo server

Preparing to Build for the First Time

...