Some tips for using maven

Nowadays, more and more projects are using tools such as maven as management tools. This thing is good and bad.

The advantage is that the project jar package is managed in a unified manner. The disadvantage is that there are private servers everywhere.

So there are some jars that you have to add, but there is no private server, what should I do?

 

You just need to follow the steps below, simply execute it once, and then re-maven building is OK

 1, cut to the location of the downloaded .jar such as

c:/sqljdbc4.jar

2, execute the following installation naming

mvn install:install-file -Dfile=ojdbc14-10.1.0.jar -Dpackaging=jar -DgroupId=com.oracle.ojdbc -DartifactId=ojdbc14 -Dversion=10.1.0  

3, will

<dependency>  

            <groupId>com.oracle.ojdbc</groupId>  

            <artifactId>ojdbc14</artifactId>  

            <version>10.1.0</version>  

        </dependency>

add to pom.xml

Guess you like

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