2015-04-27 83 views
0

我在Maven插件項目中使用Xpand進行代碼生成。所以,我需要在pom.xml中添加所需的庫作爲依賴關係,以便定義和使用Xpand模板。什麼是應該添加到pom的最小依賴項列表?Xpand最小的pom依賴是什麼?

回答

1

你可以採取以下爲補充這些依賴起點

<dependencies> 
    <dependency> 
     <groupId>org.eclipse.xpand</groupId> 
     <artifactId>org.eclipse.xtend</artifactId> 
     <version>2.0.0</version> 
    </dependency> 
    <dependency> 
     <groupId>org.eclipse.xpand</groupId> 
     <artifactId>org.eclipse.xpand</artifactId> 
     <version>2.0.0</version> 
    </dependency> 
    <dependency> 
     <groupId>org.eclipse.xpand</groupId> 
     <artifactId>org.eclipse.xtend.typesystem.emf</artifactId> 
     <version>2.0.0</version> 
    </dependency> 
    <dependency> 
     <groupId>org.eclipse.emf</groupId> 
     <artifactId>org.eclipse.emf.mwe.utils</artifactId> 
     <version>1.3.5</version> 
    </dependency> 
    <dependency> 
     <groupId>org.eclipse.emf</groupId> 
     <artifactId>org.eclipse.emf.mwe.core</artifactId> 
     <version>1.3.5</version> 
    </dependency> 
    <dependency> 
     <groupId>org.eclipse.emf</groupId> 
     <artifactId>ecore</artifactId> 
     <version>2.3.0-v200706262000</version> 
    </dependency> 
    <dependency> 
     <groupId>commons-cli</groupId> 
     <artifactId>commons-cli</artifactId> 
     <version>20040117.000000</version> 
    </dependency> 
    <dependency> 
     <groupId>commons-logging</groupId> 
     <artifactId>commons-logging</artifactId> 
     <version>1.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.eclipse.emf</groupId> 
     <artifactId>org.eclipse.emf.mwe2.runtime</artifactId> 
     <version>2.7.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.antlr</groupId> 
     <artifactId>antlr-runtime</artifactId> 
     <version>3.5.2</version> 
    </dependency> 
    <dependency> 
     <groupId>com.ibm.icu</groupId> 
     <artifactId>icu4j</artifactId> 
     <version>55.1</version> 
    </dependency> 
</dependencies> 
+0

並得到了錯誤的信息,抱怨'org.eclipse.jface'和'org.eclipse.jface.text'失蹤。他們用於什麼?爲什麼他們有必要? – user3399000

+0

當你得到這個錯誤時你在做什麼? –

+0

我正在以編程方式運行xpand工作流程。 – user3399000