Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Complete working example available at: <a href="http://hg.defun.work/exp/file/tip/maven/properties" rel="nofollow">http://hg.defun.work/exp/file/tip/maven/properties</a></p> <p>Here essential part of <strong>pom.xml</strong>:</p> <pre><code>&lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;properties-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.0-alpha-2&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;initialize&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;read-project-properties&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;configuration&gt; &lt;files&gt; &lt;file&gt;dev.properties&lt;/file&gt; &lt;/files&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;version&gt;1.6&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;compile&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;echo&gt;project.build.sourceEncoding is "${project.build.sourceEncoding}"&lt;/echo&gt; &lt;echo&gt;foo is "${foo}"&lt;/echo&gt; &lt;echo&gt;with-spaces is "${with-spaces}"&lt;/echo&gt; &lt;echo&gt;existent.property is "${existent.property}"&lt;/echo&gt; &lt;echo&gt;nonexistent.property is "${nonexistent.property}"&lt;/echo&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; </code></pre> <p>As you can see <strong>properties-maven-plugin</strong> still at <em>alpha</em> stage, that is why I hate Maven as build tools...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload