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

Problem translating java command to maven profile

Using mvn and the maven-assembly-plugin, I create a .jar with dependencies and run it like this: java -cp ../target/module-jar-with-dependencies.jar module.Launcher --project=example --network=toy_ags_network.sif I wanted to create a mvn profile…
John
  • 359
  • 4
  • 19
0
votes
1 answer

Maven(-exec-plugin) parses the * (asterisk) symbol

I'd like to use the exec-maven-plugin to execute some NPM based tasks. I had a problem, where my arguments were not passed correctly, so I tried using a batch file, which outputs the passed arguments, as a debug. I came to the conclusion, that…
László Stahorszki
  • 1,102
  • 7
  • 23
0
votes
1 answer

`mvn clean package` is executing my project main

I have this in pom.xml:
user5047085
0
votes
1 answer

Why is maven throwing an error in exec-maven-plugin for a specific dump

I am using the exec-maven-plugin and facing a very weird problem. I have the following code org.codehaus.mojo exec-maven-plugin 1.5.0
Snake
  • 14,228
  • 27
  • 117
  • 250
0
votes
2 answers

Want to compile Inno Setup (.iss file) with Maven Plugin Exec

I have a Question about the Exec Maven Plugin. I want to execute my setup.iss file (generated with Inno Setup) with the exec maven plugin. One question: Should I define a path for my file in my pom or in which destination the setup.iss has to be put…
0
votes
1 answer

Shared Maven plugin dependency resolved differently due to Tycho 'repackaging', resulting in SecurityException

In my Maven/Tycho build, I have a exec-maven-plugin that fails with a SecurityException caused by mismatching signer info in the org.eclipse.emf.common package. The exec-maven-plugin execution depends on two artifacts (actually more, but I think…
Balz Guenat
  • 1,552
  • 2
  • 15
  • 35
0
votes
1 answer

exec-maven-plugin cannot run "mvn" command on Windows machine

I have a Spring Boot 2 project which is a ReST API, and I am using Spring Rest. I am using 2 plugins to generate an SDK other projects to import to call my API. The first plugin is com.github.kongchen:swagger-maven-plugin:3.17 to generate the…
Nephthys76
  • 615
  • 2
  • 8
  • 23
0
votes
0 answers

Maven exec plugin calling bash cannot pass arguments correctly

I have a build in TeamCity that runs bash using exec-maven-plugin and it runs a script and should take 4 arguments, 2 of them I provide from pom and 2 should come from TeamCity environment. I am using following command line parameters in TeamCity…
Viktor Stolbin
  • 2,899
  • 4
  • 32
  • 53
0
votes
2 answers

Run multiple classes using Maven

I have a package with several classes (each one encapsulating an executable program, i.e. with a main() method), i.e.: com.myorg.examples.classA com.myorg.examples.classB etc. All the classes belong to the same package (com.myorg.examples). I know…
fgalan
  • 11,732
  • 9
  • 46
  • 89
0
votes
0 answers

Run Maven exec-maven-plugin with an option include dependencies with provided scope like Intellij

I would like to run a Main class with exec-maven-plugin with an option like "include dependencies with 'provided' scope" from Intellij Idea. As I run the code with exec-maven-plugin I receive a lot of classNotFoundException and…
0
votes
1 answer

Maven Exec plugin Xbootclasspath failed

I am using an instrumented JRE environment with Xbootclasspath to specify the path of a library the JRE used. Here is my pom.xml example
Qoros
  • 493
  • 7
  • 16
0
votes
1 answer

exec-maven-plugin does not run shell script in jenkins

hi i try to run a script in my source with the maven exec plugin It builds and runs just fine on my local machine but on jenkins it does not. this is the plugin part exec-maven-plugin
Xtroce
  • 1,749
  • 3
  • 19
  • 43
0
votes
0 answers

exec-maven-plugin with 2 executions does not work

I have the maven code below under the build:plugins tag. It is supposed to run two different executions of the avro tools. One to create the schema and another to generate java source. It does not matter what I do it only executes one time. I tried…
Fabio
  • 555
  • 3
  • 9
  • 24
0
votes
0 answers

Component Lifecycle methods are not invoking when calling index.html in React js

i have integrated a node app into existing Spring MVC project using exec-maven-frontend plugin and calling index.html from dist folder using ajax call, call goes inside and runs my sagas but does not invoke component life cycle methods of react…
sri_sri
  • 3
  • 2
0
votes
1 answer

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project :

When I build a jar file using maven build and try running it from command line. I am getting this error. java.lang.ClassNotFoundException: at java.net.URLClassLoader.findClass (URLClassLoader.java:381) at…
Rohith Joseph
  • 603
  • 1
  • 5
  • 17