EJB 2.1 で作成した古いプロジェクトの ejbdeploy コマンドを起動するために maven-exec-plugin を使用しようとしています。
問題は、コマンドの引数の 1 つが、使用する必要がある引数を持つ別のコマンド (RMIC) であることです。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>ejb-deploy</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>ejbdeploy</executable>
<arguments>
<argument>${project.build.directory}\${project.build.finalName}.jar</argument>
<argument>${project.build.directory}\working</argument>
<argument>${project.build.directory}\${project.build.finalName}-deployed.jar</argument>
<argument>-rmic "-d C:\java\classes"</argument>
<argument>-cp</argument>
<classpath/>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
このスニペットは、 my 中にエラーを生成しますmvn clean install
:
[INFO] --- exec-maven-plugin:1.5.0:exec (ejb-deploy) @ SIMBOLight ---
Unrecognized option: -rmic -d.
Unrecognized option: C:\java\classes.
Error: Must specify the input JAR/EAR filename, the working directory, and output JAR/EAR filename.
0 Errors, 0 Warnings, 0 Informational Messages
パラメータのフォーマットが間違っているようです。何か案は ?