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

How to use Maven Exec Plugin as Library in another plugin?

I currently am using the Exec Maven Plugin and it works fine with: org.codehaus.mojo exec-maven-plugin 1.4.0
Lucas
  • 2,514
  • 4
  • 27
  • 37
0
votes
1 answer

How to add a java class from test package to maven plugin

I want to add a java class from test package to exec-maven-plugin execution. As you can see bellow I tried with: test And my test resource is not found.
aurelius
  • 3,946
  • 7
  • 40
  • 73
0
votes
1 answer

understanding goal exec in maven

I'm trying to create a native installer for javafx 8 application using the fxlauncher as explained at http://fxldemo.tornado.no/ In the pom.xml provided with the example, I do not understand what the execution embed-manifest-in-launcher is…
user68883
  • 828
  • 1
  • 10
  • 26
0
votes
1 answer

How to bind two plugins in Maven

Using Maven, I need to automatically deploy a web application to a Tomcat server, then run a MainClass in order to do some post-deploy operations. These two things alone are already working, through cargo-maven2-plugin respectively…
Shepard
  • 801
  • 3
  • 9
  • 17
0
votes
2 answers

Using maven plugin exec-maven-plugin to run a shell script

I have a java web application project. I am using the exec-maven-plugin to execute a shell script which creates a small txt file in a directory when the project is built using mvn clean isntall. I have confirmed that the script is being executed…
user1576752
  • 29
  • 1
  • 3
  • 10
0
votes
0 answers

how to create a new lifecycle for develop maven plugin 2

i am a maven newer i use maven-mojo create a new maven-plugin project; for example: 3 java file: mojo1.java,mojo2.java,mojo3.java mojo1.java with @Mojo(name="test01") mojo2.java with @Mojo(name="test02") mojo3.java with @Mojo(name="test03") how can…
janice
  • 31
  • 7
0
votes
1 answer

Eclipse console maven output not showing after app is ran

Usually when you run a maven build in eclipse, it will show the results of each phase in the console in eclipse, and end with a big FAILURE or SUCCESS output. But when I run an application in one of the build phases as part of my maven build, I see…
Kingamere
  • 9,496
  • 23
  • 71
  • 110
0
votes
2 answers

Spring Boot maven exec - unable to start class

In my maven build I want to run an application during the package phase and then have the integration tests run that require that application to be running. However, I get this error: Caused by: java.lang.ClassNotFoundException:…
Kingamere
  • 9,496
  • 23
  • 71
  • 110
0
votes
1 answer

Maven exec plugin Class Not Found Exception

when I right click on the class that has the main() method in Eclipse, and go into properties -> resource, the path to the class is this: /UserRegistrationServices/src/main/java/main/Application.java In my POM.xml file I have this:
0
votes
0 answers

Maven compile-phase bound plugin running to late.

I have two maven plugins configured. One, the exec-maven-plugin, is bound to the compile phase. The other, maven-resources-plugin, is bound to the prepare-package phase. I need exec to run before resources, and I figured this should work because the…
David
  • 14,569
  • 34
  • 78
  • 107
0
votes
1 answer

Unable to find profile 'server' while running cometD load testing

I'm trying to run cometD load testing following the steps listed here. I found out that exec:exec requires a property exec.executable which I'm providing as mvn. I'm seeing the error: [WARNING] The requested profile "server" could not be activated …
Kunal S. Kushwah
  • 883
  • 1
  • 8
  • 19
0
votes
0 answers

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project : An exception occurred while executing the Java class

When I run sudo mvn exec:java -D storm.topology=fyp-storm-try.src.jvm.Topology at ~/storm/examples/fyp-storm-try/ directory, I faced an error regarding an exception occurred while executing the Java class, how to solve the problem? [INFO] BUILD…
Toshihiko
  • 325
  • 1
  • 8
  • 20
0
votes
2 answers

netbeans (7.4, 8.0, 8.01, 8.02) exec-maven-plugin in pom.xml conflicts can't run main class

I am trying to switch to a newer version of Netbeans, currently on 7.2. The project maven pom.xml file contains an exec-maven-plugin (as below), when attempting to run the project via netbeans it executes the below instead of running the main…
0
votes
1 answer

multiple arguments using exec-maven-plugin - no such file or directory error

I am new to maven and while playing with it, I tried to execute simple bash commands. However when I tried to append something to a file using exec-maven-plugin, it always throws a "No such file or directory" error. I have added the whole pom.xml…
Jason
  • 2,246
  • 6
  • 34
  • 53
0
votes
0 answers

How to have exec-maven-plugin:exec run before 'site' phase?

I have this script I need to run before site phase to fix an issue (http://jira.codehaus.org/browse/MSITE-640). org.codehaus.mojo exec-maven-plugin 1.3
vlfig
  • 365
  • 1
  • 13