Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An annotation processor exception

When i build project using maven and netbeans i got this exception : "java.lang.RuntimeException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jaxen.FunctionContext not found".

In this article people said that solution is to disable annotation processing in NB, but i don't have this checkbox into the build settings of my project. enter image description here Maybe someone knows how to solve this problem or how to disable annotation processing

like image 854
yuriy.stos Avatar asked Jun 02 '26 08:06

yuriy.stos


1 Answers

As for disabling annotations processing part, it's controlled by -proc:none option for javac; thus you can set

 <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.1</version>
    <configuration>
      <proc>none</proc>
    </configuration>
  </plugin>
like image 80
patrungel Avatar answered Jun 05 '26 00:06

patrungel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!