Hi,
first of all I apologize if this is not the correct list to post, and if
that is the case, please tell me where can I get some help.
I have been trying to deal with maven archetype:generate-from-project goal,
with a multi-module project. My project has 3 modules, called:
booking
booking-ejb
booking-ear
I succesfully create the archetype, install, and can create a project from
it. What I am not being able is to change the name of the 3 folders
according to the artificat of the implementing project. Let's say, I want to
create a project called 'myproject', and I want to use my maven archetype
for that. I want that the archetype creates the 3 modules with names:
myproject
myproject-ejb
myproject-ear
I am able to give the artifacts of these modules the name I want, but not
the folders.
In the archetype-metadata.xml I have something like:
...
<modules>
<module id="${attributeId}-ejb" dir="booking-ejb"
name="${attribute-id}-ejb">
..
If I change booking-ejb, to let's say ${attributeId}-ejb, the archetype
doesn't work as this seem to be the directory in which it looks for the
module files. But I want that this folder changes in the same way the
artifact-id does.
Any suggestions?
By the way, what is the attribute 'name' for?
Thank you a lot!
--
Un saludo,
Miguel Cohnen de la Cámara