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

Use exec-maven-plugin to execute shell script on Windows

I have a pom that uses the exec-maven-plugin to execute a shell script with three parameters. When running mvn clean install -X -e, it fails at that step with the error, [DEBUG] Toolchains are ignored, 'executable' parameter is set to…
liltitus27
  • 1,670
  • 5
  • 29
  • 46
11
votes
1 answer

How can I prevent tests from being run when using exec-maven-plugin

I am running JavaScript unit tests in a maven project using exec-maven-plugin org.codehaus.mojo exec-maven-plugin 1.3
Ruan Mendes
  • 90,375
  • 31
  • 153
  • 217
10
votes
3 answers

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

Three weeks ago I had finished work on a web application. Everything was running without problems. Now, three weeks later, having changed nothing(!!!), I wanted to run the application again but this time I got the following error message: An error…
steady_progress
  • 3,311
  • 10
  • 31
  • 62
10
votes
1 answer

assign output of exec-maven-plugin to variable

I want to use exec-maven-plugin to get git 'revision', so I'm using following configuration: org.codehaus.mojo exec-maven-plugin 1.2.1
Wojtek
  • 1,845
  • 1
  • 14
  • 33
9
votes
2 answers

How does maven decide when to use the target folder for classpath

I have a question regarding how maven calculates the classpath during building. Specifically, what controls when the "target/classes" is used and when the "jar" from a repository (local/remote) is used. I have a project on version 1.0.0-SNAPSHOT…
Alexandros
  • 2,097
  • 20
  • 27
8
votes
1 answer

How can I set a environment variables in Maven per run?

In my project, we've created a Maven module to get the specific JBoss AS and unpacked. Then all the test cases can be run under this Jboss AS as embedded container. We're using jboss-ejb3-embedded-standalone to call the embedded container, however,…
Edison
  • 101
  • 1
  • 1
  • 2
8
votes
1 answer

No plugin found for prefix 'exec' in the current project and in the plug in groups org.codehaus.mojo

I have read several questions with similar issue and the Help 1 page. Unfortunately, I am stuck. One possible reason could be caused by proxy but there is no such proxy here. Additionally, all maven projects in my PC have been successfully updated…
Jim C
  • 3,957
  • 25
  • 85
  • 162
8
votes
1 answer

Unbalanced quotes exception when executing Maven exec plugin in Bamboo plan

So I got this annoying exception in one of my Bamboo plans while I try to execute Maven exec plugin: Unbalanced quotes "-Dargument=value. The command I'm trying to run is: mvn exec:exec -Dexec.args="-Dargument=value" The same command works just…
vadim
  • 993
  • 13
  • 29
8
votes
3 answers

killAfter deprecated warning when running exec:java

I have noticed that I get this warning every time I run my exec:java command in MAVEN. [WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6. How can I get rid of it? I have been searching for it, but no…
Razican
  • 697
  • 2
  • 10
  • 16
7
votes
1 answer

How to set both VM Params and Program args using exec-maven-plugin?

I am using exec-maven-plugin to run java app. I need to pass both JVM params and program arguments. I am setting JVM params like this: exec-maven-plugin 1.6.0
7
votes
3 answers

How to display the output of the exec-maven-plugin instantaneously

I'm using Maven 3.1.1 and the exec-maven-plugin (1.3) in order to execute a bash script during a build job. The bash script produces output on stdout with echo and printf. I've noticed that the output of the script is not written to the maven…
beaker
  • 165
  • 1
  • 7
6
votes
3 answers

maven-exec-plugin throws exception for no apparent reason

I type the following in a Windows shell in the root of a Maven project that contains a class with a public static void main(String[] args) method that I'd like to run. mvn exec:java -Dexec.mainClass="com.spp.config.main.SqlGeneratorHarness"…
Chris Phillipson
  • 795
  • 1
  • 15
  • 34
6
votes
2 answers

Maven exec:java run executable plugin dependency jar results in NPE

I'm making a maven application that uses a sparql endpoint service. I'd like to have a maven goal to download the sparql endpoint and start the service but it seems that maven have some problems to configure the classpath. I'm using blazegraph and…
6
votes
2 answers

maven wsdl2java configuration not working properly

I am looking to execute wsdl2java via maven and have tried several different methods with no full success. The first way I was doing it: org.codehaus.mojo exec-maven-plugin
eisbaer
  • 328
  • 1
  • 3
  • 10
6
votes
1 answer

How to capture output of exec-maven-plugin?

I'm trying to use the exec-maven-plugin as a way to integrate a 3rd party Java API. I'm using the exec:java goal to call my java main class. I need to parse the output of the API, however I do not see anything specific in the plugin that allows…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
1
2
3
15 16