gpt4 book ai didi

java - 在 pom.xml 中找不到 maven-antrun-plugin

转载 作者:行者123 更新时间:2023-12-01 18:23:13 25 4
gpt4 key购买 nike

我正在关注这个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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com