在做Openmeetings二次开发的时候install时出现了如下错误
[INFO] Parent project loaded from repository: org.apache:apache:pom:18
Downloading: http:
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:
[ERROR] org.apache:apache:xml:18
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] apache-snapshots (https:
, releases=false, snapshots=true),
[ERROR] smslib (http:
[ERROR] openmeetings-bintray (https:
s=true, snapshots=true),
[ERROR] sonatype-snapshots (http:
ts/, releases=false, snapshots=true),
[ERROR] apache.snapshots (https:
e, snapshots=true),
[ERROR] central (https:
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:
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即可解决
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)