在用maven的tycho导出插件时,可能会依赖一些本地的插件。此时需要用本地的插件生成P2仓库,命令如下:
java -jar F:/dsp/eclipse4_5_1/plugins/org.eclipse.equinox.launcher_xxx.jar -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:/F:/repository -artifactRepository file:/F:/repository -source /F:/dsp/eclipse4_5_1
-compress -publishArtifacts
-metadataRepository:是metadata文件生成路径
-artifactRepository:是artifact生成路径 (一般与上相同)
-source:是plugins和features文件夹所在路径
执行之后将会生成入下图所示结构的文件及目录: