Skip to content

Maven archetype example fails with NullPointerException #5285

@jessebarnum

Description

@jessebarnum

When I tried to follow the instructions for creating a sample project at https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/getting-started.html, I get a NullPointerException:

mkdir JerseyExample2

cd JerseyExample2

mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false -DgroupId=com.example -DartifactId=simple-service -Dpackage=com.example -DarchetypeVersion=2.39

cd simple-service/

mvn clean test


T E S T S

Running com.example.MyResourceTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE!
com.example.MyResourceTest.testGetIt() Time elapsed: 0.004 sec <<< FAILURE!
java.lang.NullPointerException
at com.example.MyResourceTest.testGetIt(MyResourceTest.java:45)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions