2013-11-26 37 views
0

Maven中央资源库没有Eclipse Juno 4.2版本的jar和工件。 我在哪里可以找到所有这些jar和artifacts(以及pom.xml - 包括传递依赖)。当我们计划将eclipse插件从3.2移植到4.2时,它将有助于我们解决所有maven依赖关系。Maven Central Repository上缺失的工件

回答

0

在发布一个新问题之前,先看看旧的问题。

我觉得这个线程将回复您:Maven with Eclipse Juno

+0

对不起,这不是我正在寻找的东西。 Maven中央存储库具有所有eclipse插件罐以及artifacts.Here是链接http://search.maven.org/#browse.But,因此我们无法找到Eclipse Juno 4.2罐,工件和相关的POM .xml – user3021350

0

我们面临着类似的问题。也许你应该考虑使用Tycho来用Maven构建Eclipse插件。它支持使用eclipse更新站点作为依赖源。这样你就不需要从Maven仓库解析eclipse依赖关系。

Tycho将Manifest文件作为依赖性定义。但是仍然可以包含Maven依赖关系。具体的插件项目必须有包装

<packaging>eclipse-plugin</packaging> 

如果你的目标平台定义不包含包含你的依赖添加到您的POM所需的更新站点:

<repositories> 
    <repository> 
     <id>indigo</id> 
     <!-- Or juno update site in your case --> 
     <url>http://download.eclipse.org/releases/indigo/</url> 
     <layout>p2</layout> 
    </repository> 
</repositories> 

此外,您必须配置版本如下:

<build> 
    <plugins> 
     <plugin> 
      <groupId>org.eclipse.tycho</groupId> 
      <artifactId>tycho-maven-plugin</artifactId> 
      <version>${tycho.version}</version> 
      <extensions>true</extensions> 
     </plugin> 

     <plugin> 
      <groupId>org.eclipse.tycho</groupId> 
      <artifactId>target-platform-configuration</artifactId> 
      <version>${tycho.version}</version> 
      <configuration> 
       <target> 
        <artifact> 
         <!-- coordinates of your target platform definition --> 
        </artifact> 
       </target> 
       <!-- This allows you to additionally consider pom dependencies --> 
       <pomDependencies>consider</pomDependencies> 
       <configuration> 
        <environments> 
         <environment> 
          <os>linux</os> 
          <ws>gtk</ws> 
          <arch>x86</arch> 
         </environment> 
         <environment> 
          <os>linux</os> 
          <ws>gtk</ws> 
          <arch>x86_64</arch> 
         </environment> 
         <environment> 
          <os>win32</os> 
          <ws>win32</ws> 
          <arch>x86</arch> 
         </environment> 
         <environment> 
          <os>win32</os> 
          <ws>win32</ws> 
          <arch>x86_64</arch> 
         </environment> 
         <environment> 
          <os>macosx</os> 
          <ws>cocoa</ws> 
          <arch>x86_64</arch> 
         </environment> 
        </environments> 
       </configuration> 
      </configuration> 
     </plugin> 
    </plugins> 
+0

谢谢回复。但不幸的是,即使在Eclipse nexus存储库上也找不到工件。 https://repo.eclipse.org/index.html – user3021350

+0

我们遇到了类似的问题。也许你应该考虑使用Tycho来用Maven构建Eclipse插件。它支持使用eclipse更新站点作为依赖源。这样你就不需要从Maven仓库解析eclipse依赖关系。 – ahaber

+0

感谢您的答复。我已经尝试使用Tyo命令为Juno工件创建pom.xml,但POM不包含所有传递依赖关系。是否有任何方法将传递依赖关系也添加到POM.xmls? – user3021350