【问题标题】:IntelliJ - Why does the target folder is created with an padlock?IntelliJ - 为什么使用挂锁创建目标文件夹?
【发布时间】:2020-07-03 15:27:35
【问题描述】:

希望大家能帮帮我,运行testng后,目标文件夹是用挂锁创建的

由于这个原因,我无法运行 mvn clean test,因为 maven 无法删除此文件夹

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project TestCases: Failed to clean project: Failed to delete /Users/administrator/qa-automation/01LoginProject/TestCases/target/surefire-reports/testng.css -> [Help 1]

如何防止在没有挂锁的情况下创建目标?

【问题讨论】:

  • Padlock 在项目文件夹上意味着它包含只读类,例如来自外部库的 jar。
  • 你好 Koyasha,那篇参考资料帮助我理解了很多事情。感谢您的回复
  • 不客气,Horacio。让我将其作为答案发布,以便更好地了解。

标签: maven intellij-idea testng


【解决方案1】:

项目文件夹上的挂锁意味着它包含一个只读类。

有关 IntelliJ IDEA 中文件类型和图标引用的更多信息,请参阅 this article

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-14
    • 2011-08-10
    • 1970-01-01
    • 2011-10-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多