The easiest (and only correct) way to build PXE is using Maven 2
. First, ensure that your environment meets the system requirements (In short, JDK 5.0.). Next, make sure you have Maven 2 installed (you can download Maven 2 from here
). Next, get the source code for PXE from the svn repository. Finally, from the directory you checked out pxe into, run:
The build will deposit a working copy of the distribution your Maven 2 repository (typically $HOME/.m2/repository/pxe/standalone-distro/1.0-SNAPSHOT/standalone-distro-1.0-SNAPSHOT.tar.gz.
The source code for PXE is broken up into a set of Maven modules that correspond to the various intermediate artefacts that contribute to the distribution. Each module contains the following:
- a Maven pom.xml file that describes the build process for that module.
The standalone-distro module is the "assembly" module that pulls all of the pieces together to create the distribution.
The Java sources for each module are found in two subdirectories:
- src/main/java contains non-generated Java source code.
- src/test/java contains JUnit
test.
Generated artefacts are deposited by Maven into the Maven repository.
If you want to use an IDE to explore the PXE sources or debug PXE executables, Eclipse .project and .classpath files are present in all the modules; simply choose File|Import from the Eclipse menu, and select the root pxe directory. You may also use Maven to generate project files for other IDEs. See the Maven documentation for details.