Eclipse makes incremental build do not using pom file properly
I have quite non-standard web app configuration: my web.xml file is located not in the WEB-INF folder, but is copied by maven from some another place (please don't ask why).
For that I'm using maven-war-plugin approach in my pom.xml: <webXml>${project.some.webapp.path}/web.xml</webXml>
It works fine when I call mvn install. But, when I make 'Build project' (incremental build) in eclipse - it doesn't copy web.xml into the WEB开发者_如何学运维-INF folder, as well as other maven-war-plugin features, like webResources. (it seems its just doesn't use its configuration at all during the incr build)
What can you advice in my case?
There's currently no option for this (I'm looking for one right now). In fact, it would work if there was an option in Eclipse to always run a full build (that's what you do when invoking «Build project») instead of an auto-build that runs an incremental-build, which only look at resources directory (by doing a delta). So many actions are not performed, such as copy-resources and so on, even if you've set up other directories, maven doesn't look into these because of the ignoreDelta incremental option.
I'm looking for a way to force the full build in every case, but it may need to change the core code of Eclipse.
精彩评论