PDA

View Full Version : Roo webapp



parus17
Sep 7th, 2009, 04:53 AM
Hi,

I started playing with Roo (1.0.0.RC1), using the 'Getting Started with Spring Roo' blog.

The first thing I notice is that after the 'create project' command I end up with a project that builds to a jar, not a war. The <packaging> tag in the pom.xml indicates jar instead of war. Also no jsp, web.xml or mvc configuration is created.

I have the same issues with the svn trunk version.

My environment:
Apache Maven 2.2.1
Java version: 1.6.0_16

Anybody with the same problem?

raul.arabaolaza
Sep 7th, 2009, 06:48 AM
They are created with the first controller, i think until that itīs not sure you are going to have a Web app,

What i donīt understand is why the webapp directory is created with the project.

Regards

Stefan Schmidt
Sep 7th, 2009, 06:39 PM
@parus17,

As explained in this post (http://forum.springsource.org/showthread.php?t=77303) we have made some changes to the way Roo builds up a project when using the shell. This allows Roo generated projects to be used for different types of applications other than just web scaffolding.

@Raul,

This is indeed somewhat inconsistent and should be fixed by us :). The webapp directory should only be created once the user indicates that he wants a web project (by creating a controller). Can you open a Jira ticket for this?

Cheers,
Stefan

raul.arabaolaza
Sep 8th, 2009, 01:41 AM
http://jira.springframework.org/browse/ROO-197 :)