You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

This is still a work in progress...

Prerequisites -

Checkout Geronimo

To avoid failures during downloads from the ibiblio repository, it's advisable to define a mirror for the central m2 repository before running. Add the following lines to your ~/.m2/settings.xml

<?xml version="1.0"?>
<settings>
 <mirrors>
  <mirror>
    <id>repo.mergere.com</id>
    <url>http://repo.mergere.com/maven2</url>
    <mirrorOf>central</mirrorOf>
  </mirror>
 </mirrors>
</settings>

For the impatient ...

A little patience is required. If you are building for the first time -

$> cd m2migration
$> ./bootstrap

 NOTE: Windows users need to run bootstrap from a Cygwin environment and should probably run these steps from the root of a drive (c:, d:, etc) to better ensure that the long filename problem is not an issue when testing.

After this you can build all the components any time using -

$> mvn clean install

Building Geronimo -

Update the source using svn update
Once all the dependencies have been downloaded, Geronimo can be built offline.

$> mvn -o clean
$> mvn -o

important

The 'configs' must always be built using mvn clean install

  • Building all the projects at once -

The main project is divided into many groups, each group contains many individual projects. The groups are -

    • modules
    • applications
    • m2-plugins
    • openejb (optional)
    • configs
    • assemblies
      Geronimo build downloads all the necessary openejb jars. To build Geronimo without openejb

      $> mvn clean install (coming soon..)

      Sometimes the latest openejb jars are not available in the repositories. If you see any openejb related failures, you need to build openejb. To build geronimo and openejb together

      $>mvn -Dbuild-all clean install (coming soon..)

  • Building a single project

There are many ways to build a single project.

    • From the top level or second level

To specify the name of a single project use any of the following properties :
mvn -Dmodule=kernel
mvn -Dapp=console
mvn -Dplugin=geronimo-packaging-plugin
mvn -Dconfig=j2ee-system clean install
mvn -Dejbmodule=openejb-core

    • From the individual project level

mvn or mvn clean install

  • Building a set of projects -

    • From the top level

To build a group project use the 'all' property -
mvn -Dall=modules | applications | m2-plugins | openejb | configs clean install

    • From the second level

cd modules | applications | m2-plugins | openejb | configs
mvn or mvn clean install

Other Useful commands

To prepare Geronimo for Eclipse, i.e to create .classpath and .project files
mvn -o eclipse:eclipse

  • No labels