Skip to content
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

Trailing comma for extensions definition of quarkus-maven-plugin:create causes NPE #2712

Closed
rsvoboda opened this issue Jun 4, 2019 · 1 comment · Fixed by #2713
Closed
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@rsvoboda
Copy link
Member

rsvoboda commented Jun 4, 2019

Trailing comma for extensions definition of quarkus-maven-plugin:create causes NPE and mvn command fail

mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create \
    -DprojectGroupId=io.quarkus.qe \
    -DprojectArtifactId=scenario-101-getting-started \
    -DprojectVersion=1.0.0-SNAPSHOT \
    -DclassName="io.quarkus.qe.hello.GreetingResource" \
    -Dextensions=io.quarkus:quarkus-smallrye-jwt,
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:999-SNAPSHOT:create (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.214 s
[INFO] Finished at: 2019-06-04T16:04:03+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create 
  (default-cli) on project standalone-pom: Execution default-cli of goal io.quarkus:quarkus-
  maven-plugin:999-SNAPSHOT:create failed.: NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
@rsvoboda rsvoboda added the kind/bug Something isn't working label Jun 4, 2019
@rsvoboda rsvoboda self-assigned this Jun 4, 2019
@rsvoboda
Copy link
Member Author

rsvoboda commented Jun 4, 2019

I will update CreateProjectMojo to eliminate null from the extensions set.

gsmet added a commit that referenced this issue Jun 4, 2019
Fixes #2712 - filter out null objects from extensions set
@gsmet gsmet added this to the 0.17.0 milestone Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants