Questions tagged [maven-exec-plugin]

37 questions
0
votes
1 answer

exec-maven-plugin: Can I run exec:exec goal without first running the toolchains:toolchain goal?

I've inherited an application that only compiles and runs in Java 1.8. Because I don't want to make Java 1.8 the primary jvm on my machine, I felt that the best way to manage this was through Maven toolchains. Configuring the maven-compiler-plugin…
rhamilton
  • 473
  • 3
  • 13
0
votes
1 answer

when I run java Maven Project from cmd I get MojoExecutionException

I have problem by running Maven-Project from command_line I used this command in cmd to run class named mainClass mvn -e exec:java -Dexec.mainClass="com.example.Main" and here is what I have in my pom file:
Eddi
  • 55
  • 5
0
votes
0 answers

M2E triggers incremental build after Filechange within exec-maven-plugin

We have two resource directories with message files ${basedir}/resources true ${project.build.directory}/resourcesDefault
wutzebaer
  • 14,365
  • 19
  • 99
  • 170
0
votes
0 answers

Invoke a Maven artifact from a Bash script, passing arbitrary arguments?

The aim is to have a Bash script that runs a Java program from a project that is built with Maven, ideally with a classpath that uses all the JARs needed from the Maven cache. I can think of two solutions for this, but they are all a bit ugly or…
jpp1
  • 2,019
  • 3
  • 22
  • 43
0
votes
1 answer

How to make a standalone JPA (with OpenJPA implementation) Maven project start with exec maven plugin?

I have a very simple JPA project. This is my directory layout.. /src /main /java /biz /tugay /jpaExamples App.java /model Person.java /resources /META-INF …
Koray Tugay
  • 22,894
  • 45
  • 188
  • 319
0
votes
1 answer

I have an error when i trying to run my maven project: Failed execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli)

I have this problem when i trying to run my project. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project projectName: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]…
Ángel
  • 41
  • 7
0
votes
1 answer

Maven: Cannot execute shell script

here is how i am trying to execute a shell script exec-maven-plugin org.codehaus.mojo