Failed to build dependencies in Maven project

When I try to create or compile my Maven project, I get the following error message:

[ERROR] Failed to execute goal on project dss-services: Could not resolve dependencies for project net.jnd.thesis:dss-services:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.4 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.4 (compile), org.slf4j:slf4j-log4j12:jar:1.6.4 (compile), net.sf.flexjson:flexjson:jar:2.1 (compile), commons-beanutils:commons-beanutils:jar:1.8.3 (compile), org.apache.commons:commons-lang3:jar:3.1 (compile), org.eclipse.jetty:jetty-websocket:jar:8.1.4.v20120524 (compile), net.jnd.thesis:dss-common:jar:0.0.1-SNAPSHOT (compile)]: Failed to read artifact descriptor for net.jnd.thesis:dss-common:jar:0.0.1-SNAPSHOT: Could not find artifact net.jnd.thesis:dss:pom:0.0.1-SNAPSHOT -> [Help 1] 

During my research, I found two possible solutions:

However, the answers provided do not apply, because I have already recreated the project from scratch (and I don’t see how the directory name is changed), but because my error message is different from the error messages presented in these specific cases.

I think that my m2e plugin in Eclipse should have some configuration problems, and therefore it cannot load and find the necessary Maven artifacts, but I have no idea how to solve the problem: S

+6
source share
3 answers

After a lot of headaches and time, I just realized that there is a huge problem with the m2e plugin and its versions. So I solved my problem by introducing the project and doing mvn clean compile and then mvn install .

Thanks for the help anyway!

+5
source

Could you use the console?

The "mvn clean compile" should be enough to check if there is a problem with eclipse or not.

Sometimes I had a problem with dependencies in some maven project, and usually it was because I did not add a specific repository for them. Some dependencies are not installed in the central maven repo, so you should check if your dependencies are available in this repo. If not, you can add more repositories to your pom to say maven "Hey, look for my dependencies in this other repo."

+7
source

edwr rf twe t4t 4t64ty 44 y4q y 34qyt 34y43 yrwy we yw w4eg4 y43uj 5uqa 5uhhuy a5a Gny4y64hXZF YAE HVFDZ E 5RAEHBEYEE54

-2
source

Source: https://habr.com/ru/post/1501324/


All Articles