Artifactory 无法下载 Eclipse 插件's/artifacts。 java.lang.SecurityException: class "org.eclipse.core.runtime.OperationCanceledException
Artifactory unable to download Eclipse plugin's/artifacts. java.lang.SecurityException: class "org.eclipse.core.runtime.OperationCanceledException
我面临两个问题,如下所述。
java.lang.SecurityException: class "org.eclipse.core.runtime.OperationCanceledException" 的签名者信息与同一包中其他 class 的签名者信息不匹配
Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.eclipse.xtend:xtend-maven-plugin:2.12.0 或其依赖项之一无法解析:无法解析以下工件得到解决:org.eclipse.jdt:org.eclipse.jdt.core:jar:3.6.0, org.eclipse.platform:org.eclipse.core.runtime:jar:3.6.0: Could not find artifact org.eclipse.jdt :org.eclipse.jdt.core:jar:3.6.0
我知道错误报告 [0] 中提到的解决方案应该可以很好地解决问题。为了实现这一点,我需要#2 中的捆绑包,它们显然没有被下载。
从#2 中的错误日志可以看出,在工件中找不到所需的依赖项。我不明白的是为什么没有配置这些插件? 1 下面提供的是我在 artifactory 中配置的 P2 存储库列表。我已确认所需的插件可在以下 P2 存储库中下载。
enter image description here
[0] https://github.com/eclipse/xtext/issues/1231#issuecomment-40112556
1 http://download.eclipse.org/releases/oxygen/201706281000/, http://download.eclipse.org/technology/epp/packages/oxygen, http://download.eclipse.org/eclipse/updates/3.6/R-3.6-201006080911, http://download.eclipse.org/tools/orbit/downloads/drops2/R20170516192513/repository
Artifactory 版本:6.0.3,Eclipse Xtext 版本:2.12.0,Eclipse 版本:Oxygen Release (4.7.0),Build id:20170620-1800
非常感谢help/pointers。
提前Tx。
以下应该适用于 2.12
<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>a</groupId>
<artifactId>a</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.12.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.12.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/xtend-gen/main</outputDirectory>
<testOutputDirectory>${project.build.directory}/xtend-gen/test</testOutputDirectory>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.core</artifactId>
<version>3.12.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.compiler.apt</artifactId>
<version>1.2.100</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
我面临两个问题,如下所述。
java.lang.SecurityException: class "org.eclipse.core.runtime.OperationCanceledException" 的签名者信息与同一包中其他 class 的签名者信息不匹配
Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.eclipse.xtend:xtend-maven-plugin:2.12.0 或其依赖项之一无法解析:无法解析以下工件得到解决:org.eclipse.jdt:org.eclipse.jdt.core:jar:3.6.0, org.eclipse.platform:org.eclipse.core.runtime:jar:3.6.0: Could not find artifact org.eclipse.jdt :org.eclipse.jdt.core:jar:3.6.0
我知道错误报告 [0] 中提到的解决方案应该可以很好地解决问题。为了实现这一点,我需要#2 中的捆绑包,它们显然没有被下载。
从#2 中的错误日志可以看出,在工件中找不到所需的依赖项。我不明白的是为什么没有配置这些插件? 1 下面提供的是我在 artifactory 中配置的 P2 存储库列表。我已确认所需的插件可在以下 P2 存储库中下载。
enter image description here
[0] https://github.com/eclipse/xtext/issues/1231#issuecomment-40112556
1 http://download.eclipse.org/releases/oxygen/201706281000/, http://download.eclipse.org/technology/epp/packages/oxygen, http://download.eclipse.org/eclipse/updates/3.6/R-3.6-201006080911, http://download.eclipse.org/tools/orbit/downloads/drops2/R20170516192513/repository
Artifactory 版本:6.0.3,Eclipse Xtext 版本:2.12.0,Eclipse 版本:Oxygen Release (4.7.0),Build id:20170620-1800
非常感谢help/pointers。
提前Tx。
以下应该适用于 2.12
<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>a</groupId>
<artifactId>a</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.12.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.12.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/xtend-gen/main</outputDirectory>
<testOutputDirectory>${project.build.directory}/xtend-gen/test</testOutputDirectory>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.core</artifactId>
<version>3.12.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.compiler.apt</artifactId>
<version>1.2.100</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>