如何访问settings.xml到spring.xml和pom.xml到spring.xml的属性

如何访问settings.xml到spring.xml和pom.xml到spring.xml的属性,spring,maven,Spring,Maven,我是maven spring的新手。我有两个问题 如何将settings.xml中的属性集访问到spring.xml 如何将pom.xml中的属性集访问到spring.xml 谢谢。您想过滤资源,这是一个maven术语,意思是用maven pom中的值替换一个文件中的属性placehoders。要做到这一点,您需要在构建配置中使用。您想在xml中永久替换它们(在最终的jar中),还是只想在测试期间传递值?我想使用setting.xml或pom.xml到spring.xml的属性。您的意思是这样的

我是maven spring的新手。我有两个问题

  • 如何将settings.xml中的属性集访问到spring.xml

  • 如何将pom.xml中的属性集访问到spring.xml


  • 谢谢。

    您想过滤资源,这是一个maven术语,意思是用maven pom中的值替换一个文件中的属性placehoders。要做到这一点,您需要在构建配置中使用。

    您想在xml中永久替换它们(在最终的jar中),还是只想在测试期间传递值?我想使用setting.xml或pom.xml到spring.xml的属性。您的意思是这样的吗?是的。但是他们使用了属性文件。我想从pom xml的属性元素中获取它