Oracle is proprietary solution provider and oracle jars are not available in maven. So we need to manually add those jars to our local maven repository.
One of the errors, you can see is below.
Missing artifact com.oracle:ojdbc6:jar:11.2.0 in pom.xml
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0</version>
</dependency>
Solution : install manually in maven local local repo, run below command
mvn install:install-file -Dfile={path/to/your/ojdbc.jar} -DgroupId=com.oracle
-DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
-DgroupId this may vary, ex: if your group id just "oracle" , you can ommit or empty
DgroupId
Then it will looks like below
mvn install:install-file -Dfile={path/to/your/ojdbc.jar} -DgroupId=
-DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
No comments:
Post a Comment