On Jan 5, 2006, at 8:03 PM, Wendy Smoak wrote:

It would be hard for Maven to know what things to add.  Some projects
contain only a webapp, some contain only a jar, some both, sometimes
the site is a separate module.  I usually run mvn archtype:create
multiple times to get started.

Which is why it seems better to be able to call a:create multiple times (or with multiple options) on the same project.

Does the Torque module create a jar that gets used in the webapp?  If
so, make it a separate module, and have the webapp depend on it.  Then
have a parent pom that lists the two modules so you can build the
whole thing at once.

Torque actually is built with Maven, but it appears to support only Maven 1.0. I can't figure out how to get it to do what I need inside Maven 2.0. I think I'll have to install Maven 1.0 and just manually copy over the resulting .jar until they catch up.

In addition, both 'torque' and 'webapp' could have their own src/site
directories, if they were complex enough to need separate
documentation.

I don't think they are that complicated, and you really can't use the torque stuff built for my project outside of the webapp. This is why I wasn't sure if it should even be a separate module (although, theoretically, the torque stuff would change much less often than the webapp).

In any case, I don't really want separate sites for the two.

... and if you're interested, Struts now has Maven 2 build files for
(most of) 1.3.x.  (Just the jars, not the example apps yet.)  There's
also a Struts Action Blank Archetype in the sandbox to help you get
started.  :)

http://svn.apache.org/repos/asf/struts/sandbox/trunk/archetypes/ action-blank/README.txt

Yes, I had noticed that. Thanks for the link, tho!


--
Rick



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to