我試圖從Maven存儲庫轉移到IVY存儲庫。正在解決針對IVY的Oracle JDBC依賴關係ANT
我設立倉庫的風格是:
<filesystem name="local" checkmodified="true">
<ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
<artifact pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}"/>
</filesystem>
我無法獲得Oracle罐子在我的本地庫:
我Maven的腳本如下:
<dependency>
<groupId>oracle.jdbc</groupId>
<artifactId>ojdbc11g</artifactId>
<version>${oracle-jdbc-version}</version>
</dependency>
我會嘗試在ivy.xml中顯示爲:
<ivy:install settingsRef="basic.settings" organisation="oracle.jdbc" module="ojdbc11g" revision="[1.0,)" overwrite="TRUE" from="${from.resolver}" to="${to.resolver}" />
不幸的是, 我得到這個錯誤:
[ivy:install]
[ivy:install] :: problems summary ::
[ivy:install] :::: WARNINGS
[ivy:install] module not found: oracle.jdbc#ojdbc11g;[1.0,)
[ivy:install] ==== libraries: tried
[ivy:install] http://repo1.maven.org/maven2/oracle/jdbc/ojdbc11g/[revision]/ojdbc11g-[revision].pom
[ivy:install] -- artifact o`enter code here`racle.jdbc#ojdbc11g;[1.0,)!ojdbc11g.jar:
[ivy:install] http://repo1.maven.org/maven2/oracle/jdbc/ojdbc11g/[revision]/ojdbc11g-[revision].jar
[ivy:install] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:install] :: UNRESOLVED DEPENDENCIES ::
[ivy:install] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:install] :: oracle.jdbc#ojdbc11g;[1.0,): not found
[ivy:install] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:install]
[ivy:install] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
構建失敗 /root/tools/apache-ivy-2.2.0/src/example/build-a-ivy-repository/build.xml :199:安裝模塊時發生問題 - 請參閱輸出以瞭解詳細信息
如何解決此問題?
在此先感謝。