Note that there are some explanatory texts on larger screens.

plurals
  1. POParent properties inside maven antrun plugin
    primarykey
    data
    text
    <p>There is a multi-module project. Inside the child I need to do some complicated stuff (integration test with deploying to application server and so on). So there is an integrationtest child, and from this module I need the root of the parent to reach other modules. I do not want to use "..". There is a property in integrationtest POM:</p> <pre><code>&lt;properties&gt; &lt;main.basedir&gt;${project.parent.basedir}&lt;/main.basedir&gt; ... &lt;/properties&gt; </code></pre> <p>And there is an antrun plugin with the following content:</p> <pre><code>&lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;render-parameter-sql&lt;/id&gt; &lt;phase&gt;validate&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;echoproperties/&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; </code></pre> <p>In the output, the main.basedir is not resolved:</p> <pre><code>main: [echoproperties] #Ant properties [echoproperties] #Thu Oct 28 09:32:13 CEST 2010 [echoproperties] ant.core.lib=C\:\\Users\\gaborl\\.m2\\repository\\org\\apache\\ant\\ant\\1.8.1\\ant-1.8.1.jar ... [echoproperties] main.basedir=${project.parent.basedir} [echoproperties] maven.dependency.antlr.antlr.jar.path=C\:\\Users\\gaborl\\.m2\\repository\\antlr\\antlr\\2.7.6\\antlr-2.7.6.jar </code></pre> <p>After becoming really angry I decided to ask you how to get around this...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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