Reputation: 1
I add dependency in pom.xml.But I got error in my pom.xml file Missing artifact com.oracle:ojdbc14:jar:10.2.0.2.0.Is there any thing wrong in the steps I followed. Please help me out.
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>4.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
Upvotes: 0
Views: 456
Reputation: 2747
user3302059 asked:
Is there any thing wrong in the steps I followed? Please help me out.
Technically speaking no, but there are license constraints which you should be aware of.
Eldad AK answered:
If you don't use a repository manager (such as Nexus or Artifactory), look into it. It's the correct way to manage your maven environments.
Generally speaking Eldad AK's answer is true, but installing an Oracle Database JDBC Drivers to a repository manager cause a license violation.
Upvotes: 0
Reputation: 11045
As far as I know, Oracle ojdbc is not publicly available in maven repositories.
You should download it from the Oracle site, add it to your local repository manager and then it will be resolved by Maven.
If you don't use a repository manager (such as Nexus or Artifactory), look into it. It's the correct way to manage your maven environments.
I hope this helps.
Upvotes: 2