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
0
votes
1 answer

Why won't maven-antrun-plugin run?

I'm having trouble getting the antrun plugin to run. I have this configuration in my pom: ... ... ...
David
  • 14,569
  • 34
  • 78
  • 107
0
votes
1 answer

What is a better way for checking for the existence of an environment variable in the Maven antrun plugin?

I’m using Maven 3.2.3. I have this for my ant run plugin … org.apache.maven.plugins
Dave A
  • 2,780
  • 9
  • 41
  • 60
0
votes
0 answers

why surefire plugin is skipped in the given maven profile?

I was reading through this profile configuration. test maven-antrun-plugin
brain storm
  • 30,124
  • 69
  • 225
  • 393
0
votes
3 answers

Best/easiest way to configure classpath in Maven antrun task?

In order to automate some FitNesse tests in our system I need to essentially do the following: Build everything in Maven. Start a server process using the built code. Run FitNesse tests against the server. This is all fine, except for starting the…
BarrySW19
  • 3,759
  • 12
  • 26
0
votes
1 answer

maven-antrun-plugin generating emty ddl file

I would like to generate schema sql script with maven. Here is my persistance file :
Sofiane
  • 908
  • 4
  • 19
  • 45
0
votes
0 answers

Maven, when does Maven create target directory?

I am using maven on a project that has no java code, just a few files that need versioning and artifactory deployment. My directory looks like $ ll drwxr-xr-x 12 david staff 408B Mar 20 13:41 . drwxr-xr-x 46 david staff 1.5K Mar 20 10:33…
David Williams
  • 8,388
  • 23
  • 83
  • 171
0
votes
0 answers

Maven AntRUn plugin propertiess

I currently have a Jenkins Ant job that I'm trying to migrate to Maven. I'm usnig the antrun plugin which will allow me to call the existing ant script - and I'm happy with that. The only issue I have is that it looks like antrun is unable to read…
dazednconfused
  • 141
  • 1
  • 5
  • 16
0
votes
1 answer

trying to php lint check with maven antrun plugin

Looking for some help, trying to find a way to make Maven antrun plugin interate over ALL files in my php module, executing php -l (lint check) on them all. If I use failonerror property set to true, it will fail as soon as it hits one bad file. If…
Nevyn
  • 93
  • 9
0
votes
1 answer

Maven-antrun-plugin failure: Could not load definitions from resource project.properties. It could not be found

Context: I am trying to build a web.xml during compilation. I Use ant scripts to perform this task. The ant script uses properties defined in a properties file to complete this task. The ant script is called using Maven-ant-plugin. However, when I…
0
votes
1 answer

Using maven ant plugin in javafx application, How to add Dependencies in javaFX jar. Still facing class not found exception

I using this guide added my dependencies to main jar JavaFX jar with dependencies bundled i am facing dependencies issue which causing Class not found exception. My Pom is exactly like mentioned in above link. i use dependencies plugin to copy…
Mubasher
  • 943
  • 1
  • 13
  • 36
0
votes
2 answers

Zipping sub folders into separate zip files

I have a directory structure like this: Parent |->A |->B |->* and I need to zip it like so: Dest |->A.zip |->B.zip |->*.zip Where the * means that I don't know what are the names of the sub-folders. How can I do…
sagioto
  • 251
  • 1
  • 5
  • 16
0
votes
1 answer

How to display maven properties in Eclipse?

How to display maven properties in Eclipse? The pom below, based on antrun plugin is not work:
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
0 answers

OutOfMemory - PermGen in Maven AntRun

I have a custom ant task being called by Maven AntRun, but since it has a lot of defined executions, the classloader seems to be loading up a lot and throwing OutOfMemory - PermGen space. How can I better define where to import the classes to this…
Diogo
  • 115
  • 7
0
votes
1 answer

How to read warnings coming from system.out.println during build with maven

I'm using maven-ant-run plugin to run jar batch through maven, it works cool, what I need is to be able to read system.out.println strings in maven build report. org.apache.maven.plugins
Mustafa Güven
  • 15,526
  • 11
  • 63
  • 83
0
votes
2 answers

Maven: build tasks (updating/copying files etc) outside lifecycle?

What is the popular approach to managing build tasks when using Maven? I'm currently using Maven for dependency management, but I need to define several "tasks" that can be executed anytime independent of the lifecycle similar to what Ant or Rake…
johnrl
  • 583
  • 6
  • 17