In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly describes how to download to the local JAR package manually added to the Maven repository, the article is very detailed, has a certain reference value, interested friends must read!
ojdbc-----------------
Grammar:
mvn install:install-file -Dfile=jar package location (parameter 1) -DgroupId=groupId(parameter 2) -DartifactId=artifactId(parameter 3) -Dversion=version(parameter 4) -Dpackaging=jar
I put "ojdbc-10.2.0.4.0.jar" under "D:\Program Files\mvn\,"
Note: There are spaces in the middle of "Program Files", so double quotes are required. The other three parameters can be copied from above. The following is the command I use to install ojdbc-10.2.0.4.0.jar package:
mvn install:install-file -Dfile="D:\Program Files\mvn\ojdbc-10.2.0.4.0.jar" -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar
The following points need to be noted:
1. Note that "-" cannot be missing."-" after install is without spaces.
2. Note the path of the jar package and the name of the jar package in "-Dfile".
3. Watch the cmd command prompt to see if the jar package is copied successfully in the local repository.
Key points: Jar packages are installed under "C:\Users\Administrator\.m2\repository\" by default. In fact, the above (parameter 2, parameter 3, parameter 4) specifies the specific installation path.
(In the future, you can also change parameters 2, 3 and 4 according to your own needs. In fact, you can change the installation path.)
Installation of ojdbc-10.2.0.4.0.jar package completed:
That's all for "How to manually add locally downloaded JAR packages to Maven repositories." Thanks for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.