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

Error using exec-maven-plugin inside of iterator-maven-plugin

We are currently using the exec-maven-plugin to import oracle .dmp files into a database. Our list of .dmp files keeps growing so I wanted to try using the iterator-maven-plugin to loop through a list of .dmp file names. when I wrap the iterator…
amochoru
  • 1
  • 3
0
votes
1 answer

Maven plugin execution order and classes bundling

I've been banging my head with maven plugin execution order and packaging of generated classes. I've a requirement of generating pojos from XSD with annotation and for that I'm using maven-jaxb2-plugin which consumes a binding.xjb (a xml file…
Akhil
  • 1,184
  • 1
  • 18
  • 42
0
votes
0 answers

Does a maven plugin exist to gracefully check elevated privilege?

Does anyone know of a maven plugin which can gracefully check that the maven process is running with elevated privileges on Windows. I searched using Google, the Maven Users mailing list archive, Commons Exec mailing list archives, stackoverflow but…
buzz3791
  • 1,683
  • 2
  • 20
  • 38
0
votes
1 answer

Maven build with multiple exec plugin executions, ant tasks

I have to perform following steps in my maven build, in the specific order mentioned below: exec-maven-plugin maven-antrun-plugin exec-maven-plugin maven-antrun-plugin maven-remote-resources-plugin,…
0
votes
1 answer

maven build fails returns execution is : '127'

I am trying to rename an artifact using exec-maven-plugin. (I don't want to use antrun plugin as I am using that for a different purpose in the same phase and goal.) Plugin in pom.xml : org.codehaus.mojo
UserASR
  • 2,015
  • 4
  • 24
  • 47
0
votes
1 answer

How do you escape spaces or quotes in javapackager's jvmProperties

I'm using exec-maven-plugin to run javapackager from java 8 to bundle a javafx application and the system properties need to contain a space in the value. When I use -BjvmProperties=log_path="%LOCALAPPDATA%/ERMS/Desktop Alerts/" I…
TheCycoONE
  • 186
  • 2
  • 15
0
votes
0 answers

How to ignore some java file when maven install

I am new to maven.Now in my maven project,there are some java files like helloworldMock.java(they all end with 'Mock.java') I don't when to use them when I run mvn installsome time. How I can do?
J.H
  • 1
0
votes
1 answer

want to run exec-maven-plugin when spring-boot running

My Spring-boot project structure is below -Project - src - main - java - resources - webapp - test - frontend - src - static - config - package.json - (after "npm install")…
0
votes
1 answer

Maven process exited with an error 255 when trying to compile PlayFramework on Jenkins

I got following error when try to compile and package PlayFramework (version 1.3.1) application on my Jenkins server: Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec…
Chiến Nghê
  • 736
  • 2
  • 9
  • 25
0
votes
1 answer

javah fails when executed via Maven exec plugin

I'm having an issue using the Maven exec plugin to execute the Java tool javah. I am trying to specify the output directory to javah where headers files are to be placed but I get the error: [INFO] --- exec-maven-plugin:1.5.0:exec…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
0
votes
1 answer

maven npm exec-maven-plugin set registry and proxy

Maven + npm install I have following plugin to install package.json dependencies, is there a way i can run npm config set registry and npm config set proxy command with following plugin ? org.codehaus.mojo
d-man
  • 57,473
  • 85
  • 212
  • 296
0
votes
0 answers

maven exec plugin - doesn't work as expected

I use maven exec plugin and want to execute simple .exe file with an argument passed in, so the final command line execution would look like: ISCC.exe setup.iss I tried to use arg1 ... however it…
Andrey Yaskulsky
  • 2,458
  • 9
  • 39
  • 81
0
votes
0 answers

maven exec:exec@mygoal only on certain childs

I want to deploy some artifacts to an application server (OC4J) using the exec plugin, but I dont want to specify a particular phase at maven command. So, what I would like to do is: mvn exec:exec@goalid To trigger the deploy, instead of: mvn…
alvaro
  • 452
  • 5
  • 13
0
votes
1 answer

Maven file path arguments exec

This is my file structure. ├── algs4-data ├── src │ ├── main │ └── test └── target ├── classes ├── maven-archiver ├── surefire ├── surefire-reports └── test-classes I want to pass the filename with path argument and pipe.…
yuxuan
  • 417
  • 5
  • 16
0
votes
0 answers

Call source from exec-maven-plugin

I am currently trying to set some environment variables for a test in an shell-script that is called from the exec-maven-plugin. The plugin declaration looks like this: exec-maven-plugin
David Georg Reichelt
  • 963
  • 1
  • 15
  • 36