-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jib-maven-plugin:2.5.0:build failed - NullPointerException in getSpringBootRepackageConfiguration #2687
Comments
Sorry, this is from #2526. I can't reproduce this. (I am interested in seeing a reproducible sample project to understand why this can happen so that we can prevent similar issues in the future, but it's totally up to you.) However, it's an easy fix anyway. |
@tomikmar UPDATE: the fix in 2.5.1 is problematic. Use Jib Maven 2.5.2. |
Thanks for the fix. This is the minimal example (3 files) that you can use to reproduce the issue. Command:
jib-error\pom.xml
jib-error\my-service\pom.xml
jib-error\my-service\src\main\java\MyService.java
Maven
Logs
|
Thanks for the sample. I guess the issue is reproducible when
OTOH, I wasn't able to reproduce it with the usual Spring Boot quickstart project whose parent POM points to |
Environment:
Description of the issue:
After upgrading from 2.4.0 to 2.5.0 we have NullPointerException during build. It looks that the issue is in getSpringBootRepackageConfiguration when spring-boot-maven-plugin configuration section is not provided.
Steps to reproduce:
Use spring-boot-maven-plugin without configuration section (we also don't have this section in our parent pom):
Workaround:
Just add configuration (may be empty):
Log output:
Additional Information:
It may be connected with #2565
The text was updated successfully, but these errors were encountered: