我将<packaging> war </packaging>更改为<packaging> pom <packaging>,但我收到错误</packaging> </packaging>

时间:2013-07-13 18:28:57

标签: maven pom.xml packaging parent-pom

我已将战争改为pom,但我收到以下错误:

Project configuration is not up-to-date with pom.xml. 
Run Maven->Update Project or use Quick Fix.

如何解决此错误?

2 个答案:

答案 0 :(得分:1)

假设您正在使用Eclipse,请右键单击pom,选择Maven - &gt;更新项目。

答案 1 :(得分:0)

http://maven.apache.org/xsd/maven-4.0.0.xsd“&GT;     4.0.0     br.com.projetoweb03     universo2     0.0.1-SNAPSHOT     战

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.3</version>
            <configuration>
                <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
        </plugin>
    </plugins>
</build>