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 do I configure maven so that the maven exec plugin can access a config file in a directory outside 'src/'

I am accessing the properties file in my code with ClassName.class.getClassloader().getResourceAsStream("config/config.properties")); and this.getClass.getClassloader().getResourceAsStream("config/config.properties"); If the properties…
0
votes
1 answer

Maven exec plugin skip parameter

I have maven exec plugin in my pom for executing grunt. Is there a way to skip the plugin execution when I call mvn clean install. I cant put the true
Upen
  • 1,388
  • 1
  • 22
  • 49
0
votes
1 answer

exec-maven-plugin doesn't use third-party repos

I have a couple of third-party repos configured. I know they're configured correctly because it's downloading artifacts from them. But exec-maven-plugin doesn't seem to recognize those third-party repos. It looks for its dependency in Maven…
Kevin Krumwiede
  • 9,868
  • 4
  • 34
  • 82
0
votes
1 answer

How can i windows command prompt commands from maven pom.xml file?

I am making a maven project which is trying to run command prompt commands. I tried Exec Maven Plugin but couldn't do it. I think i'm at wrong way for this. Here is my work for making a file with "Exec Maven Plugin". Can someone make an explanation…
Erçin Akçay
  • 1,383
  • 4
  • 18
  • 34
0
votes
1 answer

Caliper test using exec-maven-plugin is saying main method signature isn't valid

I'm trying to get Caliper working with maven, I haven't successfully ran a caliper benchmark test as of yet. Caliper version: 1.0-beta-1 My benchmark: public class MyXercesSAXHandlerBenchmark extends Benchmark{ @Param({"10", "100", "1000",…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
0
votes
1 answer

Maven build have to run python script to generate a web.xml

I'm using the exec-maven-plugin and the pom is compiling, but it seems to not execute this plugin when I compile my project: org.codehaus.mojo exec-maven-plugin 1.2.1
Jérome Pieret
  • 228
  • 2
  • 10
0
votes
0 answers

exec-maven-plugin starts not in the right phase

I want to start a server in pre-integration-phase and do some integration tests. Problem is that it only starts after the integration tests. My pom looks like this: plugin> maven-failsafe-plugin
user2368505
  • 416
  • 3
  • 16
0
votes
1 answer

How to use maven exec to run asadmin deploy

I'm using Mac OS 10.5.8 and Maven 3.0.3. If I run this command from the command line, it works: asadmin deploy --user admin --type ejb --libraries pedra-signon-ejb-1.0.jar target/my-ejb-1.0.jar But if I try executing this same command with Maven…
Henrique Ordine
  • 3,337
  • 4
  • 44
  • 70
0
votes
0 answers

Connect to database during Maven build with Exec Plugin

I am using the Exec Maven Plugin to run a main method when using a specific profile. For example: mvn process-resources -Psomeprofile In this method, I want to be able to run code that performs operations on my database using my application code,…
eipark
  • 7,442
  • 3
  • 24
  • 33
0
votes
0 answers

Maven run submodule from Netbeans

I want to build an application with Maven. Currently I have the following setup: Two projects; Project A and Project B. Project B depends on A (with the dependency tag in the pom). The main Class is in project B. I have included everything in…
iuiz
  • 957
  • 1
  • 10
  • 23
0
votes
1 answer

Get full path from relative path in maven

I'm using the exec-maven-plugin in order to execute a non java file and pass another file as an argument. I need to be able to use a full path which is on top of the ${basedir} directory. How can I access such a directory without using the full…
Omri
  • 1,058
  • 3
  • 14
  • 26
0
votes
1 answer

skip mvn exec:exec for modules in multimodule maven project

I have a multimodule project, for which I wanted to do a verification on pre-requisites by running a shell script using exec-maven-plugin, when I run the below command mvn exec:exec -Dexec.executable=/apps/rm-scripts/verify.sh It goes through…
Krishna
  • 11
  • 3
0
votes
1 answer

Ensure that exec-maven-plugin is downloaded during the compile phase

We have a maven project where we use several linux bash scripts for various entries to our java application. We have solved this by the exec-maven-plugin so the scripts typically looks like: mvn -e -o -q exec:exec -Dexec.executable="java"…
Tomas F
  • 11
  • 2
0
votes
1 answer

How to append console output to a file in maven?

I am using exec-maven-plugin to execute some specific tests. I want to append the console output of the tests to a file, without hiding the console. Is there any support provided in maven for the task? I used maven-antrun-plugin to execute the…
r9891
  • 3,163
  • 1
  • 14
  • 12
0
votes
1 answer

How to use Maven to execute a file in the current (top-level) directory?

I have a project that I can build successfully with mvn clean install. I can also use the mvn exec:java command to execute scripts contained in the src/com/mycompany/myproject/ folder by fully qualifying the "mainClass" in the POM as:
mindthief
  • 12,755
  • 14
  • 57
  • 61
1 2 3
15
16