Javascript 无法执行目标com.github.eirslett:frontend maven插件:1.6:install node and npm(install node and npm)
我和maven有点小问题-Javascript 无法执行目标com.github.eirslett:frontend maven插件:1.6:install node and npm(install node and npm),javascript,node.js,maven,npm,Javascript,Node.js,Maven,Npm,我和maven有点小问题- [ERROR]无法执行目标com.github.eirslett:frontend maven插件:1.6:安装节点和npm(安装节点和npm)在项目xxx前端上:无法下载Node.js:无法下载https://nodejs.org/dist/v8.11.2/node-v8.11.2-linux-x64.tar.gz: java.lang.RuntimeException:意外错误:java.security.invalidalgorithParameterExcep
[ERROR]无法执行目标com.github.eirslett:frontend maven插件:1.6:安装节点和npm(安装节点和npm)在项目xxx前端上:无法下载Node.js:无法下载https://nodejs.org/dist/v8.11.2/node-v8.11.2-linux-x64.tar.gz: java.lang.RuntimeException:意外错误:java.security.invalidalgorithParameterException:trustAnchors参数必须为非空->[Help 1]
我使用的是Ubuntu 18.04,在windows上运行良好。我能用这个做什么?链接到nodejs是好的
我试过:
-删除~/m2/repository/com/github/eirslett,但没有任何帮助,
-分别使用global和intellij maven,3.5.2和3.3.9,
-多mvn清洁安装
这可能是防火墙的问题吗?如果是,为什么以及如何修复?
或者至少如果有人能给我们一个线索,看看这些废话到底是怎么回事:/
以下是我的pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>xxx-frontend</artifactId>
<version>0.0.4</version>
<packaging>pom</packaging>
<name>xxx::Frontend</name>
<description>frontend</description>
<parent>
<groupId>xx.xxx</groupId>
<artifactId>xxx</artifactId>
<version>0.0.1</version>
<relativePath>..</relativePath>
</parent>
<profiles>
<profile>
<id>build-with-front</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.6</version>
<configuration>
<nodeVersion>v8.11.2</nodeVersion>
<npmVersion>6.1.0</npmVersion>
<installDirectory>node</installDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run maven:build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<filesets>
<fileset>
<directory>dist</directory>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
4.0.0
xxx前端
0.0.4
聚甲醛
xxx::前端
前端
xx.xxx
xxx
0.0.1
..
以正面建造
真的
com.github.eirslett
前端maven插件
1.6
v8.11.2
6.1.0
节点
安装节点和npm
安装节点和npm
产生资源
npm安装
npm
产生资源
安装
npm构建
npm
产生资源
运行maven:build
maven清洁插件
3.0.0
距离
由于这是谷歌搜索此错误时的最佳答案,如果您面临此问题,并且在Mac上使用新的M1芯片,您需要升级到至少版本
1.11.0
,此插件才能工作