__artifactId__ in file or directory name are replaced with the artifactId
value.

/Anders

On Sat, Jul 16, 2011 at 04:20, Sebastian Otaegui <[email protected]> wrote:

> I have create an archetype using archetype:create-from-project out of a
> multi module project.
>
> The archetype-metadata.xml is attached and also as a paste below, what I
> would want is that the "dir" can be modified when I run mvn
> archetype:generate by using the archetypeId I provide instead of using a
> fixed one. Can that be done?
>
> http://snipt.net/feniix/archetype-metadataxml
>
> Basically my archetype has this structure:
>
> ├── pom.xml
> └── src
>     ├── main
>     │   └── resources
>     │       ├── archetype-resources
>     │       │   ├── pom.xml
>     │       │   ├── service
>     │       │   │   ├── pom.xml
>     │       │   │   └── src
>     │       │   │       ├── main
>     │       │   │       │   └── java
>     │       │   │       └── test
>     │       │   │           ├── java
>     │       │   │           └── resources
>     │       │   ├── service-def
>     │       │   │   ├── pom.xml
>     │       │   │   └── src
>     │       │   │       └── main
>     │       │   │           └── java
>     │       │   └── service-web
>     │       │       ├── pom.xml
>     │       │       └── src
>     │       │           └── main
>     │       │               ├── resources
>     │       │               │   ├── dao-context.xml
>     │       │               │   ├── hibernate.cfg.xml
>     │       │               │   └── single-context.xml
>     │       │               └── webapp
>     │       │                   └── WEB-INF
>     │       │                       ├── jboss-web.xml
>     │       │                       ├── remoting-servlet.xml
>     │       │                       └── web.xml
>     │       └── META-INF
>     │           └── maven
>     │               └── archetype-metadata.xml
>     └── test
>         └── resources
>             └── projects
>                 └── basic
>                     ├── archetype.properties
>                     └── goal.txt
>
>
>
> Is there any way I can make the directories service-web service
> and service-def be dynamic when I use the archetype?
>
> Thanks in advance
> --
> Those who do not understand Unix are condemned to reinvent it, poorly.
> Any sufficiently recent Microsoft OS contains an ad hoc,
> informally-specified, bug-ridden, slow implementation of half of Unix.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to