我在嘗試從「Drools JBoss Rules 5.0開發人員指南」構建示例時遇到了一些奇怪的麻煩。我試着運行這個例子從自述文件做一步一步的指令(指令同樣是:http://code.google.com/p/droolsbook/)無法使用maven從'Drools JBoss Rules 5.0開發人員指南'構建Drools示例,無法下載神器
我得到以下日誌:
命令: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] ------------------------------------------------------------------------
類似的錯誤,我得到當我運行 '命令mvn全新安裝' (http://pastebin.com/FHQ4QqBH)
感謝您的任何建議,gadon。
謝謝,在上面的哈希網站上發佈了新的例子。不幸的是,在README文件命令中給出:mvn eclipse:eclipse -DdownloadSources = true它不能再次生成。很高興與:mvn clean install每個模塊都已經成功構建。這是爲什麼?另外爲什麼所有的東西都可以正確構建,但只有一個可以導入到eclipse中? (只有一個得到日食大自然)問候。 – gadon 2013-06-10 22:39:38
在提供的示例中,您有: '您還可以構建所有示例並從命令行運行所有測試。轉到droolsBookParent項目並執行: mvn clean install' 所以我找不到這個** eclipse:eclipse **開關。 一般來說,將eclipse文件添加到這些示例並不是一個好習慣,因爲如果smb使用InteliJ或Netbeans,那麼這樣的文件對他來說是無用的。您可以通過使用**文件 - >導入 - >現有Maven項目**分別導入每個模塊,並提供子模塊的文件夾 – 2013-06-12 12:34:37
如果您發現我的答案很好,請關閉此問題。 – 2013-06-13 20:26:28