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

Specifiying proxy to sign jars with maven with maven-antrun-plugin

I want to use the following maven-script to sign my jars for a webstart application: false org.apache.maven.plugins maven-antrun-plugin
MedMike
  • 43
  • 1
  • 7
0
votes
1 answer

Dependency library after ant task in Maven2

I have a system dependency on a local jar which is compiled by a maven ant execution task using maven-ant-run plugin. How can I make sure that the ant task is executed before executing the dependency task. I am using system scope for a relative path…
Lavixu
  • 1,348
  • 15
  • 20
0
votes
1 answer

Maven: same artifactID in shared plugin and profile build plugin

I have a maven pom.xml which will run some group of ant tasks. Some tasks are only for specific profile and some tasks for common for all profile. This is mine
arulraj.net
  • 4,579
  • 3
  • 36
  • 37
0
votes
1 answer

NullPointerException when running maven-antrun-plugin for an ant build.xml that has javac

I am trying to run a build.xml (ant) in my new pom.xml in the same project. However, I always get a NullPointerException no matter what I tried at compile build.xml:104(javac). The build succeeds with ant itself. Any insights on running build.xml…
0
votes
1 answer

Can maven-antrun-plugin generate a HTML report showing the exception errors?

I have a Maven Surefire report that generates 3 files: TESTS-TestSuites.xml - shows only passing tests. no info about fails or errors. TEST-me.qa.MyTest.xml - see below me.qa.MyTest.txt - file containing console output showing…
djangofan
  • 28,471
  • 61
  • 196
  • 289
0
votes
1 answer

How to chain commands in Ant?

How can I chain commands using maven ant-run-plugin? I want something simillar to this unix command chain: find . | grep .xml | myCommand
kofucii
  • 7,393
  • 12
  • 51
  • 79
0
votes
1 answer

maven + ant run local bash script on the remote host

I wonder if it is possible to run local bash script on the remote host? What I actually trying to do is to check via maven-antrun-plugin and sshexec target if folder exists on the server, then, upload artifact to this folder and do some stuff like…
mr.nothing
  • 5,141
  • 10
  • 53
  • 77
0
votes
1 answer

Maven: Result of Antrun is in target, but not in output of site-stage and site-deploy. Why?

I have configured the ant-run-plugin to run in the post-site phase. By the way, it transforms to findbugs-report. I find its result in my target/site-folder. Calling site-stage produces the entire multi-module site in an extra directory. There, my…
Hawk
  • 1
0
votes
2 answers

Maven profiles: maven-antrun-plugin & maven-war-plugin interaction

I have a Spring framework project with the following three files in src/main/webapp/WEB-INF: project.propterties project-servlet.xml project-security.xml I am trying to use maven profiles as follows to 'inject' the above mentioned files in the case…
kmansoor
  • 4,265
  • 9
  • 52
  • 95
0
votes
1 answer

Jenkins not running Catalina.bat via maven-antrun

I am trying to start Tomcat by using maven antrun plugin in a job in Jenkins. I know I can use cargo for the same but I can't use it. Reason being I want the Tomcat with the application running after the build is over. Here's the scenario - I have…
Soumya
  • 1,054
  • 2
  • 16
  • 31
0
votes
2 answers

Use Maven to Copy Files to WEB-INF Before WAR is Packaged

I have two servlet config files in my webapp, one for our normal environment (Heroku) and the other for WebLogic. I have a Maven profile for our WebLogic builds that should copy "servlet-context.xml.weblogic" to "servlet-context.xml". Everything…
pconrey
  • 5,805
  • 7
  • 29
  • 38
0
votes
0 answers

File corrupted after antrun

I'm having a problem with my pom file, I need filtering option to be on, but I want to exclude this option on mp3 files which are placed in resource folder. Right now after antrun command files are corrupted and unplayable. I've done something like…
iie
  • 501
  • 4
  • 8
  • 26
0
votes
1 answer

Maven: mavent--ant-run does not support attribute

Currently I'm working on a maven build script and my next issue is to copy source files into a target folder. I found this thread and it works fine unless I don't use the 'flattern' attribute. I know that the computer makes all things right, but I…
Reporter
  • 3,897
  • 5
  • 33
  • 47
0
votes
1 answer

how to stop maven-antrun-plugin from running tests

EDIT: Solved I had configured it twice in my pom.. I'm setting up a production-profile in maven. And to copy the correct production.properties-files and delete the standard ones, I'm using maven-antrun-plugin. But I dont want to run any tests. And…
user829237
  • 1,719
  • 8
  • 37
  • 61
-1
votes
1 answer

Maven plugin maven-antrun-plugin copy option does not overwrite

I have a problem with this maven plugin and I don't really know how to solve it. I am trying to copy some resources to "${basedir}/../server/a/base-store" to "${basedir}/../resources/store/base_certificate_store_prod/base-store" However I use…
Dragos Roban
  • 479
  • 2
  • 11
  • 20
1 2 3
14
15