IntelliJ Idea - 资源SQL文件未被复制到目标 [英] IntelliJ Idea - resource SQL files not being copied to target

查看:497
本文介绍了IntelliJ Idea - 资源SQL文件未被复制到目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些问题,IntelliJ Idea没有将SQL资源文件复制到目标目录,所以我必须手动复制它们。

I have some problems with IntelliJ Idea not copying SQL resource files into target directory, so I have to copy them there manualy.

我在项目中有SQL reosurce模式编译器设置。

I have SQL reosurce pattern in project's compiler settings.

我有标准结构maven项目 - 使用/ etc /文件夹保存属性文件,这些文件被复制没有问题。 / etc / folder保存/ sql /文件夹,我也需要复制,但它根本没有被复制。 / etc /文件夹设置为源文件夹。

I have standart structure maven project - with /etc/ folder holding property files which gets copied without problem. /etc/ folder holds /sql/ folder which i need to be copied as well, but it gets not copied at all. /etc/ folder is set as source folder.

我的文件夹结构:

-etc
    -conf
        -sql
-src
    -main
    -test


推荐答案

这应该可以正常工作,但可能是您的配置特有的错误。您能否通过示例项目和pom.xml 提交问题

This should work fine, but could be a bug specific to your configuration. Could you please submit an issue with a sample project and pom.xml?

这篇关于IntelliJ Idea - 资源SQL文件未被复制到目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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