游戏框架和Maven生成来源永无止境
我正在使用Play Framework 2.8.13,Scala和Maven的Web应用程序工作,而Fore则为正面。我正在使用脚本来用Maven构建正面,如下所示:
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution>
<id>npm-install</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${project.basedir}/install-front.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
当我使用mvn Play2:run
源源生成永无止境而没有发生的后端服务器时,控制台在:
[信息] --- scala-maven-plugin:4.5.4:脚本...
奇怪的是,当我将阶段生成source
更改为 清洁
,错误不再发生,一切都很好
,但是我无法使用此解决方案,因为MVN版本
旁路clean
eptae 阶段和汇编失败
I am working on a web application with PLAY Framework 2.8.13, Scala and Maven for the back and with React for the front. I am using a script to build the front with maven as follows :
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution>
<id>npm-install</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${project.basedir}/install-front.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
When I run my backend server with mvn play2:run
the source generation never ends and nothing happens, the console freeze on :
[INFO] --- scala-maven-plugin:4.5.4:script ...
Strangely, when I change the phase generate-source
to clean
, the error no longer occurs and everything is going well
However I can't use this solution because mvn release
bypass clean
phase and the compilation fails
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论