eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.2k stars 868 forks source link

How should I config to specify the suffix of the download file? #1136

Open brycehu966 opened 3 months ago

brycehu966 commented 3 months ago

This is my config. The url after every execution is end with "gz", like "xxx/node-v18.19.0-linux-x64.tar.gz".How should I config to download file with the suffix "xz" ?

`

com.github.eirslett
            <artifactId>frontend-maven-plugin</artifactId>
            <version>1.6</version>
            <executions>
                <!-- Install our node and npm version to run npm/node scripts-->
                <execution>
                    <id>install node and npm</id>
                    <goals>
                        <goal>install-node-and-npm</goal>
                    </goals>
                    <configuration>
                        <nodeVersion>v18.19.0</nodeVersion>
                        <npmVersion>10.3.0</npmVersion>
                        <nodeDownloadRoot>${downloadDir}</nodeDownloadRoot>
                        <workingDirectory>${basedir}/src/client</workingDirectory>
                    </configuration>
                </execution>
                <execution>
                    <id>npm install</id>
                    <goals>
                        <goal>npm</goal>
                    </goals>
                    <phase>generate-resources</phase>
                    <configuration>
                        <arguments>install</arguments>
                        <workingDirectory>${basedir}/src/client</workingDirectory>
                    </configuration>
                </execution>
                <execution>
                    <id>npm run build</id>
                    <goals>
                        <goal>npm</goal>
                    </goals>
                    <configuration>
                        <arguments>run build</arguments>
                        <workingDirectory>${basedir}/src/client</workingDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>`