我在Jenkins上设置了一个maven项目,并尝试构建它,但在
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.1.0:clean (default-clean) on project BankSystem: Failed to clean project: Failed to delete /Users/lilyli/Documents/IntelliJ-wrokspace/BankSystem/target/surefire-reports/TEST-com.lily.project.AppTest.xml -> [Help 1]我尝试通过添加以下依赖项来更新pom.xml文件
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
</dependency>我还在插件上附加了java JDK版本:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>我能得到任何提示来调试它吗?
发布于 2019-08-03 15:27:03
这不是Maven的问题。请删除您添加的不必要的依赖项。
相反,无法删除该文件。它可能被另一个仍在运行的程序使用,或者Jenkins中的用户可能没有权限这样做。
https://stackoverflow.com/questions/57332686
复制相似问题