Error in pom.xml Maven build

孤者浪人 提交于 2019-12-05 12:11:23

Seems like the resolution failed.

Run mvn with the -U flag to disregard the cache and re-attempt resolution

(the alt+f5 dialog might help as well)

When I ran into this problem I figured out that it was due to a previous network problem. The local Maven repository avoids immediate reattempts. The best way to solve this was to use the eclipse "Update Maven Project" (ALT+F5) feature end check the option "Force Update of Snapshots/Releases".

This was not working for me , changing maven compiler version to 2.5.1 finally worked for me , hopefully this comes to rescue for anyone still struggling with this dependency

<build>
     <pluginManagement>
        <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.5.1</version>
                    <configuration>
                        <source>1.8</source>
                        <target>1.8</target>
                    </configuration>
                </plugin>
        </plugins>
        </pluginManagement>
    </build>
Abhishek

Update Maven Project by pressing (ALT+F5) and select the option "Force Update of Snapshots/Releases".

Update Maven Project by pressing (ALT+F5) and select the option "Force Update of Snapshots/Releases". works for me also

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!