Maven: Multiple plugins invoking multiple lifecycles
I've been using maven for quite some time (years), so it's surprising to me that I've never come across this issue before, or at least have some way of dealing with it...
I am trying to invoke the following plugin/goals (in the specified order):
- sql-maven-plugin:execute
- hibernate3:hbm2ddl
- dbunit:operation
- jetty:run
In a nutshell, I'm creating a database, generating a schema, inserting data, and then starting up a webapp. However, both the hbm2ddl and jetty:run goals invoke (fork) lifecycle phases of their own, which causes some of the other bound plugin goals to run multuple times.
This is obviously not wh开发者_JS百科at I want. Is there any way to workaround this issue?
Thanks!!
I've found a few Stack Overflow issues related to this (jetty:run goal in particular), with some related bugs:
- maven-jetty-plugin question
- http://jira.codehaus.org/browse/JETTY-1365
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=342643
精彩评论