开发者

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):

  1. sql-maven-plugin:execute
  2. hibernate3:hbm2ddl
  3. dbunit:operation
  4. 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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜