Quickstart

To use Pax-Construct you need a Java runtime (preferably 1.4 or above) and Maven2 installed and on your path.
NOTE: if you have an old copy of the scripts installed, you can update them using the pax-update command.

http://repo1.maven.org/maven2/org/ops4j/pax/construct/scripts/1.4/scripts-1.4.zip

  1. Unzip the Pax-Construct scripts
  2. Add the scripts to your path

    Linux / UNIX / Mac

    PATH=/tmp/pax-construct-1.4/bin:$PATH; export PATH

    Windows

    set PATH=C:\Temp\pax-construct-1.4\bin;%PATH%
  3. Create a new OSGi project
    pax-create-project -g examples -a test
  4. Create an example bundle in your new project
    cd test
    
    pax-create-bundle -p org.example.pkg -n test.bundle
  5. Build and deploy to Felix
    mvn clean install pax:provision
  6. Create Eclipse project files (with source where available)
    mvn pax:eclipse -DdownloadSources
  7. Import project into Eclipse ( File -> Import -> Existing project... )

Now try the Spring Dynamic Modules example!