2011-10-01 73 views
2

我通過m2eclipse嚮導創建了一個新項目,並選擇了空白的liftweb原型。該項目已創建,我向項目中添加了scala特性(我暫時沒有安裝maven-scala插件)​​。Maven和Eclipse Lift項目錯誤

我能夠使用目標jetty:run運行項目。不過,我還是有以下錯誤顯示在Eclipse(清潔項目沒有做任何事情):

Description Resource Path Location Type 
error while loading Helpers, Scala signature Helpers has wrong version expected: 5.0 found: 4.1 in C:\Users\Ken\.m2\repository\net\liftweb\lift-webkit\0.8\lift-webkit-0.8.jar(net/liftweb/util/Helpers.class) first  Unknown Scala Problem 
error while loading LiftRules, Scala signature LiftRules has wrong version expected: 5.0 found: 4.1 in C:\Users\Ken\.m2\repository\net\liftweb\lift-webkit\0.8\lift-webkit-0.8.jar(net/liftweb/http/LiftRules.class) first  Unknown Scala Problem 
error while loading Loc, Scala signature Loc has wrong version expected: 5.0 found: 4.1 in C:\Users\Ken\.m2\repository\net\liftweb\lift-webkit\0.8\lift-webkit-0.8.jar(net/liftweb/sitemap/Loc.class) first  Unknown Scala Problem 
error while loading MainGenericRunner, Scala signature MainGenericRunner has wrong version expected: 5.0 found: 4.1 in C:\Users\Ken\.m2\repository\org\scala-lang\scala-compiler\2.7.1\scala-compiler-2.7.1.jar(scala/tools/nsc/MainGenericRunner.class) first  Unknown Scala Problem 
error while loading Menu, Scala signature Menu has wrong version expected: 5.0 found: 4.1 in C:\Users\Ken\.m2\repository\net\liftweb\lift-webkit\0.8\lift-webkit-0.8.jar(net/liftweb/sitemap/Menu.class) first  Unknown Scala Problem 
Plugin execution not covered by lifecycle configuration: org.scala-tools:maven-scala-plugin:2.15.2:compile (execution: default, phase: compile) pom.xml /first line 76 Maven Project Build Lifecycle Mapping Problem 
Plugin execution not covered by lifecycle configuration: org.scala-tools:maven-scala-plugin:2.15.2:testCompile (execution: default, phase: test-compile) pom.xml /first line 76 Maven Project Build Lifecycle Mapping Problem 

這裏是錯誤的截圖(可以更容易閱讀,點擊全尺寸圖像):

Errors

是否有人知道這裏發生了什麼?有什麼建議麼?

其他信息:

以下警告拿出當我運行該項目:

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.kpthunder.lift:first:war:0.0.1-SNAPSHOT 
[WARNING] 'build.plugins.plugin.version' for org.mortbay.jetty:maven-jetty-plugin is missing. @ line 87, column 15 
[WARNING] 'build.plugins.plugin.version' for net.sf.alchim:yuicompressor-maven-plugin is missing. @ line 95, column 15 
[WARNING] 'build.plugins.plugin.version' for org.scala-tools:maven-scala-plugin is missing. @ line 72, column 15 
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-eclipse-plugin is missing. @ line 109, column 15 
[WARNING] 'reporting.plugins.plugin.version' for org.scala-tools:maven-scala-plugin is missing. @ line 133, column 15 
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. 
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. 
[WARNING] 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 

回答

0

我是新來解除,但使用的解釋here,並能使其向工作。