Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To elaborate on edbrannin's alternate solution:</p> <pre><code>&lt;project&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.yourcompany&lt;/groupId&gt; &lt;artifactId&gt;yourproject&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;checkParam&lt;/id&gt; &lt;phase&gt;initialize&lt;/phase&gt; &lt;goals&gt;&lt;goal&gt;run&lt;/goal&gt;&lt;/goals&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;fail message="'env' property must be set" unless="env"/&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/project&gt; </code></pre> <p>will give you the following output:</p> <pre><code>[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An Ant BuildException has occured: 'env' property must be set </code></pre> <p>IMHO the most straightforward way to do it (the one I'd go for personally).</p> <p>You could even control a set of allowed values using a nested <code>&lt;condition&gt;</code> containing <code>&lt;or&gt;</code> and <code>&lt;equals&gt;</code> tags (see the Ant manual: <a href="http://ant.apache.org/manual/Tasks/conditions.html" rel="nofollow noreferrer">http://ant.apache.org/manual/Tasks/conditions.html</a>)</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