Could not transfer artifact xxx from/to xxx解决方案

在做Openmeetings二次开发的时候install时出现了如下错误

[INFO] Parent project loaded from repository: org.apache:apache:pom:18
Downloading: http://smslib.org/maven2/v3/org/apache/apache/18/apache-18-site_en.
xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Openmeetings ....................................... FAILURE [  8.503 s]
[INFO] Openmeetings Util .................................. SKIPPED
[INFO] Openmeetings DB .................................... SKIPPED
[INFO] Openmeetings Core .................................. SKIPPED
[INFO] Openmeetings Install ............................... SKIPPED
[INFO] Openmeetings Service ............................... SKIPPED
[INFO] Openmeetings Webservices ........................... SKIPPED
[INFO] Openmeetings Web ................................... SKIPPED
[INFO] Openmeetings Flash ................................. SKIPPED
[INFO] Openmeetings Screen Sharing applet ................. SKIPPED
[INFO] Openmeetings Server ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.496 s
[INFO] Finished at: 2017-01-31T17:26:56+08:00
[INFO] Final Memory: 35M/293M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:si
te (generate-site) on project openmeetings-parent: SiteToolException: The site d
escriptor cannot be resolved from the repository: ArtifactResolutionException: U
nable to locate site descriptor: Could not transfer artifact org.apache:apache:x
ml:site_en:18 from/to smslib (http://smslib.org/maven2/v3): smslib.org
[ERROR] org.apache:apache:xml:18
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] apache-snapshots (https://repository.apache.org/content/groups/snapshots
, releases=false, snapshots=true),
[ERROR] smslib (http://smslib.org/maven2/v3, releases=true, snapshots=true),
[ERROR] openmeetings-bintray (https://dl.bintray.com/openmeetings/maven, release
s=true, snapshots=true),
[ERROR] sonatype-snapshots (http://oss.sonatype.org/content/repositories/snapsho
ts/, releases=false, snapshots=true),
[ERROR] apache.snapshots (https://repository.apache.org/snapshots, releases=fals
e, snapshots=true),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=
false): Unknown host smslib.org
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

错误原因:
Smslib所在的储存库无法连接,导致了这个问题
解决方案:
找到Openmeeings/pom.xml文件,找到其中这部分内容:

    <repositories>
        <repository>
            <releases><enabled>false</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
            <id>apache-snapshots</id>
            <url>https://repository.apache.org/content/groups/snapshots</url>
        </repository>
        <repository>
            <id>smslib</id>
            <url>http://smslib.org/maven2/v3</url>
        </repository>
        <repository>
            <id>openmeetings-bintray</id>
            <url>https://dl.bintray.com/openmeetings/maven</url>
        </repository>
        <repository>
            <id>sonatype-snapshots</id>
            <name>Sonatype Snapshots Repository</name>
            <url>http://oss.sonatype.org/content/repositories/snapshots/</url>
            <releases><enabled>false</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
        </repository>
    </repositories>

将其中smslib的url由http://smslib.org/maven2/v3改成http://code.google.com/p/smslib/source/browse/smslib/trunk即可解决

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值