游戏框架和Maven生成来源永无止境

发布于 2025-02-12 03:26:26 字数 961 浏览 4 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文