我正在寻找一个确认,即org.eclipse.xtext.common.types的2.9.1版本始终具有以下org.eclipse.core.runtime依赖关系树:
从大约2周开始,我们的构建将获得额外的JAR(org.eclipse.core.runtime,版本3.14.0)。到目前为止,我们无法解释为什么...,并且是否正在寻找Xtext 2.9.1版中最近是否有任何更改?我们对此表示怀疑,但是谁知道呢?
该依赖项已设置为Maven依赖项:
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.common.types</artifactId>
<version>2.9.1</version>
</dependency>
============================================= < / p>
基于我的发现的其他信息...这是org.eclipse.xtext.common.types Artifact(版本2.9.1)的pom.xml:
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.tycho.parent</artifactId>
<version>2.9.1</version>
<relativePath>../../maven/org.eclipse.xtext.tycho.parent</relativePath>
</parent>
<packaging>eclipse-plugin</packaging>
<name>Common Types Runtime Library</name>
<artifactId>org.eclipse.xtext.common.types</artifactId>
<dependencies>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.util</artifactId>
<version>[${project.version}]</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext</artifactId>
<version>[${project.version}]</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.codegen</artifactId>
<version>${emf.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${google-inject.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.ecore</artifactId>
<version>${emf.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.common</artifactId>
<version>${emf.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.mwe2.lib</artifactId>
<version>${mwe2-version}</version>
</dependency>
</dependencies>
$ {emf.version}的范围是(2.8:3.0)...看下面的内容:http://mvnrepository.com/artifact/org.eclipse.emf/org.eclipse.emf.codegen
... 2.14版实际上是最近的版本(2018年9月)。
Xtext伙计们,您是否确认在2.14版之前没有设置对Eclipse Core Runtime 3.14.0版的依赖?
答案 0 :(得分:2)
EMF 2.15,因此 org.eclipse.emf:org.eclipse.emf.codegen:2.14.0(发布于9月14日)。较新的emf版本具有这些新的依赖项。所有小于2.15的Xtext版本都会自动拉出新的emf版本。如果要避免这种情况,可以切换回emf 2.12 / codegen 2.11应该可以解决该问题(https://github.com/eclipse/xtext-core/blob/v2.15.0/gradle/versions.gradle)