Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>How do you specify a custom compilerId that points to your own ajc compiler (that is make compile:compile use an aspectj compiler other than the plexus one)?</p> </blockquote> <p>I don't know how to specify another <code>compilerId</code> than the <a href="http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html" rel="nofollow noreferrer">"official"</a> ones. Not sure it's possible. </p> <p>My understanding is that <a href="http://jira.codehaus.org/browse/MCOMPILER-107" rel="nofollow noreferrer">http://jira.codehaus.org/browse/MCOMPILER-107</a> would solve your problem (AspectJ 1.6+ does support Java 1. 6 right?). Sadly, it's still open.</p> <blockquote> <p>How do you ignore the failure of compile:compile?</p> </blockquote> <p>The <a href="http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html" rel="nofollow noreferrer"><strong><code>compiler:compile</code></strong></a> goal of the <a href="http://maven.apache.org/plugins/maven-compiler-plugin/" rel="nofollow noreferrer">Maven Compiler plugin</a> has a <a href="http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#failOnError" rel="nofollow noreferrer"><strong><code>failOnError</code></strong></a> optional parameter allowing to <em>Indicate whether the build will continue even if there are compilation errors</em>.</p> <pre class="lang-xml prettyprint-override"><code>&lt;project&gt; ... &lt;build&gt; ... &lt;plugins&gt; ... &lt;plugin&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;version&gt;2.2&lt;/version&gt; &lt;configuration&gt; &lt;failOnError&gt;false&lt;/failOnError&gt; ... &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/project&gt; </code></pre> <p>This could be a ugly workaround to the above problem.</p> <blockquote> <p>How do you get maven to run the aspectj:compile goal directly, without ever running compile:compile?</p> </blockquote> <p>The problem is that <strong><code>compiler:compile</code></strong> is bound to the <strong><code>compile</code></strong> phase and that you can't remove a <a href="http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings" rel="nofollow noreferrer">default lifecyle binding</a>. So there is maybe another option but the only one I can think of would be to turn everything <em>off</em> by using a <code>&lt;packaging&gt;pom&lt;packaging&gt;</code> and to rebind all the goals manually (at least for these phases: <code>process-resources</code>, <code>compile</code>, <code>process-test-resources</code>, <code>test-compile</code>, <code>test</code>, <code>package</code>). Schematically, something like this:</p> <pre> process-resources resources:resources compile aspectj:compile process-test-resources resources:testResources test-compile compiler:testCompile test surefire:test package ejb:ejb or ejb3:ejb3 or jar:jar or par:par or rar:rar or war:war install install:install deploy deploy:deploy </pre> <p>That could be another ugly workaround. Disclaimer: not tested but should work.</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.
    1. This table or related slice is empty.
    1. VO
      singulars
      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