Looks like I'm doing something very wrong, cause I followed that
tutorial and it still won't work.
In class com.cosylab.App.java I defined this:
String name = ${xxx};
note that I've also tried doing it like this:
String name = $xxx;
So it's just a simple project. I've created an archetype.properties
file, which defines
xxx=my specific value
and after that ran mvn archetype-create-from-project, went to
target/generated-sources/archetype, installed the generated archetype,
created a new project with it, and still, it remains
String name = ${xxx};
The xxx was not replaced by "my specific value"
So what am I doing wrong?
This is the source code if you're interested, but basically it's just an
application generated from the quickstart archetype:
http://users.cosylab.com/~cgajo/archt.zip
Thanks, Csaba
Adam Leggett (UPCO) wrote:
I think to define custom filtered properties you need to create an
archetype.properties file:
http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-with-property-file.html
Thanks,
Adam
On Mon, 2009-11-09 at 14:21 +0100, Gajo Csaba wrote:
Hello,
I have a very simple question regarding archetypes. I've created my own
basic archetype, and in archetype-resources/src/main/java/App.java I
wrote the following:
package $xxx
Installed the archetype, created a new project with it and also added
the -Dxxx=abc parameter... and it remained $xxx. I was expecting $xxx to
be replaced with abc. Is this not how it's supposed to work?
Thanks, Csaba
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]