217 questions
0 votes
1 answer
73 views
Run maven plugin for root directory in multi-module java project
I have a maven based multi-module Java project. The root directory consists of various sub-modules as well as other directories which holds scripts, configurations and documentations files. There are ...
0 votes
0 answers
56 views
How to execute a plugin `execution` only for a kind of operating system?
Context: I have a pom.xml with following profiles structure: <profiles> <profile> <id>my-profile</id> <activation> <property> ...
0 votes
1 answer
168 views
package org.apache.tools.ant.util does not exist
I am trying to wrap an Ant Prjoect in Maven using the maven-antrun-plugin. This is my Plugin config <plugin> <groupId>org.apache.maven.plugins</groupId> <...
1 vote
2 answers
228 views
how to source a file in maven
I have a shell script that I want maven to source. I specifically want maven to source the file (source run.sh) rather than just executing it (./run.sh) I have tried 2 different approaches with 2 ...
0 votes
0 answers
55 views
antrun plugin seems to be parsing if conditions in parallel which ends up into a bad build.xml file
I am using Apache Maven 3.8.4 with Java version: 11.0.5 and I have an execution of org.apache.maven.plugins:maven-antrun-plugin:1.7 that is working fine, to produce a MANIFEST.mf file in the target ...
1 vote
1 answer
493 views
Jenkins plugin repo fails to build in ci.jenkins.io but builds locally
The failed pipeline logs says: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (createTempDir) on project machine-learning: You are using 'tasks' which has been ...
0 votes
0 answers
150 views
can the maven maven-antrun-plugin plugin also be run similar to maven-install-plugin
Please refer to Plugin Documentation. When using the antrun plugin in Maven, it looks like I am forced to define a plugin block in build/plugins. Also we need to define executions. In the example ...
0 votes
0 answers
79 views
Docker cp maven package into running container by maven
For local development I'd like to copy a maven war package into a docker container right after mvn package has created the package. How can I accomplish this? My workflow as of right now is with a ...
4 votes
2 answers
426 views
Maven antrun move not deleting source file
Developing on Windows 10 I have a Java project in Maven that has a Linux "launcher" shell script for the FooBar utility stored in the repository at src/bin/foobar.sh. It uses resource ...
0 votes
0 answers
164 views
Running ant task in maven manually after another plugin executes
I want to be able to run detekt with --auto-correct as a maven task not tied to a specific phase, e.g. during local development to format source files. I created an execution inside maven-antrun-...
2 votes
0 answers
4k views
An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "npm" in directory
Am trying to run the below maven command in mnet module, but am facing the below-mentioned error. mvn clean install -Dmaven.test.skip=true [ERROR] Failed to execute goal org.apache.maven.plugins:maven-...
4 votes
0 answers
1k views
How to Enable Verbose in Maven Ant Run Plugin. (Maven)
How do I enable verbose in maven-ant-run plugin. Currently I have my execution as this. But do not know, where to set the verbose flag. <executions> <execution> <id>...
0 votes
0 answers
821 views
mvn install running before package
So I have a parent maven project with a few child modules. All child projects generate jars and have dependencies. As part of the package phase, following are done Compiled jars are copied to a lib ...
0 votes
1 answer
350 views
Jenkins Maven - Ant BuildException - task.properties default file
I'm having a problem with the maven antrun plugin. I can compile my multi-project tier pom.xml with any out-of-the-box maven, with a custom settings (added private nexus repository). When I try to ...
1 vote
1 answer
207 views
Is it possible to run a plugin in between two executions of another plugin?
For explanation purposes, assume I would like to: copy project artifact jar (maven-antrun-plugin) copy dependencies (maven-dependency-plugin) compile installer (maven-antrun-plugin) Unfortunately ...