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
2
votes
3 answers

Avoid javadoc and sources downloading, when using Maven ant Tasks

I'm developing with Maven Ant Tasks support. When asking the repository to download desired libraries, it also downloads javadoc and source for each library. Is there a way to only download library jars? Actual build.xml:
Esteve Camps
  • 1,113
  • 1
  • 10
  • 20
2
votes
1 answer

Unpack jar into a folder with same name as the file

I am using maven-antrun-plugin to unpack a jar file into a folder. This jar file is generated in every build and has a variant TIMESTAMP (as seen in the following snippet). How can I unpack the jar file into folder that has the same name as the jar…
Georgios Stathis
  • 533
  • 1
  • 6
  • 21
2
votes
0 answers

Maven ant task wildcard exclusion does not work

I just started using maven ant task, and one issue I found today was, when the pom contains wildward exclusion, seems the artifacts won’t be excluded. My script snippet below: Ant:
foolhunger
  • 345
  • 2
  • 12
2
votes
1 answer

How to install/deploy a sources jar with maven ant tasks

I had a hard time understanding how to install or deploy a jar file with its accompanying sources (or any additional classifier for that matter). The documentation wasn't clear to me and left me to do some trial and error.
Noremac
  • 3,445
  • 5
  • 34
  • 62
2
votes
1 answer

Maven Integration for Android Development

How can we used Maven for android? I'm using Lint tool in android for programming error solution. Is it Maven same as this tool or provide more features over android? Because i'm using Maven tool in Java programming for different kinds of testing…
1
vote
1 answer

In Maven how can I generate a classpath file that includes the artifact I'm building?

I'm using maven-dependency-plugin:build-classpath to build a classpath file. To support a legacy deployment, I need this file to include the artifact I'm building, in addition to the usual set of dependency JARs. Current classpath…
Chris Beach
  • 4,302
  • 2
  • 31
  • 50
1
vote
1 answer

How to remove directories from final build zip archive using maven 3

When the build is ready i have p2 folder in all build archives for different platforms.As i understand it's imposible to exclude p2 directory from archives on building stage. So I try pack archive myself instead of using archive-products…
Volad
  • 75
  • 13
1
vote
3 answers

Maven Ant Task tries to open pom as zip and fails

I am trying to run an Maven Ant Task with plugin version 2.1.3 and for some reason running into this error: [javac] Compiling 101 source files to /home/raido/Workspace2/foobar/classes [javac] error: error reading…
Raidok
  • 774
  • 8
  • 19
1
vote
4 answers

Java - Ant build and deploy to JBoss fails due to UnsupportedClassVersionError

I am trying to build and deploy a project to the JBoss deploy folder with the bundeled Maven-Ant script from Eclipse but it always ends up with JBoss logging the following: nested throwable: (java.lang.UnsupportedClassVersionError: Bad version…
Raidok
  • 774
  • 8
  • 19
1
vote
1 answer

How can I build Maven dependencies from Ant Java classpath?

Using Maven Ant Tasks, I see lots of examples that build Ant classpath from Maven dependencies, but what about the other way round? I have a carefully tuned Ant project that builds the Java task classpath from all the jars in my lib directory. How…
lyates
  • 167
  • 1
  • 3
  • 9
1
vote
1 answer

Does the ant task javac2 work with openjdk 16?

I am upgrading an app from Oracle Java 8 to openjdk Java 16 and can't get the ant task javac2 to work. I am getting the error An Ant BuildException has occured: Forms instrumentation failed and the reason Class not found:…
1
vote
1 answer

Maven fails to download dependencies

[artifact:dependencies] Transferring 20K from abc [artifact:dependencies] Downloading: javax/xml/bind/jaxb-api-parent/2.3.1/jaxb-api-parent-2.3.1.pom from repository abc at http://example.com:8081/repository/public/ [artifact:dependencies]…
dj308
  • 47
  • 3
  • 6
1
vote
2 answers

Ant task to update xml file when having list of tags

I have an XML file with a set of context parameters. deployment.type main
1
vote
1 answer

Maven pom.xml in ant script

This is part of my build.xml. I am triggering mvn build from ant script and then renaming the build and copying it to specific location. There is a concept of profile in maven. Can you help me out how to provide maven profile in the below…
Bhawna Joshi
  • 190
  • 2
  • 12
1
vote
0 answers

Can't copy system scope dependency using Maven Ant task

I am trying to copy all the dependent jars mentioned in my pom.xml using an ant script. I am able to copy all the dependencies except for dependency with scope 'system' in my pom.xml My pom.xml looks like this
samby
  • 11
  • 2