当我在进行构建Intellij时,由于emacs创建无法打包的临时文件,我会遇到错误
Error:Maven Resources Compiler: Failed to copy '... /.#env_app.clj'
有什么方法可以从Intellij中排除.#
文件?
在IDE中,编译器排除在设置(首选项(|构建,执行,部署|编译器|排除设置页面。
但是,如果它是一个基于Maven的项目,则必须通过pom.xml文件配置编译器(如其他与构建相关的选项(:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<excludes>
<exclude>**/.#*</exclude>
</excludes>
</configuration>
</plugin>