Starting with Lift
By Derek Chen-Becker, Marius Danciu, David Pollak and TylerWeirMarch 28, 2009
I typed in
mvn archetype:generate -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=1.0 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=demo.helloworld \
-DartifactId=helloworld \
-Dversion=1.0-SNAPSHOT
in a Windows XP cmd prompt and got the following, before which it ran for a long time and ended up with "BUILD FAILURE", upon which I tried again and got what follows. All Maven enviroment vars are correctly set ( no JAVA_OPTS, though) as in instructions on the Maven web site (Apache).
I know nothing about Maven, which is not nice, but starting on Lift (after starting out with Scala), I thought would mechanically try out building the first Lift app as in instructions in the above book. Have Maven 2.2.1, Scala 2.7 and JDK 6 u 19 installed correctly and all related env vars set correctly. Am experienced Java programmer looking right now for a quick answer to this build failure... and haven't bothered to look even for any obvious errors in what I'm doing which doesn't seem to be much...while I'm working on something else.
<<<<PROBLEM OUTPUT, both without and with mvn -e>>
d:\LiftWorkspace>mvn archetype:generate -U
-DarchetypeGroupId=net.liftweb
-Darc
hetypeArtifactId=lift-archetype-blank -DarchetypeVersion=1.0
-DremoteRepositorie
s=http://scala-tools.org/repo-releases
-DgroupId=demo.helloworld -DartifactId=h
elloworld
-Dversion=1.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO] Searching
repository for plugin with prefix: 'archetype'.
[INFO]
org.apache.maven.plugins: checking for updates from central
[INFO]
org.codehaus.mojo: checking for updates from central
[INFO] artifact
org.apache.maven.plugins:maven-archetype-plugin: checking for up
dates from
central
[INFO]
------------------------------------------------------------------------
[INFO]
Building Maven Default Project
[INFO] task-segment:
[archetype:generate] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO]
Preparing archetype:generate
[INFO] No goals needed for project -
skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO]
Generating project in Interactive mode
[WARNING] No archetype found in Remote
catalog. Defaulting to internal Catalog
[INFO]
------------------------------------------------------------------------
[ERROR]
BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO]
For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 8 seconds
[INFO] Finished at: Tue Apr 27 15:45:14 IST
2010
[INFO] Final Memory: 11M/27M
[INFO]
------------------------------------------------------------------------
d:\LiftWorkspace>mvn
-e archetype:generate -U -DarchetypeGroupId=net.liftweb
-D
archetypeArtifactId=lift-archetype-blank -DarchetypeVersion=1.0
-DremoteReposito
ries=http://scala-tools.org/repo-releases
-DgroupId=demo.helloworld -DartifactI
d=helloworld
-Dversion=1.0-SNAPSHOT
+ Error stacktraces are turned on.
[INFO] Scanning
for projects...
[INFO] Searching repository for plugin with prefix:
'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from
central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO]
artifact org.apache.maven.plugins:maven-archetype-plugin: checking for
up
dates from central
[INFO]
------------------------------------------------------------------------
[INFO]
Building Maven Default Project
[INFO] task-segment:
[archetype:generate] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO]
Preparing archetype:generate
[INFO] No goals needed for project -
skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO]
Generating project in Interactive mode
[WARNING] No archetype found in Remote
catalog. Defaulting to internal Catalog
[INFO]
------------------------------------------------------------------------
[ERROR]
BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO]
Trace
org.apache.maven.BuildFailureException
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:715)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:284)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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)
Caused by:
org.apache.maven.plugin.MojoFailureException
at
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
te(CreateProjectFromArchetypeMojo.java:204)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
... 17 more
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 4 seconds
[INFO] Finished at: Tue Apr 27 15:57:27 IST
2010
[INFO] Final Memory: 11M/28M
[INFO]
------------------------------------------------------------------------
d:\LiftWorkspace>
Imtiaz
Imtiaz Ahmed H E