0

I have a multi module web app that is using maven 3, an EJB, WAR, and EAR modules used to build the app. I want to add dbDeploy to my app and have tried adding the plugin and correct directories and dependencies to the top level pom file(in the directory with the ear,ejb,war project directories). But when I try to run dbdeploy:update in the top directory it correctly runs it in my current directory but then it tries running it again in each of the modules of my project where it fails.

My question is, is there anyway to tell maven not to run a plugin on each of my modules and only inside the top level pom? I have also looked but it does not seem like dbdeploy supports a skip parameter as part of its configuration.

Thanks!

RedbeardTheNinja
  • 192
  • 2
  • 10
  • dbDeploy sound like it should run only in a separate module which contains the sql scripts...Furhtermore the plugin should have a parameter to run only from the root of a multi-module build. – khmarbaise Oct 04 '11 at 10:27

1 Answers1

-1

Place your dbdeploy plugin within pluginManagement section of parent pom. Then use the plugin in whichever project/pom that you need to (including the parent).

Refer to pluginManagement section in maven pom reference.

Raghuram
  • 51,854
  • 11
  • 110
  • 122