Разница maven построить в том же файле POM. - PullRequest
3 голосов
/ 21 марта 2012

у меня есть родительский файл pom, который включает 3 модуля ...

и есть разница, когда я запускаю "mvn install" из командной строки на "parent pom", чтобы затмить плагин m2 (run-- maven install).

я вижу это, когда я запускаю из командной строки, это не так, и после этого попробуйте запустить "clean" на моем сервере 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'.

(этот файл он выбрасывает "Файл не найден", их действительно нет ...)

но если я перейду к своему родительскому запуску pom -> "maven install", он будет работать без ошибок при попытке очистки ..

в чем может быть причина?

Я пытаюсь выяснить, отличается ли "мой maven", запускаемый в командной строке, от maven от затмения, но я не нашел, какой maven работает в затмении ...

заранее спасибо ..

извините за мой английский ...

1 Ответ

10 голосов
/ 21 марта 2012

Когда вы запускаете Maven вне Eclipse, файлы изменяются вне Eclipse. Что вам нужно сделать, это обновить (f5) ваш проект в затмении после его создания через maven вне затмения. Тогда эта ошибка рассинхронизации исчезнет.

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

Вы можете изменить установку maven отсюда, если вам нужно

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...