1.
2. Open http://maven.jahia.org/maven2/Step by step to find
The version I need
https://devtools.jahia.com/nexus/content/groups/maven-jahia-org/com/oracle/ojdbc5/11.2.0.2.0/
3. Download the above two files and remember to rename the jar file and remove the "-". Otherwise it will be treated as a parameter
4. Open the Pom file with Notepad and edit the command
Paste the command below, the command parameters refer to GroupID version above, of course, can also be customized, pay attention to configure pom.xml on the line.
MVN install:install-file-dgroupid=com.oracle-dartifactid=ojdbc5-dversion=11.2.0.2.0-dpackaging=jar-dfile= Ojdbc5.jar
5. Shift right-click the current directory to open cmd(! Cannot use PowerShell)
Just paste the command in and enter the line.
C:\users\sds\desktop\mvn\o> MVN install:install-file-dgroupid=com.oracle-dartifactid=ojdbc5-dversion= 11.2.0.2.0-dpackaging=jar-dfile=ojdbc5.jar[info] Scanning for projects ... [INFO] [INFO]------------------------------------------------------------------------[INFO] Building Ojdbc5 11.2.0.2.0[ INFO]------------------------------------------------------------------------[Info][info]--- Maven-install-plugin:2.4:install-file (DEFAULT-CLI) @ OJDBC5---[INFO] installing C:\Users\sds\Desktop\mvn\o\ Ojdbc5.jar to C:\users\sds\.m2\repository\com\oracle\ojdbc5\11.2.0.2.0\ojdbc5-11.2.0.2.0.jar[info] Installing c \ Users\sds\appdata\local\temp\mvninstall7659536298900240823.pom to C:\Users\sds\.m2\repository\com\oracle\ojdbc5\ 11.2.0.2.0\ojdbc5-11.2.0.2.0.pom[info]------------------------------------------------------------------------ [INFO] BUILD Success[info]------------------------------------------------------------------------[INFO] Total time: 0.932 S[info] finished at:2017-08-29t10:49:50+08:00[info] Final Memory:7m/184m[info]-------------------------------------------------------------------- ----
==================================================================================================
0. Mistakes in the process of tossing
PowerShell
PS c:\users\sds\desktop\mvn\o> mvn install:install-file-dgroupid=com.oracle-dartifactid=ojdbc5-dversion= 11.2.0.2.0-dpackaging=jar-dfile= "Ojdbc5.jar" [INFO] scanning for projects ... [INFO]------------------------------------------------------------------------[INFO] BUILD Failure[info]-------- ----------------------------------------------------------------[INFO] Total time:0.130 s[info] finished at: 2017-08-29t10:58:40+08:00[info] Final Memory:8m/184m[info]------------------------------------------------------ ------------------[ERROR] The goal specified requires a project to execute but there are no POM in this directory (c:\u sers\sds\desktop\mvn\o). Please verify your invoked Maven from the correct directory. "Help 1][error][error" to see the full stack trace of the errors, re-run Maven with THE-E switch. [ERROR] Re-run Maven using The-x switch to enable full debug logging. [ERROR] [ERROR] For more information on the errors and possible solutions, please read theFollowing Articles:[error] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
Toracle He goal you specified requires a project to execute but there are no POM in ....
The other mistakes are not saved, remember these two.
Maven manually install Oracle drive to warehouse