Todd Nine wrote:
Thanks for the help. The war:inplace needs to be in the after clean
goals to get it to correctly update the libraries. However now I need
to sync my workspace with my file system. The war:inplace is
correctly running, and the files are there when I open WEB-INF/lib in
Finder. However my project wouldn't sync with the filesystem, so I
had to click on the refresh tab, then I selected "The project
containing the selected resource" since I want to whole project to
refresh, and WTP to deploy any updated jars. Now I'm stuck in an
infinite loop. Every time a refresh happens, the war:inplace
happens. After war:inplace, the refresh occurs. The plugin
continuously executes war:inplace. Any idea on how to get around this?
Apparently, using separate "During Clean" and "After Clean" goals
won't work if "after clean" generates anything under "target" folder
(JDK builder complains on missing folders). So, the only option is to
run "clean package" in "During Clean" phase and make sure that builder
is the last in the chain.
I am not sure yet if it is an issue in m2eclipse or general JDT
problem, but project refresh does trigger automatic build even when
refresh happen during the build. The only workaround I know at the
moment is to don't bind goals to "Auto Build".
regards,
Eugene
On Wed, Apr 30, 2008 at 5:52 AM, Eugene Kuleshov <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Bouiaw wrote:
Auto Build Goals: war:inplace
Manual Build Goals: war:inplace
During Clean Goals: clean war:inplace
After Clean Goals:
That may not be a good idea, if there are other builders cleaning
things. However "after clean goal" should be executed after clean,
so you could try to put it in there.
Another option to try, is to add war:inplace goal to list of
goals executed for resource filtering in the Maven project
configuration page.
regards,
Eugene
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email