Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try multiple executions of the compiler plugin. Using <code>default-compile</code> as the first execution ID adds the new config to Maven's default compiler execution. Use the <code>&lt;includes/&gt;</code> config elements in the default execution to compile the enums first. For the second execution you'd use a combination of <code>&lt;includes&gt;</code> and <code>&lt;excludes&gt;</code> , where <code>&lt;includes&gt;</code> would be all of your code and excludes would be the enums already compiled.</p> <p>I think this will work for your example program but I did not test it. I have tested something similar before with Maven 3 and it worked fine.</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;version&gt;2.3.2&lt;/version&gt; &lt;configuration&gt; &lt;source&gt;1.6&lt;/source&gt; &lt;target&gt;1.6&lt;/target&gt; &lt;/configuration&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;default-compile&lt;/id&gt; &lt;goals&gt;&lt;goal&gt;compile&lt;/goal&gt;&lt;/goals&gt; &lt;configuration&gt; &lt;includes&gt; &lt;include&gt;**/Actions.*&lt;/include&gt; &lt;/includes&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;second&lt;/id&gt; &lt;goals&gt;&lt;goal&gt;compile&lt;/goal&gt;&lt;/goals&gt; &lt;configuration&gt; &lt;includes&gt; &lt;include&gt;**/*&lt;/include&gt; &lt;/includes&gt; &lt;excludes&gt; &lt;exclude&gt;**/Actions.*&lt;/exclude&gt; &lt;/excludes&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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