Java 无法执行com.github.eirslett
我最近开始学习这个教程,我一直坚持“加载JavaScript模块示例8”。当我加上:Java 无法执行com.github.eirslett,java,reactjs,spring,intellij-idea,Java,Reactjs,Spring,Intellij Idea,我最近开始学习这个教程,我一直坚持“加载JavaScript模块示例8”。当我加上: <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> </plugin> com.github.eirslett 前端maven插件 对于pom.xml,它突出显示为红色,并显示Pl
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
</plugin>
com.github.eirslett
前端maven插件
对于pom.xml,它突出显示为红色,并显示Plugin'com.github.eirslett:frontendmaven Plugin:“找不到”。我希望有人能帮忙。谢谢。将此添加到插件中为我解决了问题
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<configuration>
<installDirectory>target</installDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v12.19.0</nodeVersion>
<npmVersion>6.14.8</npmVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>webpack build</id>
<goals>
<goal>webpack</goal>
</goals>
</execution>
</executions>
</plugin>
com.github.eirslett
前端maven插件
目标
安装节点和npm
安装节点和npm
v12.19.0
6.14.8
npm安装
npm
安装
网页包构建
网页包
您可能需要在pom中包含插件的版本,请参见他们的repo部分
看起来截至目前的最新版本(根据回购协议和per)为1.10.3:
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.10.3</version>
...
</plugin>
...
com.github.eirslett
前端maven插件
1.10.3
...
...
您使用的IDE版本是什么?你试过从Maven工具窗口运行“重新加载”吗?你能解决这个问题吗?我在没有这个插件的情况下设法继续;