Right, I know about the breaking change, but I'm not immediately sure
how that's relevant here since the command I pasted seems to use generate.
Here's what I've just found. This script works fine:
#!/bin/sh
mvn archetype:generate \
-DarchetypeRepository=http://scala-tools.org/repo-snapshots \
-DremoteRepositories=http://scala-tools.org/repo-snapshots \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=2.0-SNAPSHOT \
-DgroupId=$1 \
-Dversion=1.0-SNAPSHOT -DartifactId=$2 \
This one doesn't and fetches 0.8:
#!/bin/sh
mvn archetype:generate \
-DarchetypeRepository=http://scala-tools.org/repo-snapshots \
-DremoteRepositories=http://scala-tools.org/repo-snapshots \
-DarchetypeGroupId=net.liftweb \
-DarchetypeVersion=2.0-SNAPSHOT \
-DgroupId=$1 \
-Dversion=1.0-SNAPSHOT -DartifactId=$2 \
This spares me from having to remember lift-archetype-blank or any of
the other lift-archetype-blah names, since I just select them from the
menu. But it isn't generating with up-to-date data, despite using the
new method.
What am I missing?
Now that I pay closer attention to the output, I see that it is creating
an old archetype when I use the menu. Am I using archetype:create and
just not knowing it when I don't explicitly state on the command line
that I want a blank project? If so then Maven should perhaps make that a
bit more intuitive. :)
On 03/02/2010 02:07 PM, Jeppe Nejsum Madsen wrote:
Nolan Darilek<[email protected]> writes:
OK, I must be missing something.
I copied this almost verbatem from the mini-guide on the Wiki,
modified it and made it a shell script. Here's what I have:
#!/bin/sh
mvn archetype:generate -DarchetypeGroupId=net.liftweb \
-DarchetypeVersion=2.0-SNAPSHOT \
-DremoteRepositories=http://scala-tools.org/repo-snapshots \
-DgroupId=$1 \
-DartifactId=$2
When I run this, then select either blank or basic from the menu, I
get what appears to be outdated code. Specifically, it wants to fetch
Lift 0.8.
What am I missing? It's been a while since I've generated a fresh project.
This works:
mvn archetype:generate \
-DarchetypeRepository=http://scala-tools.org/repo-snapshots \
-DremoteRepositories=http://scala-tools.org/repo-snapshots \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=1.1-SNAPSHOT \
-DgroupId=com.mypackage \
-DartifactId=myproject \
-Dversion=1.0-SNAPSHOT
Have a look here:
http://www.mail-archive.com/[email protected]/msg15034.html
/Jeppe
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.