如何读取外部属性在文件中的Maven [英] How to read an external properties file in Maven

查看:525
本文介绍了如何读取外部属性在文件中的Maven的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何阅读的Maven x.properties文件。我知道有很多方法可以使用​​的资源过滤读取属性文件,并从该设置的值,但我想在我的pom.xml喜欢的方式:

Does anyone know how to read a x.properties file in Maven. I know there are ways to use resource filtering to read a properties file and set values from that, but I want a way in my pom.xml like:

<properties file="x.properties"> 

</properties>

有大约在这个一些讨论:
Maven的外部属性

There was some discussion about this: Maven External Properties

推荐答案

试用
的Maven插件属性

这篇关于如何读取外部属性在文件中的Maven的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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