Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make changes on a project and running it through IDE without deploying it on server

I want to know how I can make changes in my code and run it on server directly from my eclipse IDE in place of converting my project every time to war file and deploy it on server.

I don't want to see my changes reflecting only by converting it to war file and deploying it every time on server.. can i see them on the fly directly through my eclipse IDE as soon as make some changes..

Plz help me i don't know exactly what to search on google .So seeking "SO" help.

Thanks in advance.

PS: Sorry My bad!!! I should have given more information... I am working on Spring Hibernate based project ...which is having only java files

like image 870
Anupam Gupta Avatar asked Apr 19 '11 06:04

Anupam Gupta


2 Answers

You can use the Eclipse-WTP Plugin to handle your Web-Projects (http://www.eclipse.org/webtools). With this plugin you can create "dynamic web projects" which can deployed on a specified (Tomcat) server.

If you use maven and your project is structured like a maven-webapp(webapp-archetype), you can also use the m2eclipse-plugin to import your maven-project and run it on an server.

like image 144
RicoZ Avatar answered Sep 29 '22 08:09

RicoZ


Following up on sjr's answer, the wicket quickstart archetype contains such a main class. Here it is:

Start.java (HEAD)

There is nothing wicket-specific about it, it can be used to run any Java webapp project

Copy it to src/test/java and execute it as a main class

you will need the following dependencies in your pom:

<dependency>
    <groupId>org.eclipse.jetty.aggregate</groupId>
    <artifactId>jetty-all-server</artifactId>
    <version>7.3.0.v20110203</version>
    <scope>provided</scope>
</dependency>
like image 36
Sean Patrick Floyd Avatar answered Sep 29 '22 10:09

Sean Patrick Floyd