"Drools JBoss Rules 5.0 Developer 's Guide"에서 예제를 빌드하는 중 이상한 문제가 있습니다.'Drools JBoss Rules 5.0 Developer 's Guide'에서 Drools 예제를 빌드 할 수 없습니다. artifact를 다운로드 할 수 없습니다.
을 나는 다음과 같은 로그를 얻을 :
명령을 : 나는 (http://code.google.com/p/droolsbook/ 유사한 명령에있다) readme 파일에서 단계 명령에 의해 단계를하고이 예제를 실행하려고 MVN 일식 : 일식 -DdownloadSources = 사실
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Drools Book Parent
[INFO] Banking Core
[INFO] Validation
[INFO] ETL with iBatis
[INFO] DSL
[INFO] Decision Tables
[INFO] Ruleflow
[INFO] Stateful Rules
[INFO] Complex Event Processing
[INFO] Drools Flow
[INFO] Integration
[INFO] Sample Application
[INFO] Testing
[INFO] Performance
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
Downloading: http://repository.jboss.com/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2' from repository repository.jboss.com (http://repository.jboss.com/maven2): Authorization failed: Access denied to: http://repository.jboss.com/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-compiler-plugin
Reason: POM 'org.apache.maven.plugins:maven-compiler-plugin' not found in repository: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2
from the specified remote repositories:
repository.jboss.com (http://repository.jboss.com/maven2),
central (http://repo1.maven.org/maven2)
for project org.apache.maven.plugins:maven-compiler-plugin
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Fri Apr 26 14:41:02 CEST 2013
[INFO] Final Memory: 6M/119M
[INFO] ------------------------------------------------------------------------
내가 실행할 때
비슷한 오류가 나는 조언, gadon에 대한 (http://pastebin.com/FHQ4QqBH)
이감사합니다 'MVN 클린 설치'얻을.
해시 위의 웹 사이트에서 새 예제가 출시되었습니다. 불행히도 README 파일 명령에 주어진 경우 : mvn eclipse : eclipse -DdownloadSources = true 다시 빌드 할 수 없습니다. 다행히 : 모든 모듈에 mvn clean install이 성공적으로 설치되었습니다. 왜 그런가요? 그리고 추가로 왜 모든 것이 제대로 구축 되었는가?하지만 이클립스로 가져올 수있는 것은? (단 하나의 식성을 가지고있어) 안부. – gadon
제공된 예제에서는 다음을 사용합니다 : '모든 예제를 빌드하고 명령 줄에서 모든 테스트를 실행할 수도 있습니다. droolsBookParent 프로젝트로 가서 실행하십시오 : mvn clean install ' 그래서 ** 이클립스를 찾을 수 없습니다 : 이클립스 ** 스위치. 일반적으로 smb가 InteliJ 또는 Netbeans를 사용하면 파일이 쓸모가 없기 때문에 이클립스 파일을 추가하는 것은 좋지 않습니다. ** File-> Import-> Existing Maven Project **를 사용하여 각 모듈을 개별적으로 가져올 수 있으며 서브 모듈의 폴더를 제공하십시오 –
내 대답이 좋은 것으로 판명되면이 문제를 종료하십시오. –