
P.s.: the jar wad added through the IDEA's feature (project structure -> modules), and with this solution the project could run without failure. *like this one: build maven project with propriatery libraries included

A common example of this situation is Oracle JDBC Driver. I've found several similar questions*, but I've failed the execution of them, because I don't know the groupid and artifact id of the oracle's jar. mvn install:install-file -Dfileojdbc6-11.2.0.3.jar -DgroupIdcom.oracle -DartifactIdojdbc6 -Dversion11.2.0.3 -Dpackagingjar 3. When working in Maven projects, sometimes we need to use some libs that arent found in any Maven repository. Which means my db queries are going to fail when I run it. Run the following command to install the jar into my local repository: mvn install:install-file -DgroupIdcom.oracle -DartifactIdojdbc6 -Dversion11.2.0.3. If your team has a local Maven repository this guide might be helpful to upload the JAR there. I Have oracle 11g i downloaded ojdbc6.jar,Installed Maven and run following command sudo mvn install:install-file -Dfile/home/nawaz/Downloads/ojdbc6.jar. Then run below maven command: (change values according to downloaded file name &. When I package the project with all of the dependencies, the only one what will be excluded is the jar. mvn install:install-file -DgroupIdcom.oracle -DartifactIdojdbc14 -Dversion10.2.0.3.0 -Dpackagingjar -Dfileojdbc.jar -DgeneratePomtrue The last parameter for generating a POM will save you from pom.xml warnings. First download ojdbc jar file from Oracle JDBC Driver Website.

Packaging maven project with external jar I've been trying to make a runnable jar from my project (in Intellij IDEA) which has a dependency to an oracle (driver -> ojdbc6) jar.
