Perfect solution maven project introduced sqljdbc4 can not find the package.

Today encountered this problem solved, way to do some recording. First to reproduce this issue, maven install error that can not find this package, but in fact I have installed.

We look at what's inside maven local repository, which shows that our package did not download it, said the Internet can download jar package, and then use the jar mvn install to install these packages, but can be, but too much trouble, and there is no problem at all sex resolved.

  We look at the maven in the introduction , then Clojars is what is it? It turned out to be another separate warehouse .

  Here's what the perfect solution for the Internet, said more chaos. In fact, just add a repository on the line, and then re-clean install just the perfect solution.

1

2

3

4

5

6

<repositories>

    <repository>

        <id>clojars</id>

        <url>http://clojars.org/repo/</url>

    </repository>

</repositories>

  

  This method also applies to some of the artifacts of other solutions to non-official maven repository. In fact, we can infer so, even if you are downloaded from the official website maven jar package, but also to third-party websites, understand this, we can judge the whole.

Published an original article · won praise 0 · Views 4154

Guess you like

Origin blog.csdn.net/b_just/article/details/103665164