Hi Wayne,

On 28/04/2008, at 1:49 PM, Wayne Fay wrote:

In that case, I would probably just use maven-archetype-quickstart and
then edit the pom.xml to change packaging "jar" to "pom". And I might
remove the junit dependency that comes in by default. You will also
need to add the <modules> section etc.

That's my point - why keep doing something repetitively? I was under the impression that maven was designed to save you from silly repetitive (simple) tasks like this :-)
I just assumed that someone by now would have provided a shortcut.

Obviously not.

But I tend to not use archetypes at all, so...

At the very least it would save you having to type those initial xml headers whilst providing a simple starting point.

Wayne

On 4/27/08, Lachlan Deck <[EMAIL PROTECTED]> wrote:
Hi Wayne,

On 27/04/2008, at 11:26 AM, Wayne Fay wrote:

What kind of project are you really looking to build? For what
purpose? The more detail you provide, the better the answer you will
get, generally.


Okay - more details... though I thought it was obvious enough :-)

There's two scenarios that this is needed:
1) creating an initial multi-module project (where the sub-modules will be
created subsequently)
$ mvn create rootParentProject

2) creating sub-module group.
cd rootParentProject
$ mvn create anotherParent
$ cd anotherParent
$ mvn create someModule
$ cd ..
$ mvn create yetAnotherParent
$ cd yetAnotherParent
$ mvn create someModule

which would be quite simple (without any editing of files prior to creating
a sub-module grouping). The above structure would then be:

/pom.xml
/anotherParent/pom.xml
/anotherParent/someModule/pom.xml
/yetAnotherParent/pom.xml
/yetAnotherParent/someModule/pom.xml

On 4/26/08, Lachlan Deck <[EMAIL PROTECTED]> wrote:

I'm sure this must be a FAQ - but I can't see an answer anywhere. Is
there not an archetype for creating a pom.xml with packaging pom?


with regards,
--

Lachlan Deck

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

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

with regards,
--

Lachlan Deck




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

Reply via email to