java - Running Jersey examples with Maven -


given repo https://github.com/jersey/jersey cloned locally:

what maven command need build , run demos in /examples?

my assumption should able clone repo , have examples work without changing in of *.pom files. correct?

yes, not need edit anything. follow these steps:

  1. git clone git@github.com:jersey/jersey.git
  2. cd jersey
  3. mvn clean install -dskiptests
  4. cd examples/helloworld-webapp/
  5. mvn clean compile exec:java
  6. open: http://localhost:8080/helloworld-webapp/helloworld

if dislike build unstable bleeding edge can checkout release tag:

1.1 (right after clone, or later in parent directory): git checkout tags/2.22.2

the other steps same.


Comments