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 Geronimo 3.0 from the latest server/trunk, though other newer branches should also follow similar instructions. Server trees that use the same basic build tooling include:

  • server/trunk
  • server/branches/1.2
  • server/branches/2.0
  • server/branches/2.1
  • server/branches/2.2

Prerequisites

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

Info

If you choose to build from server/trunk, take note of the general warning about the state of trunk for building SNAPSHOT releases.

Prerequisites

Build Machine

It is recommended that a dedicated computer used to build Geronimo 3.0 have a minimum of 2GB of real memory. The computer will also need a connection to the Internet to download artifact dependencies.

Java Developer Kit (JDK)

You will need a JDK 6.0+ (Java SE 1.6.0+) or compatible JDK to build Apache Geronimo. It is recommended you use SUN's implementation, or something compatible like Apples implementation. Other JDK vendors implementations may work, but use at your own risk.

...

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

...

titlemaven repository

...

...



...
   <mirrors>
       <mirror>
           <id>java.net</id>
           <name>Mirror of https://maven-repository.dev.java.net/nonav/repository/</name>
           <url>http://download.java.net/maven/2/</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 5 (or newer, 1.4 5 is recommended) installed.

Tip
titleWindows Tip

Windows users are strongly encouraged to change the M2 local repository (the place where dependencies are downloaded) to a shorter path with no spaces, e.g. C:\.m2.
Using a longer path may cause the build (and Geronimo itself) to behave very strangely when it hits the 260 character limit for filenames on Windows.

In order to change the m2 local repository go to %USERPROFILE%\.m2 and edit or create settings.xml file to contain the following content:

Code Block
xml
xml
<?xml version="1.0"?>
<settings>
    <localRepository>C:\.m2</localRepository>
</settings>

...

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.

...