Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.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
将xtend项目转换为maven项目_Maven_Xtend - Fatal编程技术网

将xtend项目转换为maven项目

将xtend项目转换为maven项目,maven,xtend,Maven,Xtend,对于与项目相关的工作,我使用Xtend编程。在我的eclipse工作区中,大约有10个项目,所有这些项目都相互依赖,我还需要一些其他插件,因此我将这些插件添加到目标中。现在我需要将所有项目转换为Maven项目,我尝试转换[configure-->convert to Maven project]但在META-INF导出部分,如果我从导出部分删除了包,则会显示一个错误。其他显示导入错误的项目。如果您有任何想法,请在这些方面帮助我 谢谢不要试图转换它,只需为maven创建一个新的Xtend项目 (您

对于与项目相关的工作,我使用Xtend编程。在我的eclipse工作区中,大约有10个项目,所有这些项目都相互依赖,我还需要一些其他插件,因此我将这些插件添加到目标中。现在我需要将所有项目转换为Maven项目,我尝试转换[configure-->convert to Maven project]但在META-INF导出部分,如果我从导出部分删除了包,则会显示一个错误。其他显示导入错误的项目。如果您有任何想法,请在这些方面帮助我


谢谢

不要试图转换它,只需为maven创建一个新的Xtend项目

(您可以将其导入eclipse,导入…现有maven项目),然后将源代码包含在src/main/java中,并将依赖项包含在pom.xml中

<dependency>
  <groupId>org.eclipse.xtend</groupId>
  <artifactId>org.eclipse.xtend.lib</artifactId>
  <version>2.13.0</version>
</dependency>
从文档中,以下是创建项目的CLI::

mvn archetype:generate -DarchetypeGroupId=org.eclipse.xtend -DarchetypeArtifactId=xtend-archetype
这里是我生成的一个项目的(旧)示例,带有用于分发的AsserBly打包

文件

基本上,它在maven插件中使用Xtend编译器,将其添加到pom.xml中

<dependency>
  <groupId>org.eclipse.xtend</groupId>
  <artifactId>org.eclipse.xtend.lib</artifactId>
  <version>2.13.0</version>
</dependency>

org.eclipse.xtend
org.eclipse.xtend.lib
2.13.0
以及Xtend编译器插件:

<plugin>
  <groupId>org.eclipse.xtend</groupId>
  <artifactId>xtend-maven-plugin</artifactId>
  <version>2.13.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>

org.eclipse.xtend
xtend maven插件
2.13.0
编译
测试编译
${project.build.directory}/xtend-gen/main
${project.build.directory}/xtend gen/test