Java – Maven dependency problem – artifact not found in central repository

I'm trying from this site http://www.joptimizer.com/usage.html Build the project I downloaded the source jar file, unzipped it, and ran the Maven package in the root folder Maven failed at the last minute, saying it could not solve the dependency problem

Could not find artifact seventytwomiles:architecture-rules:jar:3.0.0-M1 in central repo - repo.maven.apache.org/maven2 ..

I have a feeling that I may need to be in POM Change something in the XML file to make it work, but I don't know what it is The lack of dependence on Google search led me not to In general, how do you know how to handle such errors (and please help resolve this particular situation)

Solution

especially

according to http://www.joptimizer.com/usage.html Architectural Notes:

To get this package, go to http://sourceforge.net/projects/cvxopt/files/ , and download the corresponding version of joptimizer-3 X.X-dependencies. zip. Unzip in your own folder and run MVN install: install file - dgroupid = seventytwo files - dartifactid = architecture rules - dversion = 3.0 0-M1 -Dpackaging = jar -Dfile = architecture-rules-3.0. 0-M1. Jar - dpomfile = schema rules - 3.0 0-M1. pom

usually

Use image http://mavenrepository.com Such a tool searches for another version of the missing dependency and updates your POM with the correct version If MVN repository doesn't know about it, you can install the dependencies yourself If you are working with a group of developers, as Eric jablow mentioned, artifact libraries such as nexus or artifact are very suitable for sharing non-public dependencies If you are the only one, you can install artifacts in the local warehouse as described here: how to manually install an artifact in Maven 2?

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>