I've got a projet with 121 class. I use Maven to compile. I start by generate source with lombok-maven-plugin then i use aspectj-maven-plugin to compile and weave.
But, when I'm trying to compile with aspectj-maven-plugin. But when the step "Compiling and weaving" come I get :
[DEBUG] Compiling and weaving 121 sources to C:\eclipse\Dev01\foo\target\classes
[DEBUG] Arguments file written : C:\eclipse\Dev01\foo\target\classes\builddef.lst
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
[DEBUG] Pipelining compilation
[ERROR] Internal compiler error: java.lang.Exception: java.lang.NullPointerException at org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:172)
C:\eclipse\Dev01\foo\target\generated-sources\delombok\com\net\internet\foo\cc\menumobilecc\po\Bar.java:0
(no source information available)
[DEBUG] weaver operating in reweavable mode. Need to verify any required types exist.
The ajc command line is approximately 40000 characters along and it's look like this :
ajc -Xajruntimetarget:1.5 -1.8 -encoding Cp1252 -showWeaveInfo -source 1.8 -target 1.8 -verbose -classpath <allBuildPath> -d <allClassesInAbsolutPath>
This kind of compilation work for all projects but not for this one.
<build>
<plugins>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.10.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>delombok</goal>
</goals>
</execution>
</executions>
<configuration>
<addOutputDirectory>false</addOutputDirectory>
<outputDirectory>${project.build.directory}/generated-sources/delombok</outputDirectory>
<sourceDirectory>src/main/java</sourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.11</version>
<configuration>
<showWeaveInfo>true</showWeaveInfo>
<complianceLevel>1.8</complianceLevel>
<source>1.8</source>
<target>1.8</target>
<verbose>true</verbose>
<sources>
<source>
<basedir>${project.build.directory}/generated-sources/delombok</basedir>
<excludes>
<exclude>**\src\main\java\*</exclude>
</excludes>
</source>
</sources>
</configuration>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>1.9.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<packagingExcludes>**/.svn/</packagingExcludes>
<archive>
<manifestEntries>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
</manifestEntries>
</archive>
<warSourceDirectory>/WebContent</warSourceDirectory>
<webappDirectory>WebContent</webappDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/WebContent/WEB-INF/lib</directory>
</fileset>
<fileset>
<directory>${project.basedir}/WebContent/WEB-INF/classes</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>pre-clean</id>
<phase>pre-clean</phase>
<configuration>
<target>
<delete dir="./target/test-classes" quiet="true" />
<delete dir="./target/generated-sources/delombok" quiet="true" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>install</id>
<phase>install</phase>
<configuration>
<target>
<delete dir="./target/test-classes" quiet="true" />
<delete dir="./target/generated-sources/delombok" quiet="true" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
If anybody can save me ?