Link to home
Start Free TrialLog in
Avatar of manugeek
manugeek

asked on

Run Jetty from maven

Hello Experts,

I am writing a testNG automation program in java and one of the requirements of the automation is to start a webserver and start serving static html files from a particular directory, will i be able to do this using maven and jetty ?  Please help

~manu
Avatar of for_yan
for_yan
Flag of United States of America image

In order to start static HTML pages you don't need jetty or any java - just install apache web server

http://httpd.apache.org/download.cgi
Avatar of manugeek
manugeek

ASKER

Thanks for the answer, but i should be able to setup the webserver dynamically and start serving html files on a target machine...
You can start the web server from java program, if that what you meant by setup webserver dynamically

You also can set up toncat and use tomcat to serve static pages, although apache is more effective when serving static pages.
dynamically for me is, install and start. The reason why i am thinking to embed a web server in my code is that my automation will be able to install and start webserver on any target platform without having to worry if it has a webserver installed or not  
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can certainly create and run any java application with maven, of course also the one
which will start jetty or any other web server which you can use or implement yourself
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial