Maven Resources Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "<br> <br> <center>''In process of being migrated from https://home.feodorov.com:9443/wiki/Wiki.jsp?page=MavenResourcesPlugin''</center> <br> =Internal= * Maven#Plugins|Mave...")
 
No edit summary
Line 3: Line 3:
<center>''In process of being migrated from https://home.feodorov.com:9443/wiki/Wiki.jsp?page=MavenResourcesPlugin''</center>
<center>''In process of being migrated from https://home.feodorov.com:9443/wiki/Wiki.jsp?page=MavenResourcesPlugin''</center>
<br>
<br>
=External=
* http://maven.apache.org/plugins/maven-resources-plugin/
* http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
=Internal=
=Internal=



Revision as of 08:17, 28 January 2016



In process of being migrated from https://home.feodorov.com:9443/wiki/Wiki.jsp?page=MavenResourcesPlugin


External

Internal

Variable Substitution in Resource Files

Set "filtering" to true as follows, and all variables will be substituted on copy:

<project>
  ...
  <build>
    ...
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
      ...
    </resources>
    ...
  </build>
  ...
</project>