maven

Consume the web service

  • Once the application server starts, lets run a test-case to consume the webservice mvn --define skip.tests=false -Dtest=WebServiceTest test
  • PS D:\works\hello-web-service> mvn --define skip.tests=false -Dtest=WebServiceTest test   

Launch the application

  • After the code is built launch the application by running mvn jetty:run
  • PS D:\works\hello-web-service> mvn jetty:run                                              
    [INFO] Scanning for projects...

Build the code

  • Now that the code is checked out, let's build it
  • From command line go into the hello-web-service folder and run the Maven build command - mvn clean install
  • PS D:\works> cd .\hello-web-service                                                       

Launch the application

  • After the code is built launch the application by running mvn jetty:run
  • Once the application comes up you can access the application by accessing the url http://localhost
  • RestApp - Access application in browser
  • It is just a simple application that adds 2 numbers and prints their sum
  • Change some number and click submit, to see the results

Build the code

  • Now that the code is checked out, let's build it
  • From command line go into the simple-rest-app folder and run the Maven build command - mvn clean install
  • RestApp - Build code using Maven

Who's online

There are currently 0 users and 0 guests online.

Who's new

  • Saravana Peruma...

Syndicate content