just need a sanity check here :-)

I'm trying to test some updates to an archetype. So I've edited a particular file, for example, such as the following:

$ emacs my-archetype/src/main/resources/archetype-resources/src/main/ resources/Properties

I've cleaned my local repo of the artifacts in the same groupId and then re-installed it:
$ mvn -o clean install

But then when I generate a project from the archetype the adjustments I've made don't appear.
$ cd ~/
$ mkdir test && cd test
$ mvn -o archetype:generate -DarchetypeCatalog=local
<...>
Choose archetype:
1: local -> my-archetype (Yada yada)
<...>
Choose a number:  (1/2/3/4): 1
Define value for groupId: : my.grouping
Define value for artifactId: : myapp
Define value for version:  1.0-SNAPSHOT: :
Define value for package:  my.grouping: :
Confirm properties configuration:
<...>
Y: :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37 seconds
[INFO] Finished at: Wed Apr 22 17:57:04 EST 2009
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------
$
$ less myapp/src/main/resources/Properties --> still doesn't contain the text I've added :-/

So digging deeper:
$ cp ~/.m2/repository/my/groupId/my-archetype/2.0.18-SNAPSHOT/my- archetype-2.0.18-SNAPSHOT.jar .
$ mv my-archetype-2.0.18-SNAPSHOT.jar my-archetype-2.0.18-SNAPSHOT.zip
$ unzip my-archetype-2.0.18-SNAPSHOT.zip
$ less archetype-resources/src/main/resources/Properties --> looks good!

There's gotta be something obvious I'm missing ... any clues? Is there some cache I've overlooked? :-)
Thanks.

Is maven caching the old versions (that I've deleted) somewhere else?
How do I ensure that I'm testing what I've installed?
Thanks.

with regards,
--

Lachlan Deck


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to