does an external script in rpm-maven-plugin have access to maven properties

前端 未结 1 593
广开言路
广开言路 2021-01-26 07:00

In an external postinstallScriptlet as follows, is there a way to access maven properties such as ${project.artifactId}? The pom.xml file has this snip

相关标签:
1条回答
  • 2021-01-26 07:43

    The properties are not directly accessible, but you can use the maven-resources-plugin copy-resources goal to apply filters while copying from your scripts directory into target. Your scriptFile configuration would then need to be changed to point to the copied resource under target.

    0 讨论(0)
提交回复
热议问题