问题描述
情况:Eclipse RCP 应用程序使用 Maven Tycho plugin
,现在我想正确集成 p2-maven-plugin`。我有一个目录,其中包含所有 3rd 方 JAR 和 Eclipse 插件作为 JAR。
如何使用 p2-maven-plugin
创建包含此目录中所有文件的 p2 存储库?
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>my.company</groupId>
<artifactId>p2-site</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<build>
<plugins>
<plugin>
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<id>default-cli</id>
<!-- How can I get there artifacts located in directory on my local machine??? These libs (in example below) are taken from .m2 maven repo -->
<configuration>
<artifacts>
<artifact>
<id>commons-lang:commons-lang:2.4</id>
</artifact>
<artifact>
<id>commons-lang:commons-lang:2.5</id>
</artifact>
<artifact>
<id>commons-lang:commons-lang:2.6</id>
</artifact>
<artifact>
<id>junit:junit:3.8.2</id>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.5.v20120716</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webAppSourceDirectory>${project.basedir}/target/repository/</webAppSourceDirectory>
<webApp>
<contextpath>/site</contextpath>
</webApp>
<stopKey/>
<stopPort/>
</configuration>
</plugin>
</plugins>
</build>
...
谢谢!
编辑:
包含插件 (JAR) 的文件夹,我想从中生成 p2 存储库。
在我的主 pom 中使用 tycho extras p2 插件 - 不起作用,我想也许这段代码根本没有被调用......我怎么能调用它?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)