My post didn't go through to the other group, and one issue is with
the official starting with lift guide on the lift site anyway.
In the lift book under section 1.3
-DarchetypeVersion=0.9 \
can be changed to 1.0
I ran the command from the book and maven downloaded scala 2.7.1 for
some reason. I
eventually deleted the helloword folder, my <home>/.m2 folder and
started all over and scala 2.7.3 was finally downloaded correctly.
Another issue is extra spaces after the backslash (\) at the end of
lines.
I copied the maven command from section 2.2 in the 'starting with
lift' guide:
http://liftweb.net/docs/getting_started/mod_master.html
and maven barfed this out. It was because of the extra spaces at the
ends of lines. Apparently only the HTML version of the book had the
extra spaces, not
the pdf.
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at
java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:
143)
at java.lang.StringBuffer.setLength(StringBuffer.java:153)
at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java:
824)
at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:777)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
./newmaven.sh: line 3: -DarchetypeGroupId=net.liftweb: command not
found
./newmaven.sh: line 4: -DarchetypeArtifactId=lift-archetype-basic:
command not found
./newmaven.sh: line 5: -DarchetypeVersion=1.0: command not found
./newmaven.sh: line 6:
-DremoteRepositories=
http://scala-tools.org/repo-releases: No such
file
or directory
./newmaven.sh: line 7: -DgroupId=com.liftworkshop: command not found
./newmaven.sh: line 8: -DartifactId=todo: command not found
./newmaven.sh: line 9: -Dversion=0.1-SNAPSHOT: command not found
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at
java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:
143)
at java.lang.StringBuffer.setLength(StringBuffer.java:153)
at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java:
824)
at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:777)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
./newmaven.sh: line 3: -DarchetypeGroupId=net.liftweb: command not
found
./newmaven.sh: line 4: -DarchetypeArtifactId=lift-archetype-basic:
command not found
./newmaven.sh: line 5: -DarchetypeVersion=1.0: command not found
./newmaven.sh: line 6:
-DremoteRepositories=
http://scala-tools.org/repo-releases: No such
file
or directory
./newmaven.sh: line 7: -DgroupId=com.liftworkshop: command not found
./newmaven.sh: line 8: -DartifactId=todo: command not found
./newmaven.sh: line 9: -Dversion=0.1-SNAPSHOT: command not found