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
1
vote
0 answers

Running Spring application with exec-maven-plugin

I need to run a Spring based webservice using exec-maven-plugin. Whole setup is running fine using exec:java with below configuration : org.codehaus.mojo exec-maven-plugin
Lokesh
  • 7,810
  • 6
  • 48
  • 78
1
vote
1 answer

exec-maven-plugin equivalent / alternative

In Maven, we can use exec-maven-plugin to execute bash commands in the build. Which plugin of Central Repository can perform the same task? I ask it because I have to execute a bash command after another plugin that needs to be executed in the same…
Alessandro C
  • 3,310
  • 9
  • 46
  • 82
1
vote
0 answers

How to pass additional arguments from maven build to npm

I have a question connecting maven version 3.6, exec-maven-plugin version 1.6.0, npm version 6.13.4 Plugin definition in my pom.xml file look like this org.codehaus.mojo
Piotr Żak
  • 2,083
  • 6
  • 29
  • 42
1
vote
1 answer

java.io.IOException: Cannot run program "python" (in directory "D:\Doc\module\subject"): CreateProcess error=2,

enter image description hereI am trying to execute a simple python cmd command like C:\Users> python swaggerpythonfile.py < Documents/inputfile/swagger.yaml > Documents/outputfile/doc.html as a python script in a maven project. This command simpy…
jks
  • 129
  • 1
  • 4
  • 11
1
vote
0 answers

Custom (self defined) Properties not getting read in the pom file

We want to insert the current git commit hash in our MANIFEST.MF. Unfortunately, we aren´t allowed to use maven-git-commit-id-plugin, so we took the following approach: create a class that reads the commit hash and sets it in a system property run…
1
vote
1 answer

Maven build is successful although npm deployment has an error

I try to deploy a npm module via exec-maven-plugin. I use the nexus-npm tool from https://github.com/arkanjoms/nexus-npm. In my pom I execute it like this: Deploy module via nexus-npm exec
ochs.tobi
  • 3,214
  • 7
  • 31
  • 52
1
vote
0 answers

exec-maven-plugin 1.6.0 Could not find or load main class

I want to execute a java program during my maven build, so I have in my POM: org.codehaus.mojo exec-maven-plugin java
Yashu
  • 485
  • 1
  • 10
  • 22
1
vote
1 answer

How to define the condition of Maven fail?

I use a Maven plugin called exec-maven-plugin to execute an external LDAP script called ldapmodify. However, even this script is executed successfully, Maven install fails. Here is the output when I run Maven install: INFO] ---…
zero_yu
  • 493
  • 5
  • 15
1
vote
0 answers

Maven: how to exec a pom twice with different profiles?

I want to make a build with Maven within a pom which can be built with two different profiles. In other words, my task is to force the build in order that the build produces two different builds in the target folder as like I will execute "maven…
Alessandro C
  • 3,310
  • 9
  • 46
  • 82
1
vote
1 answer

exec-maven-plugin cannot correctly use arguments

I try to execute a shell script(actually it is ldapmodify of OpenLDAP) with some arguments. This is how I did in pom.xml: In Maven Profile I defined some values Linux-OpenLDAP
zero_yu
  • 493
  • 5
  • 15
1
vote
1 answer

couldn't execute maven multi module project using exec-maven-plugin

I've a multi module maven project here . The parent project has 3 modules common, with-paranamer, without-paranamer. The with-paranamer and without-paranamer modules are independent of each other and both are depend on common module. In…
user51
  • 8,843
  • 21
  • 79
  • 158
1
vote
0 answers

Execute a java program via maven providing jvm and program arguments and system properties in the command line

My question is quite basic and I am a bit surprised I could not easily find an answer by googling or from maven-exec-plugin documentation. I need to execute my java program in my maven project, providing both jvm arguments, system properties, and…
Alexander
  • 2,761
  • 1
  • 28
  • 33
1
vote
2 answers

Exec Maven Plugin with ClassNotFoundException

I have a multi-module(model and service module) maven project: model |_____ABCEntity.java service |_____pom.xml model code-generation
Yashu
  • 485
  • 1
  • 10
  • 22
1
vote
1 answer

Maven: How to package and deploy output files generated by main() method execution?

I have a Maven project that uses the exec-maven-plugin to execute a class with a main method, and this generates an output file in the target directory. The configuration looks like this: org.codehaus.mojo
Phani K
  • 1,133
  • 2
  • 11
  • 14
1
vote
0 answers

How to include the generation of html files from raml files during the building of a maven project

I am working on a Java REST application, and I have raml files that document the API of the endpoints. The application is built using maven. Until now we have been manually generating html files from the raml files, but we would like to incorporate…
user3441604
  • 582
  • 7
  • 23