実行プロファイル上にtomcat7-maven-pluginを使用してアプリケーションを実行するmavenビルドがあります。 私はtomcatの実行と並行してjar(例えばmaven-exec-pluginを使って)を実行したいと思います。この瓶は私が地元の開発に使うLDAPサービスです。mavenビルドでのtomcatとjarの並列実行
これまでのところ、私は別のMavenの実行(他のPOM)で、このjarファイルを実行するエーブルされてきた:私はMavenの依存性 - プラグインの同じポンポンでこれを追加した場合
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<phase>run</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>x.y.z.ldap.LdapServerRunner</mainClass>
<arguments>
<argument>localhost</argument>
<argument>50000</argument>
<argument>src/main/resources/ldap-dev.ldif</argument>
</arguments>
<includePluginDependencies>true</includePluginDependencies>
<includeProjectDependencies>true</includeProjectDependencies>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<artifactId>j</artifactId>
<groupId>x.y.z</groupId>
<version>x.x.x-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
、Mavenの待ち時間tomcatの実行を開始する前にメインが終了するようにします。 私のjar(x.y.z.ldap.LdapServerRunner)を、ローカルのTomcat実行時と同じ時間に実行できるかどうかを知りたいと思います。
あなたがしようとしたことがあり[パラレルビルドin Maven 3](https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3)? –
いいえ、私は見てみましょう。ありがとう。 – Akah