我在我的开发环境中使用 Eclipse Blue 10 和 Maven 3。
我通常通过以下路径从 SVN 导入 maven 项目:
File > Import> SVN > Checkout Projects from SVN
然后导入所有maven项目:
Right click on imported project > Maven4MyEclipse> Existing Maven Projects
我有一个名为“project-ear”的 maven 模块,该模块用于将我所有的 Web 应用程序绑定到一只耳朵中。
但是每当我将 EAR 模块作为 eclipse 项目导入时,eclipse 在“问题”选项卡中提示以下错误:
pom.xml 的项目配置不是最新的。运行项目配置更新。
如何解决这个问题?我看不到任何“运行项目配置更新”的方法。
请帮忙。
EAR 模块的 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>com.company.xxx</groupId>
<artifactId>my</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>com.company.xxx.ear</groupId>
<artifactId>my-ear</artifactId>
<packaging>ear</packaging>
<name>my-ear</name>
<build>
<finalName>web-app</finalName>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.5</version>
<configuration>
<modules>
<webModule>
<groupId>com.company.xxx.myweb</groupId>
<artifactId>my-web</artifactId>
<contextRoot>/txcs</contextRoot>
</webModule>
</modules>
<generateApplicationXml>true</generateApplicationXml>
<displayName>web-app</displayName>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.company.xxx.myweb</groupId>
<artifactId>my-web</artifactId>
<type>war</type>
<version>${project.version}</version>
</dependency>
</dependencies>