2012-03-21 12 views
2

私は3つのモジュールを含む親pomファイルを持っています...同じpomファイルの差分ビルド。

"mvn install"を "parent pom"のコマンドラインから実行してm2プラグイン(run-- maven install) 。

私はそれが私にこのエラーを示して、私の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のインストール」私はきれいにしようとします..

何が原因なのでしょうか?

私は

..事前に

感謝...コマンドラインで実行する「私の達人」は日食と異なるMavenのですが、私は、Eclipseで実行Mavenのが見つかりませんでしたかどうかを確認してみてください私の英語のために申し訳ありません...

答えて

9

eclipseの外でmavenを実行すると、ファイルはeclipseの外で変更されます。あなたがする必要があるのは、eclipseの外でmaven経由でビルドした後、Eclipse内でプロジェクトをリフレッシュ(f5)することです。その後、その "同期外れ"エラーは消え去ります。あなたはとても愚かな伐採のIM becouse今

+0

のOOo daaamする必要がある場合は

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

あなたはここからMavenのインストールを変更することができます。.. :-) – user986474

+2

:)笑、みんなにすべての時間に発生しています。そのような気分にする必要はありません – fmucar

関連する問題