GitHub项目作为依赖,供其他项目导入

照着他人文档操作,出了文档中没有出现的异常,故转载并记录下异常问题

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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值