Play Framework and Maven generating sources never ends

60 Views Asked by At

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

0

There are 0 best solutions below