-
Notifications
You must be signed in to change notification settings - Fork 40
apt-maven-plugin with maven-release-plugin fails (NPE) #43
Comments
Could you setup a minimalistic project that we can also debug? |
Thank you for the very fast response. |
I solved the issue by just waiting a few seconds before executing the apt-maven-plugin. Obviously the release plugin creates threads which are in access conflict with the apt-maven-plugin. Maybe someone has another explanation. |
FYI - I'm seeing the same stack trace in a non-maven project. In my case it seems to be related to annotation processing generating a source file with annotations (e.g. @javax.annotation.Generated). I was also seeing it intermittently, indicating there is some timing issue. A simple case outside of our source code did not reproduce the issue. |
I think that (as @guersel also thought) the release plugin uses a fork of the build reactor to do some logic, and therfore it theoretically could cause timing issues. (this explains the intermittent problems) |
If I use the apt-maven-plugin in combination with the maven-release-plugin then a NullpointerException will be thrown:
This happens if I try to release on jenkins with Java 8 (IBM SDK 64bit). A normal build without trying to release is successful. I use version 1.1.3 of the apt-maven-plugin and version 2.5.1 of the maven-release-plugin, configuration of the apt-maven-plugin looks like:
The release build is successful if I debug remotely via Eclipse, maybe there is a timing issue between the release- and apt-plugin?
The text was updated successfully, but these errors were encountered: