http://www.ops4j.org/projects/pax/construct/ pax construct
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
- Unzip the Pax-Construct scripts
- 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%
- Create a new OSGi project
pax-create-project -g examples -a test
- Create an example bundle in your new project
cd test
pax-create-bundle -p org.example.pkg -n test.bundle - Build and deploy to Felix
mvn clean install pax:provision
- Create Eclipse project files (with source where available)
mvn pax:eclipse -DdownloadSources
- Import project into Eclipse ( File -> Import -> Existing project... )