Exclude folder in intellij idea using Maven

后端 未结 1 1383
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 15:26

We are using maven to manage our idea projects but I\'m having a problem excluding a directory from the idea project.

Using idea, I would just go to Project Settings

相关标签:
1条回答
  • 2020-12-30 16:02

    I just did a small test and, with the following snippet:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-idea-plugin</artifactId>
      <configuration>
        <exclude>test-output,.clover,logs</exclude>
      </configuration>
    </plugin>
    

    The generated .iml file contains the following entries:

      <excludeFolder url="file://$MODULE_DIR$/.clover"/>
      <excludeFolder url="file://$MODULE_DIR$/logs"/>
      <excludeFolder url="file://$MODULE_DIR$/target"/>
      <excludeFolder url="file://$MODULE_DIR$/test-output"/>
    

    Which is to my knowledge the expected result.

    Do you get something different? Are you expecting somehting else?

    0 讨论(0)
提交回复
热议问题