Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 让Tycho从旧式Eclipse更新站点解析依赖项_Maven_Eclipse Plugin_Tycho - Fatal编程技术网

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生成了所有必要的元数据。