maven手動安裝oracle驅動到倉庫

來源:互聯網
上載者:User

標籤:format   rsh   user   directory   pom.xml   cto   cut   ups   粘貼   

1.

 

2.開啟http://maven.jahia.org/maven2/一步步開啟找到 

   我需要的版本

   https://devtools.jahia.com/nexus/content/groups/maven-jahia-org/com/oracle/ojdbc5/11.2.0.2.0/

 

3.下載上面兩個檔案,記得重新命名jar檔案,把  【-】 去掉 。 不然會被當成參數

4.用記事本開啟pom檔案,編輯命令

  把命令粘貼在下面,  命令的參數參考上面的 groupid  version等,當然也可以自訂,注意配置pom.xml就行。

 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc5 -Dversion=11.2.0.2.0 -Dpackaging=jar -Dfile=ojdbc5.jar

 

 

5.目前的目錄 按住shift 右鍵開啟cmd(!不能用powershell)

  把命令粘貼進去 斷行符號就行了。

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.在折騰過程中的錯誤

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 you specified requires a project to execute but there is no POM in this directory (C:\Users\sds\Desktop\mvn\o). Please verify you 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 about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

  

Toracle he goal you specified requires a project to execute but there is no POM in........

  

 其他的錯誤沒儲存,就記得這兩個。

 

maven手動安裝oracle驅動到倉庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.