Почему не запускается исполняемый файл maven?

Я создал простой проект, осталось только запустить калькулятор:

<project xmlns="http://maven.apache.org/POM/4.0.0" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test.maven.executable</groupId>
<artifactId>exe1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>TestExe</name>
<description>test execute with maven different excutables</description>
<build>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
                <execution><!-- Run our version calculation script -->
                    <id>Version Calculation</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <configuration>
                        <executable>calc</executable>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
</project>

Но когда я запускаю:

mvn exec:exec

Я получаю ошибку:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for 'exec:exec'

[0] Inside the definition for plugin 'exec-maven-plugin' specify the following:

<configuration>
  ...
  <executable>VALUE</executable>
</configuration>

-OR-

on the command line, specify: '-Dexec.executable=VALUE'

Но у меня есть :

<configuration>
    <executable>calc</executable>
</configuration>

Что должно быть VALUE? Я думал, что это имя исполняемого файла...

Когда я использую -Dexec.executable=VALUE, как -Dexec.executable=calc - все работает. Также другая проблема - в документации о плагине:

exec:exec execute programs and Java programs in a separate process. 

Но когда я запускаю с -Dexec.executable=calc - maven ждет, когда я закрываю калькулятор! Где отдельный процесс?

6
задан Qantas 94 Heavy 1 May 2014 в 10:27
поделиться