java maven项目无故报错_maven工程pom文件老是报错

本人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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值