user177800
user177800

Reputation:

How to rename a directory with the artifactId when using a Maven archetype?

How can I rename a directory in a custom Maven archetype to be the contents of ${artifactId}?

I have a directory named service/App1 that I want to customize to be service/${artifactId}.

This directory is full of a bunch of files and other directories so I can't just create it with the ${artifactId} I need to keep the contents intact and just rename it.

Upvotes: 11

Views: 6222

Answers (2)

adben
adben

Reputation: 606

You should use in the folder name _rootArtifactId_

Upvotes: 0

cmutt78
cmutt78

Reputation: 859

I was looking into the same thing and found: http://jira.codehaus.org/browse/ARCHETYPE-191

Works like a charm!

Use _____artifactId_____ instead of ${artifactId}

Upvotes: 17

Related Questions