2012-03-21 82 views
2

我有一個父pom文件,其中包括3個模塊...不同的maven構建在相同的pom文件中。

和有差異,當我運行「mvn安裝」從命令行上的「父pom」日食m2插件(run-maven安裝) 。

我可以看到它,當我從命令行運行它沒有,之後嘗試運行我的Tomcat服務器上「乾淨」它告訴我這個錯誤:

發佈失敗 發佈失敗與多個錯誤

File not found: D:\Projects\starto-v1\Tomcat Servlet\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF. 
File not found: D:\Projects\starto-v1\Tomcat Servlet\target\m2e-wtp\web-resources\META-INF\maven\starto.starto\MavenWeb-starto\pom.properties. 
File not found: D:\Projects\starto-v1\Tomcat Servlet\target\m2e-wtp\web-resources\META-INF\maven\starto.starto\MavenWeb-starto\pom.xml. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MeetReq/MeetReqHandler$1.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MeetReq/MeetReqHandler.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MsgReq/MsgReqHandler$1.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MsgReq/MsgReqHandler.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/HelloWorldServlet.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/LocUpdateServlet.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/MeetServlet.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/MsgServlet.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/SearchServlet.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/SingInUpOut.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/c2dm.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/imAlive.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/c2dm/FakeHostnameVerifier.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/c2dm/NameValuePair.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/c2dm/c2dmReqHandler$1.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/c2dm/c2dmReqHandler.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/db/managment/Dbconnection.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/db/managment/DbquaryExecutor.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/net/viralpatel/maven/ReqHandler.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/search/SearchReqHandler.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/servlet/common/CommonFun.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/signInUpOutReq/SignInUpOutReqHandler$1.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/signInUpOutReq/SignInUpOutReqHandler.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/update/imAlive/IsAliveChecker.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/update/imAlive/IsAliveCheckerThread.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/update/imAlive/imAliveReqHandler$1.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/update/imAlive/imAliveReqHandler.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/update/loc/req/UpdateLocReqHandler$1.class'. 
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/update/loc/req/UpdateLocReqHandler.class'. 
File not found: D:\Projects\starto-v1\Hibernett\target\classes\META-INF\maven\starto.starto\Hibernet-starto\pom.properties. 
Resource is out of sync with the file system: '/Common-starto/target/classes/Entities/LocationStartTo.class'. 

(這個文件他拋出「找不到文件」,他們就等於不存在?)

,但如果我去我的父母聚甲醛運行 - >「行家安裝」它運行得很好,沒有錯誤時,我嘗試清理..

可能是什麼原因?

我嘗試看看,如果「我的行家」,在命令行中運行是從月食不同行家,但我沒有找到它的Maven在Eclipse中運行...提前

感謝..

對不起,我的英語......

回答

9

當你在eclipse之外運行maven時,文件在eclipse之外被改變。你需要做的是,在eclipse之外通過maven構建它之後,在eclipse中刷新(f5)你的項目。然後,「不同步」錯誤將消失。

window -> preferences -> maven -> installations -> 

你可以從這裏Maven安裝改變,如果你需要

+0

噢噢daaam現在becouse你即時通訊砍伐這麼笨.. :-) – user986474 2012-03-21 20:39:44

+2

:)哈哈,這一切發生的時候給大家。不需要那樣的感覺 – fmucar 2012-03-22 08:56:48

相關問題