5

在我的 POM 文件中,我包括:

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>target/generated-sources/avro</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

始终在 POM 文件中以红色显示这些

build-helper-maven-plugin
3.0.0

我尝试了很多东西,例如,我通过使用 Intellij IDEA 右侧的 MAVEN 设置更新了 MAVEN,但没有成功。总是当我编译时出现以下消息:

Could not transfer artifact org.codehaus.mojo:build-helper-maven-plugin:pom:3.0.0 from/to central (https://repo.maven.apache.org/maven2): /home/ameerb/.m2/repository/org/codehaus/mojo/build-helper-maven-plugin/3.0.0/build-helper-maven-plugin-3.0.0.pom.part.lock (No such file or directory)

你能告诉我是什么原因,有什么解决办法吗?

4

0 回答 0