== 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: {{{ org.springframework.osgi spring-osgi-bundle-archetype 1.0.2 }}} * 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 * [[http://www.ops4j.org/projects/pax/construct/|PAX Construct]] * Eclipse 3.3.x ==== Implement a Simple Service ==== 1. Create project {{{ pax-create-project -g org.cytoscape -a id-mapping-plugin }}} 1. 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 }}} 1. Add dependency {{{ pax-import-bundle -g org.springframework.osgi -a spring-osgi-extender -v 1.1.0-m2 -- -DwidenScope -DimportTransitive }}}