Questions tagged [maven-antrun-plugin]

This plugin provides the ability to run Ant tasks from within Maven. You can even embed your Ant scripts in the POM!

Introduction

This plugin provides the ability to run Ant tasks from within Maven. You can even embed your Ant scripts in the POM!

It is not the intention of this plugin to provide a means of polluting the POM, so it's encouraged to move all your Ant tasks to a build.xml file and just call it from the POM using Ant's task.

One of the main purposes of this plugin is to facilitate the migration from Ant based projects to Maven. Some projects may not currently be able to migrate because they depend on custom build functionality that Maven doesn't provide by default.

Official site : http://maven.apache.org/plugins/maven-antrun-plugin/

Goals Overview

antrun:run runs Ant tasks for Maven.

215 questions
3
votes
1 answer

Maven multiple modules - post-packaging step

I have a Maven project that consists of several modules. I have a single POM file that I use to invoke the build of all dependent modules. What I want to do is to copy a bunch of files to a single location and zip them up once, after the package…
Mick Sear
  • 1,549
  • 15
  • 25
3
votes
2 answers

Gracefully stopping a java process started by maven-antrun-plugin

This question is a result of an answer to this question from yesterday run a java application and a web application in a single maven build within a reactor project So as answered in the above question I now have a maven-antrun-plugin that forks a…
Gautam
  • 1,030
  • 13
  • 37
3
votes
1 answer

Use maven-antrun-plugin to unzip multiple files with regex definition for the file

I am trying to use the maven-antrun-plugin in order to unzip a file. How can this file be defined by using a regular expression? E.g. unzip all files that match: sample[0-9].zip. org.apache.maven.plugins
Georgios Stathis
  • 533
  • 1
  • 6
  • 21
3
votes
1 answer

How to create a folder if not exist in Maven?

I am writing pom.xml newly and i am trying to Delete a folder already existing and create a new folder.Is there a way to do this? I am looking something like this: