我正在关注这个blog在 Spring Boot 中构建后端,在 Reactjs 中构建前端。当我克隆代码时,它工作正常。但在 pom.xml 中,它显示错误消息为 maven-antrun-plugin not find 。为什么会这样呢?我该如何修复它?
<plugin> <artifactId>maven-antrun-plugin</artifactId> // error not found <executions> <execution> <phase>generate-resources</phase> <configuration> <target> <copy todir="${project.build.directory}/classes/static"> <fileset dir="${project.basedir}/frontend/build" /> </copy> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
最佳答案
除了artifactId,您还应该将groupId指定为org.apache.maven.plugins,将版本指定为1.8
关于java - 在 pom.xml 中找不到 maven-antrun-plugin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60270429/