exec-maven-plugin

How to set both VM Params and Program args using exec-maven-plugin?

你。 提交于 2021-02-07 18:13:33
问题 I am using exec-maven-plugin to run java app. I need to pass both JVM params and program arguments. I am setting JVM params like this: <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <executions> <execution> <id>MyId</id> <goals> <goal>java</goal> </goals> <configuration> <mainClass>MyClass</mainClass> <arguments> <argument>-XX:+UseG1GC</argument> <argument>-Xms2G</argument> <argument>-Xmx2G</argument> </arguments> </configuration> </execution> ... and run the program: mvn

How to set both VM Params and Program args using exec-maven-plugin?

落花浮王杯 提交于 2021-02-07 18:08:56
问题 I am using exec-maven-plugin to run java app. I need to pass both JVM params and program arguments. I am setting JVM params like this: <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <executions> <execution> <id>MyId</id> <goals> <goal>java</goal> </goals> <configuration> <mainClass>MyClass</mainClass> <arguments> <argument>-XX:+UseG1GC</argument> <argument>-Xms2G</argument> <argument>-Xmx2G</argument> </arguments> </configuration> </execution> ... and run the program: mvn

How can I prevent tests from being run when using exec-maven-plugin

痴心易碎 提交于 2020-05-26 00:18:26
问题 I am running JavaScript unit tests in a maven project using exec-maven-plugin <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>run-karma</id> <phase>test</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>${node.bin.folder}/node</executable> <workingDirectory>${project.basedir}</workingDirectory> <arguments> <argument>node_modules/karma/bin/karma</argument> <argument>start</argument

How can I prevent tests from being run when using exec-maven-plugin

[亡魂溺海] 提交于 2020-05-26 00:18:06
问题 I am running JavaScript unit tests in a maven project using exec-maven-plugin <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>run-karma</id> <phase>test</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>${node.bin.folder}/node</executable> <workingDirectory>${project.basedir}</workingDirectory> <arguments> <argument>node_modules/karma/bin/karma</argument> <argument>start</argument

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec

时间秒杀一切 提交于 2020-05-12 11:49:24
问题 Three weeks ago I had finished work on a web application. Everything was running without problems. Now, three weeks later, having changed nothing(!!!), I wanted to run the application again but this time I got the following error message: An error occurred while parsing the server response. Error message is: Provider org.glassfish.json.JsonProviderImpl not found Exception in thread "main" com.michael.optimizer.exceptions.JsonException: This is a general JSON error. Check logs for details.) at

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec

家住魔仙堡 提交于 2020-05-12 11:49:06
问题 Three weeks ago I had finished work on a web application. Everything was running without problems. Now, three weeks later, having changed nothing(!!!), I wanted to run the application again but this time I got the following error message: An error occurred while parsing the server response. Error message is: Provider org.glassfish.json.JsonProviderImpl not found Exception in thread "main" com.michael.optimizer.exceptions.JsonException: This is a general JSON error. Check logs for details.) at

exec-maven-plugin plugin error

旧城冷巷雨未停 提交于 2020-01-16 07:58:09
问题 I use the exec-maven-plugin as follow <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <version>1.6.0</version> <executions> <execution> <id>npm install</id> <goals> <goal>exec</goal> </goals> <phase>generate-sources</phase> <configuration> <executable>${npm.executable}</executable> <arguments> <argument>install</argument> </arguments> <workingDirectory>${basedir}/target/angular5/tourism</workingDirectory> <target> <echo message="Npm install" /> <

Using Maven 'exec:exec' with Arguments

房东的猫 提交于 2020-01-09 13:58:12
问题 I have a project configured to build and run with Maven. The project depends on platform specific native libraries, and I'm using the strategy found here to manage those dependencies. Essentially, the .dll or .so files for a particular platform are packaged into a jar, and pushed to the Maven server with a classifier identifying the target platform. The maven-dependency-plugin then unpacks the platform specific jar, and copies the native libraries to the target folder. Normally I would use

Get annotations when exec-maven-plugin runs Main does not work

余生长醉 提交于 2020-01-06 03:16:24
问题 I would like to run a Main class with exec-maven-plugin and from my dependencies generate documentation like a swagger file. The annotation that I care is javax.ws.rs.Path which has @Retention(RetentionPolicy.RUNTIME) My Java code public class ContextClassReader extends ClassReader { private static final ExtensibleClassLoader CLASS_LOADER = new ExtensibleClassLoader(); public ContextClassReader(final String className) throws IOException { super(CLASS_LOADER.getResourceAsStream(className

java maven exec-maven-plugin not executing on mvn clean install

孤街醉人 提交于 2020-01-02 06:58:32
问题 Follow-up to a previous question: Maven run class before test phase: exec-maven-plugin exec:java not executing class. I am running jUnit4 tests, built with maven, on a jenkins box. I need to run a specific main-method java program before before the test phase of my build. The intent is to restore a test database before the tests run. If I run the exact phase this exec is assigned to, my class executes as expected; but when I run the whole build, my class does not execute: Specifically, it