Questions tagged [maven-ant-tasks]

The Mavent Ant Tasks allow several of Maven's artifact handling features to be used from within an Ant build. Dependency management - including transitive dependencies, scope recognition and SNAPSHOT handling Artifact deployment - deployment to a Maven repository (file integrated, other with extensions) POM processing - for reading and writing a Maven 2 pom.xml file

The Mavent Ant Tasks allow several of Maven's artifact handling features to be used from within an Ant build. These include:

  • Dependency management - including transitive dependencies, scope recognition and SNAPSHOT handling
  • Artifact deployment - deployment to a Maven repository (file integrated, other with extensions)
  • POM processing - for reading and writing a Maven 2 pom.xml file

Official site : http://maven.apache.org/ant-tasks/index.html

56 questions
8
votes
3 answers

How can I deploy a zip file created with the maven-antrun-plugin?

I'm using the maven-antrun-plugin to do a bunch of work with Ant, which ultimately results in a zip file. I'd like to deploy the zip file to our maven server (Artifactory). The maven-antrun-portion works as intended and successfully creates the…
Justin Garrick
  • 14,767
  • 7
  • 41
  • 66
8
votes
1 answer

Change maven properties using Ant task

I have set a maven property in the pom.xml. someValue Now I have an ant task doing the following:
avijendr
  • 3,958
  • 2
  • 31
  • 46
7
votes
1 answer

artifact:install pushes the super-pom instead of the POM I define

I have a POM defined in the Ant file, the build works correctly, pulling the correct artifacts from the Repository, however, the artifact:install tasks pushes to 'super-pom' instead of the pom I specify I use the following POM file
GKelly
  • 3,835
  • 4
  • 38
  • 45
6
votes
4 answers

Using Maven ant task to install jar to local repository

At the end of my ant build id like it to call the equivalent of the command line call mvn install:install-file -Dfile=my.jar -DgroupId=com.company.project -DartifactId=my_project -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true so that it will add…
Rob McFeely
  • 2,823
  • 8
  • 33
  • 50
5
votes
2 answers

Migrating from Maven Ant Task to Maven Artifact Resolver Ant Tasks

Last week our project stopped working because maven-ant-task seems to be calling maven central with http instead of https and now it's enforced, so it returns a 501. We saw that Apache released a new library Maven Artifact Resolver Ant Tasks, so…
Leo Lozes
  • 1,358
  • 1
  • 15
  • 33
5
votes
1 answer

SQL Ant Task: WARN: Establishing SSL connection without server's identity verification is not recommended

I'm running an ant task doing some SQL on a MySQL-5.7 server and I don't want to use SSL. I'm currently using mysql-connector-java-5.1.42.jar to connect to a MySQL-5.7 (v5.7.18-0ubuntu0.16.04.1) My SQL properties look like this
Robert Heine
  • 1,820
  • 4
  • 29
  • 61
4
votes
2 answers

maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

I'm using an ant build.xml that generates classes and compiles them with the tools.jar from the JDK. I am using MAVEN 2.2.1 version. JDK 1.5 to execute MAVEN. As maven 2.2.1 version supports higher then JDK 1.5 only so I have to use it. This…
user886614
  • 375
  • 1
  • 4
  • 14
4
votes
2 answers

Maven ant tasks deploying to public nexus repository instead of the url specified

I am stumped. I am using ant and maven-ant-tasks to build and deploy snapshot artifacts (non-maven) to a remote nexus repository. The build process specifies the url of the repository. This is the ant target that is run:
Noremac
  • 3,445
  • 5
  • 34
  • 62
3
votes
1 answer

What version of ANT is being used by the antrun plugin

What version of ANT is being used by the antrun plugin and how do I control it to use a certain version of ANT distribution. Does this plugin actually pick up the ANT from the local distribution?
user339108
  • 12,613
  • 33
  • 81
  • 112
3
votes
1 answer

Get classpath for integration tests of multi-module project with maven-ant-task

I have a multi-module project built with maven. I need to run the project's integration tests daily. It is not possible to do this during the standard maven build cycle, because on runtime the integration tests defined within the modules have…
dkateros
  • 1,574
  • 10
  • 14
2
votes
1 answer

Remove maven version labels with ant

In my ant build, I am using maven-ant-tasks to pull dependencies for my project. The build is relatively complicated and moves/manipulates different artifacts in different places. To make my life easier, I want to remove the maven version labels…
jeff
  • 4,325
  • 16
  • 27
2
votes
1 answer

Issue with replacing multiple lines in xml during maven build

I need to replace mutliple lines in .wsdd file in war generated after my maven build. I am using antrun-maven-plugin and ant's replace task for this purpose. Below is the snippet from pom.xml:
vb.stack
  • 391
  • 3
  • 10
2
votes
1 answer

Maven maven-antrun-plugin skip parent task

I've a parent pom containing a maven ant task that needs to be executed by all the children : org.apache.maven.plugins maven-antrun-plugin
antoine
  • 93
  • 7
2
votes
0 answers

Migrating from maven-ant-tasks to aether-ant-tasks

As part of packaging software for the Fedora project, I'd like to update an upstream ant build that uses maven-ant-tasks for dependency resolution to use aether-ant-tasks. These two libraries are frustratingly close to one another, but they're not…
willb
  • 293
  • 1
  • 11
2
votes
2 answers

Permission (java.lang.RuntimePermission exitVM) was not granted while executing jetty stop with Maven Ant Task

I get the following ant error in console while running jetty:stop command using mvn tasks, [artifact:mvn] org.apache.tools.ant.ExitException: Permission (java.lang.RuntimePermission exitVM) was not granted. [artifact:mvn] at…
Lucky
  • 16,787
  • 19
  • 117
  • 151
1
2 3 4