The solution to the package not found in the main Maven repository (eg org.restlet.jee not found)

Sometimes, some packages cannot be found through maven. For example, today I encountered Could not find artifact org.restlet.jee:org.restlet:jar:2.3.0 ,

 

At this time, it can be solved by the following methods:

 

1. You can find the official repo of restlet and add it to the pom of the project:

<repositories>
        <repository>
            <id>maven-restlet</id>
            <name>Public online Restlet repository</name>
            <url>http://maven.restlet.org</url>
        </repository>
    </repositories>

 

2. If an error is still reported, then go directly to the above url ( http://maven.restlet.org) to download and put it in the relevant directory of the maven repo.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326768978&siteId=291194637