My Scala Base

Adventures in Scala

While trying to get the latest version of the lift web framework (0.3.0) for Scala, I updated to maven 2.0.8, and then per the announcement instructions typed...

mvn archetype:create -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=0.3.0 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=com.test \
-DartifactId=ilikeit


Thought 1: why I have to type archetype 5 times?

Thought 2: any software that uses the words "archetype" and "artifact" is probably waaay too abstracted or just fancies itself too much. That's Maven for you.


Oh well, just close my eyes, and let fly...

And... there goes Maven again, doing its thing, downloading a lot of stuff, more poms, codehaus plexus, velocity, oro, logging, xml foo. TIme for a coffee.

Well, it finished and maven claims success, but it's lying. It didn't work. See below.

The right way to go to get lift 0.3.0 is still by following the good old svn-based cheat sheet instructions on the liftweb wiki. You don't have to type all that archetype frou frou, just "mvn install". But either way, it's still maven and still pulls in seemingly the entire world o' java. :-)

Makes me wonder how much maven does lift really need if you're not a lift platform committer, just a regular web app developer? Eventually, we should just be able to get a simple sbaz one-liner, right?

---------------------------

For those still interested, I did get some warnings trying to get lift 0.3.0 using the blog announcement instructions (on windows vista):

[...snip...]
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :
template = archetype-resources/pom.xml [line 43,column 16] : ${scala.version} is
not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :
template = archetype-resources/pom.xml [line 86,column 25] : ${scala.version} is
not a valid reference.
[INFO] ********************* End of debug info from resources from generated POM
***********************
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :
template = archetype-resources/src/main/webapp/scripts/jquery-1.2.1.js [line 9,c
olumn 4] : $Date is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :
template = archetype-resources/src/main/webapp/scripts/jquery-1.2.1.js [line 10,
column 4] : $Rev is not a valid reference.
[INFO] Archetype created in dir: c:\temp\lifttest1\ilikeit
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[...snip total time, memory usage msg...]

Share 

Add a Comment

You need to be a member of My Scala Base to add comments!

Join this social network

About

Steve Yen Steve Yen created this social network on Ning.

Create your own social network!

© 2009   Created by Steve Yen on Ning.   Create Your Own Social Network

Badges  |  Report an Issue  |  Privacy  |  Terms of Service