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换成淘宝镜像解决
   
      alimaven
      aliyun maven
      http://maven.aliyun.com/nexus/content/groups/public/
      central        
   

 

同时出现另一个问题:

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包,解决


    junit
    junit
    4.10
    test

你可能感兴趣的:(GitHub)