0
我正在使用Maven 3.0.3。很显然,Oracle JDBC驱动程序在公共Maven仓库中不可用,所以我将它简化为安装到本地仓库。所以,我在运行Maven创建这个文件将此JAR放入本地回购的正确方法是什么?
~/.m2/repository/oracle/oracle/10.2.0.3.0/classes12.jar
我有这个在我的pom.xml文件...
<dependency>
<groupId>oracle</groupId>
<artifactId>classes12</artifactId>
<version>10.2.0.3.0</version>
</dependency>
然而,我得到这个错误。我如何构建我的本地回购? - 戴夫
[ERROR] Failed to execute goal on project infinitiusa_leads_testing: Could not resolve dependencies for project infinitiusa_leads_testing:infinitiusa_leads_testing:jar:1.0-SNAPSHOT: Failure to find oracle:classes12:jar:10.2.0.3.0 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException
+1对于groupId命名提示:-) – Jan 2011-05-13 10:03:15