Questions tagged [exec-maven-plugin]

Use this tag for questions specifically related to the usage of the Exec Maven Plugin, which allows to execute arbitrary programs or other Java programs during a Maven build.

The plugin offers two goals: exec:exec and exec:java. The first one can be used to run arbitrary programs. The second to run other Java programs, however the latter does not spawn a new process.

More Info

229 questions
2
votes
2 answers

Running main classes from a deployed artifact with maven

I don't get it. I've set up my pom.xml to use the Maven exec plugin so I can execute some of the classes in my project with the correct classpath, -D defines and -javaagent. So from a shell with the classes built in ./target/classes etc.. I can…
Tim P
  • 948
  • 1
  • 12
  • 19
1
vote
1 answer

Handling jQuery + jQuery UI resources with maven

This is my current folder structure: . |-- pom.xml `-- src `-- main |-- java | `-- ... |-- resources | `-- messages | `-- messages.properties | `-- ... | `--…
dtrunk
  • 4,685
  • 17
  • 65
  • 109
1
vote
1 answer

Maven How to execute another command incase of some other commands failure

Here I have problem in maven something like that ..... ////// here the execution I try to make!
1
vote
0 answers

What am I doing wrong with the maven-release-plugin and exec-maven-plugin?

I would like to do something DURING the release:prepare step BEFORE the prepare release commit is made, such that my changes are included in the prepare release commit. It is a multi-module project with a parent pom. I added the following to the…
1
vote
3 answers

How to run java class in JAR file in maven target directory?

I would like to run my Izpack installer after maven build, but I am getting following output after executing "mvn test": [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building…
mkuzela
  • 87
  • 1
  • 5
1
vote
1 answer

Maven exec plugin with toolchain can not enable preview features

I want to taste the newest Java 19 feature, also do not change the default Java Home( Java 17). So I create a toolchains.xml in the ~/.m2, and define a jdk type toolchain like this.