Tycho文物当地仓库;依赖于org.eclipse.jet未解决



我正在创建一些OSGI模块包含许多插件和功能,这些插件需要P2 repo的依赖项...

  • 我将tycho与文物使用
  • 为了满足这些依赖性,我添加了开普勒仓库(Tycho无法解决本地储备金的依赖项)...

我的主要pom.xml:

<repository>
<layout>p2</layout>
<id>kepler</id>
<url>http://download.eclipse.org/releases/kepler</url>
</repository>

和其他文物本地仓库

<repository>
<id>central</id>
<url>{server.addr}/libs-release </url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
.......

似乎还可以,除了此错误:

Caused by: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from xx.xx.xx.xxx.xxx  to bundle org.eclipse.jet 1.1.1.; No solution found because the problem is unsatisfiable.] ???

如何找到此依赖关系:org.eclipse.jet ???为什么Tycho在Kepler P2中找不到?

org.eclipse.jet不是开普勒P2存储库的一部分,例如使用此外壳脚本查找:

eclipse -application org.eclipse.equinox.p2.director 
    -repository http://download.eclipse.org/releases/kepler 
    -list | grep -F 'org.eclipse.jet'

如果您可以找到带有该捆绑包的P2存储库,则也可以通过将其添加到pom.xml中的方式与Kepler存储库相同。

http://www.eclipse.org/modeling/m2t/updates/列出了建模项目的一些P2存储库。其中一个可能还包括您想要的捆绑包(及其依赖项)。

我解决了问题...这是解决方案,可能对某人有用:

-first下载org.eclipse.jet from(http://www.eclipse.org/modeling/m2t/downloads/?project=jet)。

-deploy" org.eclipse.jet_1.1.1.1.v201101311015.jar" in trifactory(libs-release-local)

-Artifactory将生成用于依赖关系的代码:

<dependency>
<groupId>org.eclipse.jet</groupId>
<artifactId>org.eclipse.jet</artifactId>
<version>1.1.1</version>
</dependency>

-ADD在模块的pom.xml文件中,我们需要喷气

-build Project(我为此使用Jenkins)。-uccess ...

请注意,喷气机还需要以下依赖性:

<dependency>
<groupId>org.eclipse.jet</groupId>
<artifactId>org.eclipse.jet.core</artifactId>
<version>1.2.1</version>
</dependency>

可能有更好的解决方案,但是就目前而言,我将使用它。在某些论坛喷气机上,诸如Xtend或Acceleo之类的工具已经取代了一些论坛。因此,很快我将切换到此新解决方案...

相关内容

最新更新