0
したがって、私はspringbootとmaven pomファイルを含むプロジェクトを持っています。私のpom.xmlには、webpackを使用するreact.jsプロジェクトを開始するためのnpmコマンドを実行するためのフロントエンド・プラグインが含まれていました。だから、私がHerokuでこのアプリケーションをデプロイしようとすると、デプロイは終わりません。なぜなら、mavenはnpmの実行を開始し、デプロイが完了しないためです。Mavenを実行しているSpringbootはwebpackと反応します
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<workingDirectory>web</workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v4.2.1</nodeVersion>
<npmVersion>3.5.3</npmVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run start</arguments>
</configuration>
</execution>
</executions>
</plugin>
npm実行ビルドステップを削除しました。展開は正常ですが、フロントエンドは起動しません。
どうすればこの問題を解決できますか?
私の完全なコードは次のとおりです。https://github.com/ricardocunha/springboot-jwt-reactjs/