If I've understood what you are trying to do, you can tomcat config point to the src/main/webapp directory, you can then run a mvn compile war:inplace, and it will copy all of classes and dependencies into the appropriate places in your WEB-INF folder. When doing this, it's also helpful to bind add something to your clean phase:
*-* <http://svn.dynamic-info.com/svn/bizbidplace/trunk/pom.xml#><plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>clean</phase> <configuration> <tasks> <echo message="Removing files from WEB-INF\lib and WEB-INF\classes" /> <delete dir="src\main\webapp\WEB-INF\lib" /> <delete dir="src\main\webapp\WEB-INF\classes" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> YYou may also want to check out the jetty6 plugin, it's very good for this sort of thing as well. Greg Case I' On 3/11/06, Brian E. Fox <[EMAIL PROTECTED]> wrote: > > Can't you just run the build again? I have Tomcat setup to point to the > exploded archive in target. Then a change is made and we rebuild. > > -----Original Message----- > From: chetan mehrotra [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 07, 2006 5:39 AM > To: [email protected] > Subject: Exploded directory Structure > > Hi, > I am new to Maven and was going through the features available. Ours is > a big project and currently we were planning for some major changes. > Till now we were using ant to build the app but now we were looking into > the possibility of using Maven. > > One feature that I was not able to find was related to exploded dir > structure. > Till now we were following the exploded structure for development using > WebLogic. In that the java classes were compiled to WEB-INF classes. > But the jsps need not to be copied.. So for a developer if he is > changing the jsp then he can see the result immediately by refreshing on > the browser. > > But in the Maven structure everything is copied to the "target". So for > seeing the changes in jsp the person has to copy the changed jsp every > time. > > Can this be achieved in a better way!!!. > > -- > Chetan Mehrotra > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Greg Case (m) 612-730-6558 (aim) gcase1975
