如何把一个包含features和plugins的folder 变成一个Maven Tycho支持的 P2仓库?
2016-03-25 22:50
676 查看
今天笔者在用Maven Tycho 编译Plugin的时候,由于用到自己定义的OSGI的依赖,但是这个目录的依赖,只有 features和Plugins夹,没有Content.xml和artifact 文件,那么,如何把一个包含features和plugins的folder 变成一个Maven Tycho支持的 P2仓库?
其实命令很简单,但是却很难被找到和发现,那就是,
如果读者在window系统上面,就可以移除-configs gtk.linux.x86
-compress 参数的意思,就是生成的artifact 和content文件是否要压缩成zip(jar)的格式
artifactRepository 和 metadataRepository,就是生成的artifact 和content文件存放的目录,我们需要把其指定成一个目录。
在笔者电脑上的测试的时候,命令如下,
执行前的目录originalpluginsfolder的结构
执行后的localcustomreposito结构为,
其实命令很简单,但是却很难被找到和发现,那就是,
java -jar <targetProductFolder>/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:/<some location>/repository -artifactRepository file:/<some location>/repository -source /<location with a plugin and feature directory> -configs gtk.linux.x86 -compress -publishArtifacts
如果读者在window系统上面,就可以移除-configs gtk.linux.x86
-compress 参数的意思,就是生成的artifact 和content文件是否要压缩成zip(jar)的格式
artifactRepository 和 metadataRepository,就是生成的artifact 和content文件存放的目录,我们需要把其指定成一个目录。
在笔者电脑上的测试的时候,命令如下,
java -jar D:\cicd\eclipse-mars\plugins\org.eclipse.equinox.launch er_1.3.100.v20150511-1540.jar -application org.eclipse.equinox.p2.publisher.Fea turesAndBundlesPublisher -metadataRepository file:///d:/cicd/localcustomreposito ry -artifactRepository file:///d:/cicd/localcustomrepository -source C:/originalpluginsfolder -compress -publishArtifacts
执行前的目录originalpluginsfolder的结构
执行后的localcustomreposito结构为,
相关文章推荐
- MyEclipse Web Project转Eclipse Dynamic Web Project
- Windows Clang开发环境备忘
- 傻瓜式用Eclipse连接MySQL数据库
- Eclipse引入jquery报错如何解决
- 让Flex Builder 3.0与Eclipse3.4整合起来
- Eclipse配置Javascript开发环境图文教程
- 使用zend studio for eclipse不能激活代码提示功能的解决办法
- 图解Eclipse j2ee开发环境的搭建过程
- 两种Eclipse部署动态web项目方法
- ext for eclipse插件安装方法
- 解决Fedora14下eclipse进行android开发,ibus提示没有输入窗口的方法详解
- eclipse导入jquery包后报错的解决方法
- Eclipse 格式化代码时不换行与自动换行的实现方法
- Eclipse下jQuery文件报错出现错误提示红叉
- eclipse如何忽略js文件报错(附图)
- eclipse3.2.2 + MyEclipse5.5 + Tomcat5.5.27 配置数据库连接池
- jquery库或JS文件在eclipse下报错问题解决方法
- 什么是eclipse,eclipse的意思解析
- Zend Studio for Eclipse的java.lang.NullPointerException错误的解决方法
- eclipse+myeclipse 环境配置方法