`

osgi+maven 创建项目问题总结

阅读更多
执行以下命令: 1.pax-create-project -g gsoft -a g-osgi 其中-g后代表groupId,-a代表artifactId 2.建立一个测试用的bundle: cd g-osgi pax-create-bundle -p com.gsoft.biz -n first.bundle pax-create-bundle -p com.gsoft.biz.imp -n second.bundle 其中,-p是包名package,-n是bundleName 3. 创建eclipse工程文件 mvn pax:eclipse -DdownloadSources 4.通过eclipse导入已存在工程将工程导入 Ps: clean install -X 查看详细日志 加入 maven 资源库位置 nexus-releasesNexus Releaseshttp://localhost:8081/nexus/content/repositories/releasesnexus-snapshotsNexus Snapshotshttp://localhost:8081/nexus/content/repositories/snapshots 项目根下的pom.xml 修改成以下的配置 org.ops4jmaven-pax-plugin1.4--platform=felix 改成如下内容 org.ops4jmaven-pax-pluginorg.apache.felixmaven-bundle-plugin1.4.3--platform=equinox --vmOptions=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 true
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics