Eclipse Blue, Maven: Project configuration is not up-to-date with pom.xml

后端 未结 9 1329
礼貌的吻别
礼貌的吻别 2020-12-14 01:38

I am using Eclipse Blue 10 & Maven 3 in my development environment.

I generally import maven projects from SVN by following below path:

File >         


        
相关标签:
9条回答
  • 2020-12-14 02:34

    Sorry, I don't have the rep to add comment yet. stonedsquirrel (above) is right though and their answer should be voted as correct:

    1. Go to package explorer
    2. Right-click the project
    3. Select Maven\Update Project

    Worked perfectly for me.

    0 讨论(0)
  • 2020-12-14 02:35

    I got this problem when I upgrade Java from JRE System Library [JavaSE 1.6] to JRE System Library [JavaSE 1.7].

    After did like this the following error is displayed in Problems view Project configuration is not up-to-date with pom.xml. Run project configuration update.

    I changed the configuration of compiler in pom.xml, Previously the value of source and target value is 1.6, I changed it to 1.7

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    

    For get rid of this problem simply follow the below process.

    SOLUTION: Right click on the project -> Maven4MyEclipse -> Update Project Configuration...

    The below image shown you how to do in MyEclipse IDE.

    Upgrade configuration of compiler in pom.xml

    or

    SOLUTION: Right click on the error in Problems view -> click on Quick Fix

    The below image shown you how to do in Eclipse IDE

    Problems view in Eclipse

    0 讨论(0)
  • 2020-12-14 02:36

    Right click on the project explorer and select maven and select update project.

    0 讨论(0)
提交回复
热议问题