当我尝试构建“Drools JBoss Rules 5.0 Developer's Guide”中的示例时,我遇到了一些奇怪的麻烦。我尝试运行此示例,执行自述文件中的逐步指令(类似指令位于: http://code.google.com/p/droolsbook/ )
我收到以下日志:
命令:mvn eclipse:eclipse -DdownloadSources=true
[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] ------------------------------------------------------------------------
运行“mvn clean install”时出现类似错误 (http://pastebin.com/FHQ4QqBH)
感谢您的建议,加东。
最佳答案
我认为您的问题与 Drools 无关,而是与 Maven 中央存储库的连接配置有关。正如你所看到的,它无法下载maven编译器插件。请检查您的连接。
关于java - 无法使用 maven 从 'Drools JBoss Rules 5.0 Developer' s Guide 构建 Drools 示例,无法下载工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16238711/