exec-maven-plugin

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

余生颓废 提交于 2019-12-12 17:23:17
问题 I have an issue that I spend 5 days without resolving it: When executing mvn exec:java it fails to correctly parse the configuration arguments, throwing the following error: "Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java (default-cli) on project poll-translator: An exception occured while executing the Java class. null: InvocationTargetException: Error creating bean with name 'serviceLocator' defined in class path resource [META-INF/dsol/dsol.xml]: Cannot resolve

Is it possible to run multiple maven-exec-plugin executions in parallel?

泄露秘密 提交于 2019-12-12 09:39:46
问题 Is it possible to run multiple exec-maven-plugin executions in parallel somehow? We want to have different database types deployed for DAL integration testing, and while it's obviously possible to do this in sequence, it's a huge waste of time. <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <id>first-dbtype-deployment</id> <goals> <goal>java</goal> </goals> <configuration> <mainClass>com.example

How to use maven exec to run asadmin deploy

我只是一个虾纸丫 提交于 2019-12-12 01:04:28
问题 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 Exec Plugin ( mvn exec:exec ), with these configurations: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <configuration> <executable>asadmin</executable> <arguments> <argument>deploy<

couldn't execute maven multi module project using exec-maven-plugin

六眼飞鱼酱① 提交于 2019-12-11 20:39:45
问题 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 without-paranamer module I have added dependency to common module like this. Below is the structure of the project. . ├── pom.xml ├── common │ ├── pom.xml │ ├─ src │ ├── main │ ├─ java │ ├── ParanamerUtil.java │ ├── PersonV03.java │ └── TestCaseClasses.java │

set systemProperty in exec-maven-plugin does not work

只愿长相守 提交于 2019-12-11 01:08:25
问题 Here is my pom.xml file: <project> <modelVersion>4.0.0</modelVersion> <groupId>com.test</groupId> <artifactId>test</artifactId> <version>1.0-SNAPSHOT</version> <profiles> <profile> <id>my_proj</id> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.4.0</version> <executions> <execution> <phase>install</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration> <executable>java</executable> <arguments>

Passing line.separator to maven

倾然丶 夕夏残阳落幕 提交于 2019-12-10 22:35:05
问题 I would like to pass line.separator to exec plugin but it seems that I do not correctly passing it. I have tried many combinations but could not find the solution. What is the correct way? <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <phase>test</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>java</executable> <arguments> <argument>-Dline.separator=\n</argument> <argument>

Maven run class before test phase: exec-maven-plugin exec:java not executing class

谁说我不能喝 提交于 2019-12-10 21:55:06
问题 I am running jUnit4 tests, built with Maven, on a Jenkins box. My goal is to restore a test database before executing the tests. It looks like exec-maven-plugin is the way to go, but I cannot get it running. Any pointers? Although there are lots of examples, the doc on the mojo site is pretty thin. The class I need to run currently lives at: MyProject.src.test.java._tools.BuildTestEnvironment.java My pom.xml includes: <pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin<

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

╄→гoц情女王★ 提交于 2019-12-10 10:21:28
问题 hi im using maven to compile a jersey web services project and im getting error compiling it in windows 2008 server. Here is the error: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Administrator\Documents\MyApplication>mvn -e exec:java [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBu ilder with a

Process spawned by exec-maven-plugin blocks the maven process

社会主义新天地 提交于 2019-12-09 14:20:01
问题 I am trying to execute the following scenario using maven : pre-integration-phase : Start a java based application using a main class (using exec-maven-plugin) integration-phase : Run the integration test cases (using maven-failsafe-plugin) post-integration-phase: Stop the application gracefully (using exec-maven-plugin) Here is pom.xml snip: <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <id

Forking Java using the Exec Maven Plugin, without using the `exec` goal

妖精的绣舞 提交于 2019-12-08 16:20:06
问题 From the documentation: exec:exec execute programs and Java programs in a separate process. exec:java execute Java programs in the same VM. I want to fork a java program. I've already got it working in exec:java but that doesn't fork. So the obvious move is to change the goal to exec . Problem is, the syntax for exec is pretty different from the syntax of java . It doesn't have tags like includeProjectDependencies , includePluginDependencies , etc. Is there a plugin I can use that is like #1