本人mac端,从svn上下载了一个maven工程
在eclipse上使用maven install 时候老是失败
本地仓库已经指定好,但是还是显示无法获取指定的jar包
信息如下
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caf-template-adminlte 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Could not transfer metadata com.cpic.caf:caf-template-service:1.0-SNAPSHOT/maven-metadata.xml from/to caf_repositories (/Users/sml/Documents/repository): Cannot access /Users/sml/Documents/repository with type default using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory
[WARNING] Failure to transfer com.cpic.caf:caf-template-service:1.0-SNAPSHOT/maven-metadata.xml from /Users/sml/Documents/repository was cached in the local repository, resolution will not be reattempted until the update interval of caf_repositories has elapsed or updates are forced. Original error: Could not transfer metadata com.cpic.caf:caf-template-service:1.0-SNAPSHOT/maven-metadata.xml from/to caf_repositories (/Users/sml/Documents/repository): Cannot access /Users/sml/Documents/repository with type default using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.530 s
[INFO] Finished at: 2017-11-09T15:15:33+08:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project caf-template-adminlte: Could not resolve dependencies for project com.cpic:caf-template-adminlte:war:1.0-SNAPSHOT: Failed to collect dependencies at com.oracle.jdbc.driver:ojdbc6:jar:11g: Failed to read artifact descriptor for com.oracle.jdbc.driver:ojdbc6:jar:11g: Could not transfer artifact com.oracle.jdbc.driver:ojdbc6:pom:11g from/to caf_repositories (/Users/sml/Documents/repository): Cannot access /Users/sml/Documents/repository with type default using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory -> [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
pom文件如下
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.cpic
caf-template-adminlte
caf-template-adminlte
war
1.0-SNAPSHOT
1.7
1.7
1.7
UTF-8
com.oracle.jdbc.driver
ojdbc6
11g
org.apache.solr
solr-solrj
4.7.2
com.cpic.caf
caf-template-service
1.0-SNAPSHOT
com.oracle.jdbc.driver
ojdbc6
jstl
jstl
1.2
junit
junit
4.8.2
test
org.springframework
spring-test
3.2.8.RELEASE
test
javax.servlet
servlet-api
2.5
provided
com.alibaba
druid
1.0.27
org.mybatis
mybatis
3.2.7
org.mybatis
mybatis-spring
1.2.2
localDev
true
env
localDev
src/main/java
**/*
src/main/resources
**/*
src/main/localDevResources
CI
env
CI
src/main/java
**/*
src/main/resources
**/*
src/main/CIResources
Server
env
server
src/main/java
**/*
src/main/resources
**/*
src/main/ServerResources
caf_repositories
/Users/sml/Documents/repository
true
interval:5
true
always
cpic-nexus
/Users/sml/Documents/repository
true
true