如何读取Maven中的外部属性文件(How to read an external properties file in Maven)
有谁知道如何在Maven中阅读x.properties文件。 我知道有些方法可以使用资源过滤来读取属性文件并从中设置值,但是我想在我的pom.xml中有一种方法,如:
<properties file="x.properties"> </properties>有一些讨论: Maven外部属性
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>There was some discussion about this: Maven External Properties
最满意答案
尝试Maven属性插件
Try the Maven Properties Plugin
更多推荐
发布评论