When integrating the SSHE project recently, when you want to add the Oracle driver package, Maven's pom.xml always reports Missing artifact com.oracle:ojdbc14:jar:10.2.0.1.0 error,
Below I give a detailed solution
I use ojdbc14.jar
1. Go to http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html to download the oraclejar package you need
2. Create a new oracle folder on the c drive, and put the downloaded oracle14.jar in the oracle folder
3. Run it in cmd:
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.1.0 -Dpackaging=jar -Dfile=C:/oracle/ojdbc14.jar
4. Add the following code in pom.xml:
<!-- oracle数据库驱动 -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.1.0</version>
</dependency>