Maven, ant plugin

Is it possible to attach ant execution to a specific plugin / target? (I know I am losing the declarative aspect of maven if I do this.)

0


a source to share


1 answer


Check the Maven AntRun plugin , this is exactly what you are looking for

Here is an example from the home page



<project>
  ...
  <build>
    <plugins>
      ...
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <phase> <!-- a lifecycle phase --> </phase>
            <configuration>

              <!-- ANT TASKS HERE -->

            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

      

+4


a source







All Articles