无法在 Eclipse 中将项目 facet ear 的版本更改为 1.3 maven 错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32947812/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot change version of project facet ear to 1.3 maven error in eclipse?
提问by Jhansi Gupta
I am new to maven, I have created a maven project in Eclipse on Wildfly server. Its deploying fine and working fine but I have a compilation issue in work space as like below.
我是 maven 的新手,我在 Wildfly 服务器上的 Eclipse 中创建了一个 maven 项目。它部署良好且工作正常,但我在工作空间中有一个编译问题,如下所示。
cannot change version of project facet ear to 1.3
无法将项目 facet ear 的版本更改为 1.3
No issue is there when i specify project facet EAR as 7.0 but in problems it is showing as in the images.
当我将项目方面 EAR 指定为 7.0 时没有问题,但在问题中它显示为图像。
How can I fix this issue?
我该如何解决这个问题?
回答by Arumugam Srinivasan
I hope your using Wildfly server 8 or 9, try using version (jee version) to avoid this compile error
我希望您使用 Wildfly 服务器 8 或 9,请尝试使用版本(jee 版本)以避免此编译错误
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.10.1</version>
<configuration>
<version>7</version>
</configuration>
</plugin>
</plugins>
</build>