java - 无法使用 maven 从 'Drools JBoss Rules 5.0 Developer' s Guide 构建 Drools 示例,无法下载工件

标签 java build jboss maven-2 drools

当我尝试构建“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/

相关文章:

java - spring boot中授权写在哪里?在 Spring 拦截器或过滤器中?

eclipse - 在 Eclipse 和增量性中向项目添加构建器

java - 无法应用插件[class 'org.gradle.api.plugins.scala.ScalaBasePlugin']:Gradle v2.13

java - 如何从 JBoss 外部与 Infinispan 通信?

java - 使用 jigsaw 模块通过 jdk9 运行 spring boot

java - 为什么调试时与从命令行运行时 Swing 应用程序窗口看起来不同?

java - 字符串索引超出范围,但现在知道如何

java - 如何在gradle构建期间更改配置文件?

netbeans - 如何在netbeans中调试JBOSS应用程序?

java - :form enctype ="multipart/form-data" not firing any action