找不到“ build-helper-maven-plugin”?

时间:2019-10-29 11:38:01

标签: java maven intellij-idea maven-plugin build-helper-maven-plugin

在我的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)

能否请您告诉我原因是什么,解决方案是什么?

0 个答案:

没有答案