Hi!

I have written an ant mojo I want to bind to a phase. This mojo should be
configured (I currently only want to specify the version) in a parent POM
and inherited to a POM used for a jar project.

So I define in the *.mojos.xml

...
<pluginMetadata>
  <mojos>
    <mojo>
      <call>native2ascii</call>
      <goal>resources</goal>
      <phase>process-classes</phase>
...

In the parent POM:

...
 <pluginManagement>
      <plugins>
        <plugin>
          <groupId>de.mycompany.maven.plugins</groupId>
          <artifactId>maven-native2ascii-plugin</artifactId>
          <version>1.0.0-SNAPSHOT</version>
        </plugin>
...

And in the jar project POM (using the parent POM):

...
      <plugin>
          <groupId>de.mycompany.maven.plugins</groupId>
          <artifactId>maven-native2ascii-plugin</artifactId>
      </plugin>
...

I expected that the plugin will run, but it doesn't. I do not see where my
error is. Any suggestions?

BTW: If I specify in the jar project POM

...
    <build>
      <plugins>
       <plugin>
          <groupId>de.mycompany.maven.plugins</groupId>
          <artifactId>maven-native2ascii-plugin</artifactId>
          <executions>
            <execution>
              <phase>process-classes</phase>
              <goals>
                <goal>resources</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
...

everything works fine... but I do not want to repeat these lines in every
POM...

Thanks in advance!

   Robert

-- 
View this message in context: 
http://www.nabble.com/Inheritance-tf2714737s177.html#a7569097
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to