idea jar package installed Dubbo local constraints and offline

Foreword

Used in a recent project Dubbox, due before Ali has been in maintenance, so the Maven central repository that can be downloaded, but then Ali is not maintained, became a US group to maintain, so there is no central repository of Dubbo jar package, which resulted in doing the project, package download jar down and not being given, Here's what the solution!

solution

(1) will deploy the package to a local warehouse jar

Win+R, input cmd, after input mvn -v, look at your mavenenvironment is installed the

Dubbo-2.8.4.jar Download

Extraction code: 3ccy

Then enter (the path is inside Dubbo-2.8.4.jarof the storage path):

mvn install:install-file -Dfile=C:\Users\15231\Desktop\2.8.4\dubbo-2.8.4.jar -DgroupId=com.alibaba -DartifactId=dubbo -Dversion=2.8.4 -Dpackaging=jar

Here Insert Picture Description
Once you've configured, to a local Mavenwarehouse to see, this time Dubboof the jar package has been in existence

(2) Offline Configuration Constraints

Into the project, file-> settings, the latter operation, the plug can.
Here Insert Picture Description
Offline address must be constrained in FIG address files stored offline, can themselves to define

to sum up

After completion of the above operation, the error dependence can be solved, not because of the Dubbo-2.8.4.jarworry about, but also gain a good knowledge points, maven jar package not in the library, especially like this, the need for manually add, have a better idea of friends, you can leave a message in the comments below, we can exchange ideas! ! !

Published 140 original articles · won praise 106 · views 190 000 +

Guess you like

Origin blog.csdn.net/tigaobansongjiahuan8/article/details/103107067