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
0 answers

command for maven deploy profiles at install phase

I have the following deploy profiles in my POM deployToProdOnRelease Maven.project.branch release
user_mda
  • 18,148
  • 27
  • 82
  • 145
0
votes
2 answers

SCP task not found (ant-run through maven)

I've been trying to deploy a packaged jar onto some raspberry pi connected to the lan with a static ip of 192.168.0.101 through maven. Here is the important part of my pom.xml : ... SNIP ...
Jue Debutat
  • 367
  • 1
  • 3
  • 12
0
votes
0 answers

The value of . (dot) in the Maven Antrun plugin

In Ant, the . can be used to reference a base directory. I have a legacy project with one Ant file in the /build directory calling an Ant file in the /src directory (in this post I use /for relative directories to the project directory). Now when I…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
0
votes
1 answer

Run antrun plugin before suit tests of testng in maven build

When I run the build of my project, before running the tests, I need to download and unzip the chromedriver. org.seleniumhq.selenium selenium-java
0
votes
2 answers

What does "echo" mean when it comes to using Maven?

I'm currently learning how to use Maven and have encountered a term called "echo". I was just wondering what it actually means? There are few important concepts related to Maven Lifecycles, which are worth to mention: 1) When a phase is called…
Thor
  • 9,638
  • 15
  • 62
  • 137
0
votes
1 answer

maven post build copy files

I am currently working with a specific project structure. All the jar files inside project\WEB-INF\lib which is prepared to create a WAR in target folder should be copied into project\lib Can we run such script either using maven-antrun or…
Dickens A S
  • 3,824
  • 2
  • 22
  • 45
0
votes
1 answer

Build success info is not showing after server startup

I started my ant-target(tomcat-start) from maven...server is started...war is also deployed. But it is not showing build success after server-startup....it is showing like this... [java] touko 25, 2016 9:07:37 AP.…
elee
  • 43
  • 1
  • 5
0
votes
1 answer

maven ant run plugin - killing process that was spawned

Can somebody tell me if it is possible to spawn a process and then kill that process when integration tests have finished running? I am currently using the ant run plugin to start a grunt connect server and I am using cargo to deploy my rest app to…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
0
votes
0 answers

maven, maven-antrun-plugin, parametrization via properties

I'm building maven projects which all need to download, unzip and move several files during the build process. Therefore I'm using an ant script run via maven-antrun-plugin. As this workflow needs to be executed in multiple projects, I would like to…
qqilihq
  • 10,794
  • 7
  • 48
  • 89
0
votes
2 answers

ant war plugin trying to exclude folders

Hi I am using ant war plugin and trying to exclude a folder from teh war. however this is not being excluded. Here is the structure XYZ src main webapp web-inf web.xml …
looneytunes
  • 741
  • 4
  • 16
  • 35
0
votes
0 answers