If your plugin in your parent pom is not defined in the pluginManagement
section I suggest you try moving it there.

From: http://maven.apache.org/pom.html#Plugin_Management
pluginManagement: is an element that is seen along side plugins. Plugin
Management contains plugin elements in much the same way, except that
rather than configuring plugin information for this particular project
build, it is intended to configure project builds that inherit from this
one.

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>@@@</groupId>
          <artifactId>@@@</artifactId>
....
        </plugin>
      </plugins>
    </pluginManagement>
  </build>


On Thu, 2009-08-20 at 16:51 +0200, Ute Platzer wrote:

> Hi,
> 
> I'm trying to use the xml-maven-plugin to validate xml-files in a 
> multi-module maven project. It
> works fine if I configure the plugin in one of the sub-projects, but it does 
> not work if I configure
> it in the common parent pom file: when I build the project in the parent 
> direcotry, it complains
> that the xml source directory that I configured is not present in the parent 
> dir (the directory
> exists in all sub-modules, but not in the parent).
> 
> Is there any way I can use the plugin in this scenario without having to 
> configure it in the pom
> files of all the modules?
> 
> Thanks for your help, and best regards,
> 
> Ute
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 

Mike Power

Reply via email to