Java &引用;“构建帮助器maven插件”;找不到?

Java &引用;“构建帮助器maven插件”;找不到?,java,maven,intellij-idea,maven-plugin,build-helper-maven-plugin,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> <exe

在我的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>
我做了很多尝试,例如,我使用Intellij想法右侧的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)

您能告诉我原因和解决方法吗?

1。从本地存储库中删除相关部分。2.检查网络/代理/防火墙是否阻止对MavenCentral的访问。谢谢,@JFMeier,但是:与(1)相关。遗憾的是,相关目录不存在,无法删除它!!。我的意思是,当我cd到“~/.m2/repository/org/codehaus/mojo”时,除了下面的目录“exec maven plugin”和“mojo parent”外,什么都没有,那么我应该删除它呢???。相关(2)我禁用了防火墙,问题没有解决!!!可能进程无法写入目录
/home/ameerb/.m2/repository/org/codehaus/mojo/build helper maven plugin/3.0.0/
?请查看
.m2
及以下文件的权限。@gjoranv非常感谢,这是权限问题。
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)