照着他人文档操作,出了文档中没有出现的异常,故转载并记录下异常问题
Failed to execute goal com.github.github:site-maven-plugin:0.12:site (default) on project framework:
Execution default of goal com.github.github:site-maven-plugin:0.12:site failed:
Plugin com.github.github:site-maven-plugin:0.12 or one of its dependencies could not be resolved:
Failed to collect dependencies at com.github.github:site-maven-plugin:jar:0.12 -> com.github.github:github-maven-core:jar:0.12 -> org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r: Failed to read artifact descriptor for org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r: Could not transfer artifact org.eclipse.mylyn.github:org.eclipse.egit.github.core:pom:3.1.0.201310021548-r from/to egit (https://repo.eclipse.org/content/repositories/egit-releases/):
Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection timed out: connect -> [Help 1]
解决:
maven换成淘宝镜像解决
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
同时出现另一个问题:
Failed to execute goal com.github.github:site-maven-plugin:0.12:site (default) on project framework:
Execution default of goal com.github.github:site-maven-plugin:0.12:site failed:
Plugin com.github.github:site-maven-plugin:0.12 or one of its dependencies could not be resolved:
Failed to collect dependencies at com.github.github:site-maven-plugin:jar:0.12 -> com.github.github:github-maven-core:jar:0.12 -> org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r: Failed to read artifact descriptor for org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r: Could not transfer artifact org.eclipse.mylyn.github:org.eclipse.egit.github.core:pom:3.1.0.201310021548-r from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/):
archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com: Unknown host archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com -> [Help 1]
解决:
在pom.xml中添加以下jar包,解决
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
本文记录了使用site-maven-plugin时遇到的依赖问题,包括连接超时及未知主机错误。通过更换为阿里云镜像源解决了连接超时问题,但又出现了新的依赖读取失败。最终在pom.xml中添加junit依赖解决了所有问题。
1231

被折叠的 条评论
为什么被折叠?



