Building Felix

A basic start to checking-out and building Felix:

  1. Download and install the latest Maven 2 release.
  2. Check out or update the Felix trunk (i.e., svn checkout http://svn.apache.org/repos/asf/felix/trunk felix).
  3. Perform an "mvn clean install" in the trunk to clean and build everything. Due to a bug in Maven related to having multiple packaging plugins in the same project, this step no longer works. We were forced to split our POM file into profiles that group subprojects according to the packaging plugin they use; to build everything, we created an Ant build.xml file. Simply type "ant" to do the equivalent of "mvn clean install" or do "ant clean" or "ant install" to do "mvn clean" or "mvn install", respectively.
  4. Go to the top of the project and type: "mvn -Dpackaging=plugins install" and then "mvn -Dpackaging=bundle install" to build the project.
  5. To run the newly built framework, cd into main and type "java -jar bin/felix.jar".
  6. If you want to create the installers, cd into installers and do a "mvn clean install", which will generate the installers in the installers/target/images/ directory.

There is a simple build script in the trunk, called build_run.sh, that will build and run the framework for those that want a simple way to do all of this.

  • No labels

1 Comment

  1. for felix.installer: the current (r415327) pom.xml has points to non existant RC2 dependencies (directory.daemon.plugin and bootstrappers). Using dependency 1.0.1-SNAPSHOT works.