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

How to fix vulnerability maven-core 3.0 in exec-maven-plugin

I have a spring boot project with maven. The POM.XML for a certaun service looks like this: [...] org.springframework.boot spring-boot-maven-plugin
Chai
  • 1,796
  • 2
  • 18
  • 31
0
votes
0 answers

How can I make the exec-maven-plugin goal be invoked with the Maven package phase?

I've configured exec-mavein-plugin in my module's pom.xml file, but something isn't quite right. I can invoke the goal directory mvn exec:exec and it works correctly and creates an executable file. I believe it is configured correctly to be attached…
Russ Petersen
  • 765
  • 1
  • 9
  • 29
0
votes
1 answer

Batch creation of domain working in command line, but not through exec maven plugin

I've written a small file containing a Glassfish domain creation sequence, that looks like this : create-domain --adminPort 4848 --instancePort 8080 pouet start-domain pouet create-jdbc-connection-pool…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
0
votes
1 answer

How to release:perform with git-crypted files

I used git-crypt (https://github.com/AGWA/git-crypt) to encrypt a property file containing sensitive data (passwords etc.) in my Java Maven project. Preparing of the release run without problems. But the execution of "mvn release:perform" failed…
ban
  • 23
  • 1
  • 4
0
votes
1 answer

Re-run the application on file changes using exec-maven-plugin

I have a maven based application which I run with mvn compile exec:java using the exec-maven-plugin. How can I configure it so that the application restarts when there are file changes detected?
user3690467
  • 3,049
  • 6
  • 27
  • 54
0
votes
1 answer

How does exec.mainClass work without exec-maven-plugin?

I have a project that uses the MojoHaus Exec Maven plugin to run some Java code. Here's the pom.xml file:
Kevin Workman
  • 41,537
  • 9
  • 68
  • 107
0
votes
1 answer

Finding files by pattern in Maven

I need to pre-process some of the resource files (*.xsl) in a Java Maven project. I found the exec-maven-plugin which is able to execute shell commands and thought I can do it in 2 steps: match a list of files and write it to a file launch a Java…
0
votes
1 answer

Micronaut exec-maven-plugin Cannot store value into array: ArrayStoreException

I'm using the maven plugin to modify some source files during the generate-sources phase. I always get the exception: [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (openapischema-model-description) on project…
k_o_
  • 5,143
  • 1
  • 34
  • 43
0
votes
1 answer

Debugging with exec-maven-plugin

I am using exec-maven-plugin to execute my java app and run debug from my IDE (IntelliJ) with the following setup: org.codehaus.mojo exec-maven-plugin 1.4.0
Joe Almore
  • 4,036
  • 9
  • 52
  • 77
0
votes
0 answers

Executing maven liquibase project using its GAV

Is there a way for executing a maven liquibase project using its GAV and supply maven profile to be used in its pom and other arguments, something like: mvn com.group:liquibase-db:8.0.3 -Plocal,create clean install -DdefaultSchemaName=myschema I…
Faiz Kidwai
  • 463
  • 5
  • 26
0
votes
2 answers

How can I pass a command line argument to the execution of a Maven program?

I am working in Eclipse. My Maven program has a pom.xml file with the exec plugin : org.codehaus.mojo exec-maven-plugin ${maven.exec.plugin.version}
0
votes
1 answer

Running a 'Main' class before starting integration tests

I have a few integration tests that I want to run against a custom server that is started in the main method. I have the below in the pom.xml:
gkns
  • 697
  • 2
  • 12
  • 32
0
votes
1 answer

Can I run a try-catch for a command with exec-maven-plugin?

I have a situation where a command may have different names in different environments. In these environments it is not possible or not permitted for me to alter the name of the command. Given that I know the possible names of the command across the…
patyx
  • 324
  • 1
  • 3
  • 17
0
votes
1 answer

executable configuration is not working in maven plugin

I have a multi module maven project where I want a plugin to run a bash script while building one of the child projects, in validation phase. I have defined a exec-maven-plugin in the parent project with the path of the script file and passing the…
Teja
  • 25
  • 5
0
votes
1 answer

Maven Exec Plugin, Spring and ojdbc7 combination prevents JVM from shutting down

exec-maven-plugin - 1.6.0 Spring - 5.1.5 com.oracle:ojdbc7 - 12.1.0.2 I have a simple Java class which initiates a Spring AnnotationConfigApplicationContext which contains a DriverManagerDataSource (oracle database). The class then inserts a few…
Kannan Ekanath
  • 16,759
  • 22
  • 75
  • 101