Maven:从编译中排除文件在IntelliJ IDEA中不起作用 [英] Maven: excluding files from compilation doesn't work in IntelliJ IDEA

查看:170
本文介绍了Maven:从编译中排除文件在IntelliJ IDEA中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想暂时从编译中排除某些目录,所以我配置了maven-compiler-plugin:

I want to temporarily exclude some directory from compilation, so I configure maven-compiler-plugin:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <excludes>
            <exclude>**/foo/**/*.java</exclude>
        </excludes>
    </configuration>
</plugin>

在命令行和Eclipse上一切正常,但是在IntelliJ IDEA中,排除目录中出现编译错误.知道是什么原因引起的问题吗?

Everything works fine from the command line and Eclipse, but in IntelliJ IDEA I got compilation errors in excluded directory. Any idea what might be causing the problem?

推荐答案

这是一个未解决的问题,请关注以获取更新.

It's an open issue, please follow for updates.

这篇关于Maven:从编译中排除文件在IntelliJ IDEA中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆