1

将现有的 Eclipse 项目导入 Eclipse JEE Neon 工作区后,Eclipse 会宣布有关org.apache.maven.plugin.war.WarMojo的Maven 配置问题

环境的相关资料:

关于项目的信息:

  • 这是一个简单的 JSF 项目(HelloWorld;1 个类;1 个 Faclet)。
  • 它在 Ubuntu 14.04/Eclipse Mars 和 Mac OS/Eclipse Neon 下运行良好。
  • Eclipse Neon/Ubuntu 16.04 在 pom.xml 的第一行标记了一个问题,即“org.apache.maven.plugin.war.WarMojo”。
  • 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>
  <groupId>***</groupId>
  <artifactId>***</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>***</name>
  <url>http://maven.apache.org</url>
  
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  	<dependency>
	 <groupId>com.sun.faces</groupId>
	 <artifactId>jsf-api</artifactId>
	 <version>2.2.10</version>
  	</dependency>
  	<dependency>
	 <groupId>com.sun.faces</groupId>
	 <artifactId>jsf-impl</artifactId>
	 <version>2.2.10</version>
  	</dependency>   
  </dependencies>
  <build>
    <finalName>***</finalName>
  </build>
</project>

非常感谢您的帮助。

4

0 回答 0