Use dependency:get to load node and npm or yarn from the Jenkins Artifactory rather than a third-party server.
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <!-- TODO how to avoid downloading them all? -->
+ <execution>
+ <id>download node for Linux</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:node:${node.version}:tar.gz:linux-x64</artifact>
+ </configuration>
+ </execution>
+ <execution>
+ <id>download node for Darwin</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:node:${node.version}:tar.gz:darwin-x64</artifact>
+ </configuration>
+ </execution>
+ <execution>
+ <id>download node for Windows</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:node:${node.version}:exe:windows-x64</artifact>
+ </configuration>
+ </execution>
+ <execution>
+ <id>download npm</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:npm:${npm.version}:tar.gz</artifact>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <!-- TODO as above -->
+ <execution>
+ <id>download node for Linux</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:node:${node.version}:tar.gz:linux-x64</artifact>
+ </configuration>
+ </execution>
+ <execution>
+ <id>download node for Darwin</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:node:${node.version}:tar.gz:darwin-x64</artifact>
+ </configuration>
+ </execution>
+ <execution>
+ <id>download node for Windows</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:node:${node.version}:exe:windows-x64</artifact>
+ </configuration>
+ </execution>
+ <execution>
+ <id>download yarn</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>get</goal>
+ </goals>
+ <configuration>
+ <artifact>com.github.eirslett:yarn:${yarn.version}:tar.gz</artifact>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
