Inside pom.xml dependency error how to do?

Copyright: respect for the original, as to reproduction, please write source. Thank https://blog.csdn.net/qq_39052982/article/details/88994519

The following questions, pom.xml there are individual dependency error how to do?

Here Insert Picture Description
Many of which are in line to see the project or to refresh maven update project, but did not solve the problem.
We should all know, pom.xml there are jar package, since an error, then the jar is a problem.

We can go look at the build path of the project.

Here Insert Picture Description
And then I came to this page. Here you can see a red cross, we point to look into.

Here Insert Picture Description

Point came in jar you can see there are two problems, resulting in pom.xml red line. Find the cause of the problem. We started to solve the problem ...

Follow the path to see

Here Insert Picture Description

No jar package.
We own to add it into the jar.

But directly to the jar package into this folder it is of no use.
We need to execute a command

Here Insert Picture Description

mvn install:install-file -DgroupId=com.ccic.cas -DartifactId=cas-client-core -Dversion=3.1.11 -Dpackaging=jar -Dfile=D:\WorkSpaces\ycxxcx\management\target/cas-client-core-3.1.11.jar

This is the command, modified to your local address is ok.

Manually install the local maven repository, which is one to one. The latter path is the path to your local storage jar package.
Path casually put, you can find on the line. (Only one jar add a lot of jar error, then re-import the suggestion try it.)

https://mvnrepository.com/tags/maven
this site you can find all the jar packages. The jar package download to a local.

Finally, enter cmd, came to this project the following command execution

Here Insert Picture Description
Here Insert Picture Description
The successful implementation of the folders inside the jar package.

Here Insert Picture Description
Project will caching, execute the following update project this operation, then it. . .

If wrong, please inform
Novice. Great God two lines of tears.

Guess you like

Origin blog.csdn.net/qq_39052982/article/details/88994519