Intelliji资源复制问题

时间:2018-09-17 04:16:44

标签: intellij-idea resources

我正在使用injellij 2017.3.4开发一个程序,该程序连接到两个不同的hadoop集群,并将文件复制到集群中。我有两个群集配置文件(core-site.xml, hdfs-site.xml等)存储在...src/main/resources/clusterA...src/main/resources/clusterB下。我面临的问题是,在我点击..../target/classes/时,智能将任何人将集群文件直接复制到..../target/classes/clusterA,然后将两个子目录..../target/classes/clusterBBuild --> Build Module 'MyProject'复制到clusterA。在我的程序中,我仅引用文件夹clusterB...src/main/resources/下的资源,但是似乎程序总是会直接在// Array of Javascript Objects 1: const orders = [{ orderId: 1, orderDate: '2018-01-01', orderAmount: 100 }, { orderId: 2, orderDate: '2018-02-01', orderAmount: 100 }, { orderId: 3, orderDate: '2018-03-01', orderAmount: 100 }, { orderId: 4, orderDate: '2018-03-01', orderAmount: 100 } ]; // Array of Javascript Objects 2: const ordersPayed = [{ orderId: 1, payedAmount: 90, debitorName: 'abc' }, { orderId: 3, payedAmount: 80, debitorName: 'abc' }, { orderId: 6, payedAmount: 90, debitorName: 'abc' } ]; var merged = _.merge(_.keyBy(orders, 'orderId'), _.keyBy(ordersPayed, 'orderId')); const newArr = _.map(merged, o => _.assign({ "payedAmount": "not_payed_yet", "debitorName": "not_known_yet" }, o)); var result = _.values(newArr); console.log(result);下查找配置文件,并且一个群集连接成功了,而另一个群集连接成功了。失败,因为另一个群集配置未直接复制到资源文件夹下。

有人遇到过这个问题吗?这是一个智能问题吗?感谢您的帮助。

0 个答案:

没有答案