Maven3 manually install local jar to the repository
Installation command:
Mvn install: install-file-Dfile = {Path/to/your/ojdbc. jar}-DgroupId = com. Oracle-DartifactId = ojdbc6-Dversion = 11.2.0-Dpackaging = jar
The command for installing oracle14.jar is as follows:
Mvn install: install-file-DgroupId = com. oracle-DartifactId = ojdbc14-Dversion = 10.2.0.4.0-Dpackaging = jar-Dfile = F:/JAR Pack/ojdbc14.jar
The following error is returned, indicating that there is no POM in the folder F:/JAR Pack /.
Find the cause. After cd is run to the F:/JAR Pack/directory, run the-Dfile = F:/JAR Pack/ojdbc14.jar command to add a folder directory to the parameter. The command is as follows:
Mvn install: install-file-DgroupId = com. oracle-DartifactId = ojdbc14-Dversion = 10.2.0.4.0-Dpackaging = jar-Dfile = ojdbc14.jar
This success
Maven official guide _ Chinese full version clear PDF
Maven 3.1.0 release, Project Build Tool
Install Maven in Linux
Maven3.0 configuration and simple use
Set up sun-jdk and Maven2 in Ubuntu
Get started with Maven
This article permanently updates the link address: