Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove --mutex network argument for Yarn builds #625

Merged
merged 11 commits into from
Nov 7, 2022
67 changes: 67 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,73 @@
</plugins>
</build>
</profile>
<profile>
<id>yarn2-execution</id>
<activation>
<file>
<exists>.mvn_exec_yarn2</exists>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the same applied for yarn3? (the --mutex flag is a yarn 1 thing right?)

</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-version}</version>

<executions>

<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<phase>initialize</phase>
<configuration>
<nodeVersion>v${node.version}</nodeVersion>
<yarnVersion>v${yarn.version}</yarnVersion>
<nodeDownloadRoot>${nodeDownloadRoot}</nodeDownloadRoot>
<!-- tried to create a mirror for yarnDownloadRoot but it did not work -->
</configuration>
</execution>

<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>initialize</phase>
</execution>

<execution>
<id>yarn mvnbuild</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<!-- The package.json must define an "mvnbuild" script -->
<arguments>run mvnbuild</arguments>
</configuration>
</execution>

<execution>
<id>yarn mvntest</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>test</phase>
<configuration>
<!-- The package.json must define an "mvntest" script -->
<arguments>run mvntest</arguments>
</configuration>
</execution>

</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>clean-node</id>
<activation>
Expand Down