Questions tagged [maven-exec-plugin]
37 questions
1
vote
1 answer
maven: execute without actually building anything
I have a project with finalised version in pom files , lets say 12.3.45 .
I have built the code for this version some time ago already, all the built jars are in the local maven repo.
Then at some point I have run mvn clean, so all the target…

javagirl
- 1,635
- 6
- 27
- 43
1
vote
1 answer
Maven: how to prevent exec plugin to display its stack trace?
The simple maven exec plugin below displays a stack trace that is making it hard for my users to understand what is happening. How to prevent the stack trace and have a cleaner output?
Here is the simple pom.xml with a forced failure executing the…

neves
- 33,186
- 27
- 159
- 192
1
vote
2 answers
Maven: How to execute a dependency in a forked JVM?
Using maven-exec-plugin and a java goal I execute a jar program that validates some files in my project. When the validation fails, it calls System.exit to return a non zero return code.
The problem is that it executes in the same JVM as Maven, so…

neves
- 33,186
- 27
- 159
- 192
1
vote
0 answers
Maven: how to exec a pom twice with different profiles?
I want to make a build with Maven within a pom which can be built with two different profiles.
In other words, my task is to force the build in order that the build produces two different builds in the target folder as like I will execute "maven…

Alessandro C
- 3,310
- 9
- 46
- 82
1
vote
1 answer
couldn't execute maven multi module project using exec-maven-plugin
I've a multi module maven project here .
The parent project has 3 modules common, with-paranamer, without-paranamer.
The with-paranamer and without-paranamer modules are independent of each other and both are depend on common module.
In…

user51
- 8,843
- 21
- 79
- 158
1
vote
0 answers
3rd Party Dependency Install - Issue
In my POM, I have maven-exec-plugin, which generates a Jar (say JarX). The same JarX I am installing to my local repo using install-plugin.
Also my dependency list contains details for this jar to be used in build path. But while building the…

ImLearning
- 21
- 4
1
vote
1 answer
curl with maven exec plugin not working because of "Can't handle single and double quotes in same argument"
To promote a build after successful deployment of an docker image of artifactory, we have to do a curl like this:
curl -k -I -u usr:pw -X POST https://company.com/artifactory/api/docker... - H "Content-Type: application/json" -d…

MemLeak
- 4,456
- 4
- 45
- 84
1
vote
1 answer
Maven exec plugin not running
I am trying to executing a powershell script that writes to a file during a maven build.
I am invoking the build with mvn clean install through Eclipse IDE.
This is the plugin in my pom.xml:
…

Kingamere
- 9,496
- 23
- 71
- 110
0
votes
0 answers
Docker login from pom.xml is giving Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
I'm trying to login to docker using exec-maven-plugin but it is throwing unauthorized error
here is the script from pom.xml
docker-login
…

vishal kumar
- 23
- 1
- 5
0
votes
1 answer
Maven exec plugin can't find mainClass
I'm trying to build a project in java and I'm struggling with maven. When I run
mvn compile,
everything seems to work, but when I try to run mvn exec:java the same error comes up, no matter what I do:
[INFO] Scanning for projects...
[INFO]
[INFO]…

chef
- 1
- 1
0
votes
1 answer
Maven build lifecycle phase synchronization across modules
I have a maven project with a reactor and a couple of modules, most of which are being packed as war. The order in which they are specified in the reactor / root pom.xml defines the order in which they are…

jenszo
- 98
- 5
0
votes
1 answer
mvn exec:java - The specified mainClass doesn't contain a main method with appropriate signature
I have a maven project with one sub-module. If when I run mvn compile exec:java -Dexec.mainClass= it give the error in title.
Project structure and poms are as follows:
file structure:
akka-topics-java
├── pom.xml
└── up-and-running
├──…

ParSal
- 114
- 3
- 9
0
votes
1 answer
Maven exec plugin's %modulepath does not appear to work
I am trying to run a maven project using the maven-exec-plugin and the exec goal (the java goal does not work for my purposes). However, there are two things that I need to be able to do, and I can't figure out how do both at the same time.
The…

Liam Bloom
- 164
- 2
- 10
0
votes
1 answer
ClassNotFoundException in cucumber framework
I am using Cucumber framework for mobile app testing. In pom.xml, I have given this below plugin to run TestClass.java - which has code for uploading the latest APK version of the app. Main method is present inside this TestClass. I need this to run…

Mitsuhaki
- 1
- 4
0
votes
1 answer
Maven exec goal does not provide correct output
I am having a Maven project in Eclipse EE (jdk 1.8) and I'm using Maven on command line to build and execute the program, with the following command:
mvn clean install exec:exec
All the dependencies have been added to pom.xml file and I'm using…

Asif Nassar
- 93
- 6