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
1 answer

exec-maven-plugin skip multiple conditions

I need to skip an execution when any of 2 conditions occurs. Something like this: mvn clean test -DconditionA=false -DconditionB=false This is my example pom:
Doe Ring
  • 21
  • 3
2
votes
2 answers

Run batch script as admin during Maven build

I'm trying to set up a build process during which, a Windows service has to be started and stopped. I tried doing that by using the exec-maven-plugin: org.codehaus.mojo exec-maven-plugin
André Stannek
  • 7,773
  • 31
  • 52
2
votes
0 answers

How do I invoke the exec-maven-plugin's java goal with the mainClass parameter from the command line?

The Exec Maven Plugin Documentation states for the java goal that I can provide the main class parameter like this: mvn exec:java -Dexec.mainClass="com.my.MainClass" However when I invoke the goal this way I always get this error: Failed to execute…
codemusings
  • 117
  • 1
  • 5
2
votes
0 answers

Build Failure: exec-maven-plugin Invacationexception

I've been searching all over the net for some solutions for my problem. We have created a maven program that sends invoices to an other company. The biggest mind fuck of our problem is that it did work before. Even we didn't change anything. At…
2
votes
1 answer

How to configure exec-maven-plugin classpath

I want to execute the class file (or jar file) located in the same folder with pom.xml, which contains main method. Here is my pom.xml http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 tuomas sleep pom 1.0-SNAPSHOT
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225
2
votes
1 answer

set systemProperty in exec-maven-plugin does not work

Here is my pom.xml file: 4.0.0 com.test test 1.0-SNAPSHOT my_proj
Tran Ngu Dang
  • 2,540
  • 6
  • 29
  • 38
2
votes
1 answer

Maven java classes generated in "target" folder are not compiled

I have a plugin which generates lots of java files (i.e FileA.java, FileB.java) under target folder. I'm using "exec-maven-plugin" to execute my plugin as follows
Waqas Ikram
  • 71
  • 2
  • 6
2
votes
3 answers

extract out one file from zip in maven

I have an zip file under a folder named output. The zip contains 3 files inside. Project root/ -output/ -my.zip pom.xml my.zip (contains names.txt, schools.txt, teachers.txt). How can I extract out only names.txt from zip & put it…
user842225
  • 5,445
  • 15
  • 69
  • 119
2
votes
1 answer

How to install Bower on OpenShift with an Action Hook?

I use a WildFly application server in a Java environment on OpenShift. In my pom.xml file I have specified to run bower install (with the exec-maven-plugin). Running bower install with exec-maven-plugin requires the presence of Bower on the…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
2
votes
1 answer

Trouble running exec-maven-plugin in a multi-module Maven project

I have a multi-module Maven project with a master pom and numerous sub-directories each containing projects (and pom.xml files) which refer to the master pom. In projectA contains an invocation of exec-maven-plugin, which executes the java goal and…
2
votes
3 answers

Maven exec-maven-plugin and maven-resources-plugin not running, not sure why

I have added a couple of new plugins to a maven pom.xml file. I have not been able to figure out why exec-maven-plugin and maven-resources-plugin they aren't running when I issue the command: mvn install. The other maven plugins do execute as…
bguiz
  • 27,371
  • 47
  • 154
  • 243
2
votes
2 answers

LensKit: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli)

I am building a maven project in Netbeans using LensKit recommender, but when I try to run a groovy file I get the following error: [exec:exec] Exception in thread "main" groovy.lang.MissingPropertyException: No such property: config for class:…
Omen
  • 43
  • 1
  • 2
  • 9
2
votes
1 answer

Build failure with Exec Maven plugin running a thor script

I have a simple thor script that copies resources to target directory from a submodule in my project. I have configured Exec Maven plugin to run the script at compile phase. org.codehaus.mojo
anssias
  • 1,994
  • 2
  • 16
  • 21
2
votes
0 answers

process started with exec-maven-plugin blocks mvn verify

I'm starting a server with exec-maven-plugin like this: org.codehaus.mojo exec-maven-plugin 1.2.1
user2368505
  • 416
  • 3
  • 16
2
votes
2 answers

Failed to execute goal org.codehaus.mojo exec-maven-plugin

I have an issue that I spend 5 days without resolving it: When executing mvn exec:java it fails to correctly parse the configuration arguments, throwing the following error: "Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java…
Sana Baccar
  • 35
  • 1
  • 1
  • 7