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

Execute JAR of dependent artifact in Maven

I'm working on a multi-module Maven project which looks like this: Parent-project (pom) +- Module1 (executable-jar) +- Module2 (executable-jar) +- Module3 (jar) +- ... +- Distribution (pom) The Distribution module lists dependencies on Module1,…
samw
  • 79
  • 1
  • 7
1
vote
2 answers

exec-maven-plugin cannot be started before compile phase

I want to write addtional texts to the Java resource files (combine two .java files to one). And I write a python script to do so. I also want to automate the steps (combines files, compile, package) using Maven. I am a newbie to Maven, I found…
Xiao
  • 12,235
  • 2
  • 29
  • 36
1
vote
1 answer

Maven maven-exec-plugin execution before zip packaging

I'm building a Maven+Tycho Eclipse RCP application and I would like to run my codesign maven-exec-plugin on OS X before the product is being compressed to zip and before the binary gets compressed for distribution in repository/binary. So I suppose…
Valerio Santinelli
  • 1,592
  • 2
  • 27
  • 45
1
vote
0 answers

apache-cxf client works with exec-maven-plugin, but not from outside

I am having problems triying to create a WS client in java. The libraries I'm using is apache-cxf 2.12. This is an old version but I want the web service to be added to a JBoss application that is already running and uses Spring 2.5.6, so this…
ibonso
  • 31
  • 5
0
votes
0 answers

Use javaHome, from toolchain, to set JAVA_HOME in exec-maven-plugin

I need to pass jdkHome value to exec-maven-plugin and set it as $JAVA_HOME. The toolchain plugin configuration: org.apache.maven.plugins
Pat
  • 391
  • 2
  • 3
  • 13
0
votes
1 answer

How to trigger maven exec plugin automatically in Eclipse when file is changing?

I am using Eclipse 2023 to build a Typescript module with node/npm. I like there to execute each time the a "*.ts" file changes the maven exec plugin to do the typescript compilation. I have added the exec-maven-plugin and as well the…
megloff
  • 1,400
  • 4
  • 27
  • 44
0
votes
0 answers

exec-maven-plugin is not recognizing executables

Am trying to execute below command using maven-exec plugin, but it is not recognizing the executables properly. command am trying to execute find . -name "pom.xml" -exec sed -i s/1.0/\$\{revision\}/g {} + below is my plugin configuration in main…
0
votes
0 answers

Failure to run java code using `exec-maven-plugin` within Intellij

I have a Maven project which I am using with Intellij v2023.1.1. The code builds using the mvn compile command, and the code runs correctly outside of Maven when run with the java SimpleTest.java command. Yet, when I attempt to run the same code…
0
votes
1 answer

How to run Liquibase on jar execution using Maven?

I have a Maven project with Liquibase that I want to run by executing the jar file. Currently, I can only make it work during the build phase using version 3.10.3 of the Liquibase Maven plugin. I tried using newer versions of the plugin, but I…
0
votes
1 answer

Can't build project with maven and graalvm

What did I do wrong? Trying to build native-image app following this graalvm guide.But I can't. Maybe it lacks some linking inside project... I'm working in IntellijIDEA and it says, that I can't use where I use it. From net seraching I concluded,…
TDC_404
  • 3
  • 2
0
votes
0 answers

Play Framework and Maven generating sources never ends

I am working on a web application with PLAY Framework 2.8.13, Scala and Maven for the back and with React for the front. I am using a script to build the front with maven as follows : exec-maven-plugin
Luc E
  • 1,204
  • 8
  • 16
0
votes
2 answers

exec-maven-plugin want to pass maven.dependency.classpath as a variable in my EXEC Goal

I want to define property or want to use maven.plugin.classpath and maven.dependency.classpath in my build.xml. How can i do it ? Sample code is as below... is not working and not able to read the values from my build.xml…
user886614
  • 375
  • 1
  • 4
  • 14
0
votes
0 answers

Maven merging changes plugin execution order in same Phase

I'm working on a Project which uses the same Plugin Multiple Times in multiple Parent Pom Files. Normally, if you use two Plugins in the same maven phase, it will execute the plugin which is first defined in the POM. In my case Maven merges the…
0
votes
1 answer

Maven - exec-maven-plugin - CreateProcess error=2, The system cannot find the file specified

I am using this code to upload a JAR file to a Server right after the Install phase: org.codehaus.mojo exec-maven-plugin 3.0.0
Joe Almore
  • 4,036
  • 9
  • 52
  • 77
0
votes
0 answers

exec-maven-plugin ClassNotFoundException

I am trying to start a jar from a dependency with the exec-maven-plugin Thats the Code in my Project "MainProject" inside the POM org.codehaus.mojo exec-maven-plugin
Beanssss
  • 65
  • 5