Skip to content

Instantly share code, notes, and snippets.

@juanpicado
Created October 15, 2016 11:03
Show Gist options
  • Save juanpicado/d4c57cc8916227cdc53ccd9877db33c1 to your computer and use it in GitHub Desktop.
Save juanpicado/d4c57cc8916227cdc53ccd9877db33c1 to your computer and use it in GitHub Desktop.
mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.2.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=
[url] -DrepositoryId=[id]
Path to dependency:
1) org.leberrigaud.maven.plugins:database-maven-plugin:maven-plugin:0.9
2) com.oracle:ojdbc6:jar:11.2.0.2.0
----------
1 required artifact is missing.
for artifact:
org.leberrigaud.maven.plugins:database-maven-plugin:maven-plugin:0.9
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots),
atlassian-contrib (https://maven.atlassian.com/contrib),
kungfuters-public-releases-repo (http://maven.kungfuters.org/content/repositories/releases),
atlassian-proxy (https://maven.atlassian.com/repository/public),
kungfuters-public-snapshots-repo (http://maven.kungfuters.org/content/repositories/snapshots)
Install the missing Libraries
This is the list of jar you need install with Maven.
activation-1.0.2.jar
mail-1.3.3.jar or (mail-1.4.4.jar)
ojdbc6-11.2.0.2.0
ojdbc5.jar (not sure)
db2jcc4.jar (not sure)
First you need download this jar from Internet, but, sometimes it's impossible mission download from Maven. activation.jar, mail.jar, you can downoad form maven mirrors, in my case search the mail.jar 1.3.3 for my was impossible, and the mail.jar 1.4.4, at least for me, work fine.
http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/mail/mail/1.4.4/
http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/xml/bind/activation/1.0.2/
Dependencies, ojdbc6.jar and ojdbc5.jar (Oracle JDBC Drivers 11.2.0.2.0) you need download from Oracle Web Site, http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html.
DB2 (JDBC Drivers) Dependency, you need download from IBM Web Site the version 9.7, https://www-304.ibm.com/support/docview.wss?uid=swg21363866
mvn install:install-file -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar -Dfile=/Users/juan/Downloads/activation-1.0.2.jar
mvn install:install-file -DgroupId=javax.mail -DartifactId=mail -Dversion=1.3.3 -Dpackaging=jar -Dfile=/Users/juan/Downloads/mail-1.4.4.jar
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.2.0 -Dpackaging=jar -Dfile=/Users/juan/Downloads/ojdbc6.jar
mvn install:install-file -DgroupId=com.ibm.db2 -DartifactId=db2jcc4 -Dversion=9.7 -Dpackaging=jar -Dfile=/Users/juan/Download/db2jcc4.jar
mvn install:install-file -DgroupId=com.oracle -DartifactId=oracle-jdbc15 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=/Users/juan/Download/ojdbc5.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment