Springブートmavenプラグインの停止ゴールは、アプリケーションの停止に失敗し、アプリケーションプロセスがハングアップしてしまいます(同じポートを使用して別のプロセスを開始できません)。 これは私が持っているプラグインの設定です:私はこの動作を引き起こしバグへの参照を見つけることができませんspring boot maven plugin stop goal
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.6.RELEASE</version>
<configuration>
<jvmArguments>-DCONFIG_ENVIRONMENT=functionaltest</jvmArguments>
<mainClass>...</mainClass>
<fork>true</fork>
</configuration>
<executions>
<execution>
<id>start-service</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-service</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
。おそらくプラグインを使用していたのでしょうか?
「本当に 」を使用しているのはなぜですか?フォークされたJVMでspring-bootアプリケーションを実行したい場合は、 ''ブロックの内部に ''ブロックの中に間違っているように見えます。 –
glytching
@glitchはい、私はそれも試みました。私は質問のコードをそのように更新しました。 – UndefinedBehavior