本文介绍了错误:添加依赖关系后无法找到或加载主类(maven)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

添加依赖关系到pom.xml文件后:

After adding dependency to pom.xml file:

<dependency>
        <groupId>org.neo4j</groupId>
        <artifactId>neo4j</artifactId>
        <version>2.1.0-M01</version>
</dependency>

虽然我试图运行项目我有错误:

While I'm trying to run project I got Error:

使用Eclipse 4.2 Keppler与m2e插件。

I'm using Eclipse 4.2 Keppler with m2e plugin.

推荐答案

在Debian(也许其他linux)上,你应该删除〜/〜/。 m2 / repository文件夹,在Eclipse中右键单击项目Maven-> Update Project ...

On Debian (probably other linux too) you should remove ~/~/.m2/repository folder and in Eclipse right-click on project Maven->Update Project...

这篇关于错误:添加依赖关系后无法找到或加载主类(maven)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 12:25
查看更多