| 26 | |
| 27 | = How to create new module = |
| 28 | * Copy sophie2-platform/dev-tools/org.sophie2.proto.project to sophie2-platform/modules |
| 29 | * Edit pom.xml |
| 30 | {{{ |
| 31 | <artifactId>org.sophie2.proto.project</artifactId> |
| 32 | <version>2.0-SNAPSHOT</version> |
| 33 | <name>Sophie 2 Author Component</name> |
| 34 | <packaging>bundle</packaging> |
| 35 | <description>Copy from this one to create a sophie2 module</description> |
| 36 | }}} |
| 37 | and |
| 38 | {{{ |
| 39 | <instructions> |
| 40 | <Main-Class>org.sophie2.proto.project.ProtoModule</Main-Class> |
| 41 | <Export-Package>org.sophie2.proto.project.*</Export-Package> |
| 42 | <!-- <Private-Package>org.apache.felix.moduleloader.*,org.apache.felix.framework.*,org.apache.felix.main,org.osgi.*,org.apache.log4j.*</Private-Package>--> |
| 43 | <Bundle-Activator>org.sophie2.author.Activator</Bundle-Activator> |
| 44 | <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency> |
| 45 | <Import-Package>*;resolution:=optional</Import-Package> |
| 46 | </instructions> |
| 47 | }}} |
| 48 | If you don't have main class you should remove <Main-Class> |
| 49 | * Rename the project - artifactId and the name of the project should be the same |
| 50 | * right click at sophie-working-set - '''Import...''' - Maven projects - choose the new created module |