Maven 让Tycho从旧式Eclipse更新站点解析依赖项
我正在尝试构建一个依赖于Maven 让Tycho从旧式Eclipse更新站点解析依赖项,maven,eclipse-plugin,tycho,Maven,Eclipse Plugin,Tycho,我正在尝试构建一个依赖于org.apache.uima.runtime的插件,它是托管在。这个更新站点是一个旧式(p2之前)更新站点,所以我知道。因此,我试图制作UIMAEclipse更新站点的本地副本,将其升级到p2,然后从那里获取依赖项。以下是我尝试过的: $ svn co http://svn.apache.org/repos/asf/uima/uimaj/trunk/uimaj-eclipse-update-site/ ... Checked out revision 1395335.
org.apache.uima.runtime
的插件,它是托管在。这个更新站点是一个旧式(p2之前)更新站点,所以我知道。因此,我试图制作UIMAEclipse更新站点的本地副本,将其升级到p2,然后从那里获取依赖项。以下是我尝试过的:
$ svn co http://svn.apache.org/repos/asf/uima/uimaj/trunk/uimaj-eclipse-update-site/
...
Checked out revision 1395335.
$ java -jar /.../eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar \
-application org.eclipse.equinox.p2.publisher.UpdateSitePublisher \
-metadataRepository file:/.../uimaj-eclipse-update-site \
-artifactRepository file:/.../uimaj-eclipse-update-site \
-source /.../uimaj-eclipse-update-site
Generating metadata for ..
Generation completed with success [0 seconds].
如果我查看uimajeclipse更新站点
目录,我现在会看到一个artifacts.xml
和一个content.xml
,这似乎是正确的。我还用检查过,没有显示“部分”,我可以看到org.apache.uima.runtime.feature.jar 2.4.0
和org.apache.uima.runtime.feature.group 2.4.0
现在,我将此本地站点添加到Eclipse插件的pom.xml中:
<repository>
<id>uima</id>
<layout>p2</layout>
<url>file:/.../uimaj-eclipse-update-site</url>
</repository>
我做错了什么
如果您想复制错误,我正在从这个目录运行mvncile
(如上所述修改pom.xml之后):
编辑:我确实在生成的artifacts.xml
中看到了org.apache.uima.runtime
:
<artifact classifier='org.eclipse.update.feature' id='org.apache.uima.runtime' version='2.4.0'>
<properties size='4'>
<property name='artifact.size' value='9466'/>
<property name='download.size' value='9466'/>
<property name='download.md5' value='f9d4f1f8dc54f0a99379dcede2fc2700'/>
<property name='download.contentType' value='application/zip'/>
</properties>
</artifact>
浏览svn repo链接,插件目录似乎是空的,并且只提供了一些功能。您可能只需要首先运行maven来“构建”它并填充插件目录
如果您拥有所有内容,则可以运行应用程序直接生成p2存储库。如果要在Tycho build中使用,则不需要生成更新站点的类别端。浏览svn repo链接,插件目录看起来是空的,并且只有功能存在。您可能只需要首先运行maven来“构建”它并填充插件目录
如果您拥有所有内容,则可以运行应用程序直接生成p2存储库。如果要在Tycho build中使用,则不需要生成更新站点的类别端。我参加聚会迟到了,但Apache UIMA现在有一个p2存储库 在pom.xml中添加uima存储库:
<repositories>
<repository>
<id>uima</id>
<url>http://www.apache.org/dist/uima/eclipse-update-site</url>
<layout>p2</layout>
</repository>
</repositories>
尤马
http://www.apache.org/dist/uima/eclipse-update-site
p2
我参加聚会迟到了,但Apache UIMA现在有了p2存储库
在pom.xml中添加uima存储库:
<repositories>
<repository>
<id>uima</id>
<url>http://www.apache.org/dist/uima/eclipse-update-site</url>
<layout>p2</layout>
</repository>
</repositories>
尤马
http://www.apache.org/dist/uima/eclipse-update-site
p2
原则上,你的方法看起来不错,我看不出明显的错误。丢失的文件是否真的包含在您转换的p2存储库中?我相信是的。我在artifacts.xml上面添加了一个片段,在这里我看到了我正在寻找的org.apache.uima.runtime
。该片段看起来是org.apache.uima.runtime特性,而不是org.apache.uima.runtime插件。浏览svn repo链接,看起来插件目录是空的,并且只有一些功能。但是,更新站点URL的插件目录中确实有插件。你能检查一下你的本地插件目录是否有一些插件吗?您可能需要镜像远程存储库,然后运行FeaturesandlesPublisher应用程序。查看您的svn存储库,您可能只需要先运行maven来“构建”它。只有content.xml
用于依赖项解析;artifacts.xml
只有在依赖项解析之后才变得相关。您的方法原则上看起来不错,我看不出明显的错误。丢失的文件是否真的包含在您转换的p2存储库中?我相信是的。我在artifacts.xml上面添加了一个片段,在这里我看到了我正在寻找的org.apache.uima.runtime
。该片段看起来是org.apache.uima.runtime特性,而不是org.apache.uima.runtime插件。浏览svn repo链接,看起来插件目录是空的,并且只有一些功能。但是,更新站点URL的插件目录中确实有插件。你能检查一下你的本地插件目录是否有一些插件吗?您可能需要镜像远程存储库,然后运行FeaturesandlesPublisher应用程序。查看您的svn存储库,您可能只需要先运行maven来“构建”它。只有content.xml
用于依赖项解析;artifacts.xml
仅在依赖项解析后才变得相关。+1 UpdateStepPublisher不会创建完整的p2元数据,但FeatureSandlesPublisher会创建,因此我只是尝试了FeatureSandlesPublisher而不是UpdateStepPublisher,错误是一样的。在获得他们的更新站点以进行构建后,请确认,UpdateStepPublisher没有生成所有必要的元数据,但FeaturesAndBundlesPublisher生成了所有元数据。+1 UpdateStepPublisher不会创建完整的p2元数据,但FeaturesAndBundlesPublisher将创建完整的p2元数据。因此,我尝试了FeaturesAndBundlesPublisher而不是UpdateStepPublisher,错误相同。只是为了确认,在构建他们的更新站点之后,UpdateStepPublisher没有生成所有必要的元数据,但是FeaturesAndBundlesPublisher生成了所有必要的元数据。