Maven Eclipse Integration Memo
Assume basic Eclipse plugins and maven are installed.
Create Spring OSGi Maven2 Archetype
File → New → Other → Maven Project
- Click next
Press Add Archetype
- Use the following info:
<dependency> <groupId>org.springframework.osgi</groupId> <artifactId>spring-osgi-bundle-archetype</artifactId> <version>1.0.2</version> </dependency>
- Click next
- Type Group ID and Artifact ID. For cytoscape plugin, use org.cytoscape for Group ID.
Creating Spring-OSGi Project with PAX Construct
Tools
- Maven
- Eclipse 3.3.x
Implement a Simple Service
- Create project
pax-create-project -g org.cytoscape -a id-mapping-plugin
- Add Spring-DM repository
pax-add-repository -i spring-milestones -u http://s3.amazonaws.com/maven.springframework.org/milestone pax-add-repository -i spring-snapshots -u http://static.springframework.org/maven2-snapshots -- -Dsnapshots -Dreleases=false
- Add dependency
pax-import-bundle -g org.springframework.osgi -a spring-osgi-extender -v 1.1.0-m2 -- -DwidenScope -DimportTransitive