Bei der Ausführung von mvn exec:java
können die Konfigurationsargumente nicht korrekt analysiert werden, so dass der folgende Fehler auftritt:
[ERROR] Ziel konnte nicht ausgeführt werden org.codehaus.mojo:exec-maven-plugin:1.2. Projekt autotest-programmes: Konfiguration von mojo konnte nicht geparst werden org.codehaus.mojo:exec-maven-plugin:1.2.1:java: Kann nicht zuweisen Konfigurationswerte nicht einem Array vom Typ java.lang.String zuordnen: [-classpath, Klassenpfad {}, --glue, com.company.test.cucumber, --format, pretty, --format, html: C:\workspace\autotest\target ] -> [Hilfe 1]
Dies ist die verwendete Plugin-Konfiguration (unter Verwendung von Apache Maven 3.0.3):
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>false</includeProjectDependencies>
<includePluginDependencies>true</includePluginDependencies>
<executableDependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
</executableDependency>
<mainClass>cucumber.cli.Main</mainClass>
<commandlineArgs>-Dfile.encoding=UTF-8</commandlineArgs>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--glue</argument>
<argument>com.company.test.cucumber</argument>
<argument>--format</argument>
<argument>pretty</argument>
<argument>--format</argument>
<argument>html:${project.basedir}\target</argument>
</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>
</plugin>