[Lift] Would appreciate quick help...obvious to other, maybe ?

10 views
Skip to first unread message

Imtiaz Ahmed H E

unread,
Apr 27, 2010, 6:32:30 AM4/27/10
to lif...@googlegroups.com
Hi !
 
Could someone tell me where I may have err'd..
 
I'm trying to get started with Lift...
 
 
Following the instructions in

Starting with Lift

By Derek Chen-Becker, Marius Danciu, David Pollak and TylerWeir

March 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

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

David Bernard

unread,
Apr 27, 2010, 7:05:47 AM4/27/10
to lif...@googlegroups.com
Since 23 april there is a BREAKING change in maven plugin So try

mvn archetype:generate -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=1.0 \
-DarchetypeRepository=http://scala-tools.org/repo-releases \
-DgroupId=demo.helloworld \
-DartifactId=helloworld \
-Dversion=1.0-SNAPSHOT

and vote for http://jira.codehaus.org/browse/ARCHETYPE-300 to unbreak the issue

/davidB

Imtiaz Ahmed H E

unread,
Apr 27, 2010, 7:41:33 AM4/27/10
to lif...@googlegroups.com, david.be...@gmail.com
That worked.

Thanks.

I had downloaded Maven 2.2.1 on April 2nd though.

Okay, this has something to do with the downloaded stuff during the build,
me not knowing anything about Maven yet ?

Thanks

And I'm voting as David to unbreak
http://jira.codehaus.org/browse/ARCHETYPE-300 since this can cause
unpardonable breaks in the newbie's efforts when he is faithfully following
instructions OR, change the instructions forthwith...Thanks in anticipation.

Imtiaz

Imtiaz Ahmed H E
Bangalore, India

d:\LiftWorkspace>mvn
archetype:generate -U -DarchetypeGroupId=net.liftweb -Darch
etypeArtifactId=lift-archetype-blank -DarchetypeVersion=1.0 -DarchetypeRepositor
y=http://scala-tools.org/repo-releases -DgroupId=demo.helloworld -DartifactId=he
lloworld -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] Archetype defined by properties
Downloading:
http://scala-tools.org/repo-releases/net/liftweb/lift-archetype-bla
nk/1.0/lift-archetype-blank-1.0.jar
10K downloaded (lift-archetype-blank-1.0.jar)
[INFO] Using property: groupId = demo.helloworld
[INFO] Using property: artifactId = helloworld
[INFO] Using property: version = 1.0-SNAPSHOT
[INFO] Using property: package = demo.helloworld
Confirm properties configuration:
groupId: demo.helloworld
artifactId: helloworld
version: 1.0-SNAPSHOT
package: demo.helloworld
Y:
[INFO] -------------------------------------------------------------------------
---
[INFO] Using following parameters for creating OldArchetype:
lift-archetype-blan
k:1.0
[INFO] -------------------------------------------------------------------------
---
[INFO] Parameter: groupId, Value: demo.helloworld
[INFO] Parameter: packageName, Value: demo.helloworld
[INFO] Parameter: package, Value: demo.helloworld
[INFO] Parameter: artifactId, Value: helloworld
[INFO] Parameter: basedir, Value: d:\LiftWorkspace
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] ********************* End of debug info from resources from generated
POM
***********************
[INFO] OldArchetype created in dir: d:\LiftWorkspace\helloworld
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55 seconds
[INFO] Finished at: Tue Apr 27 16:59:27 IST 2010
[INFO] Final Memory: 11M/28M
[INFO] ------------------------------------------------------------------------
d:\LiftWorkspace>
Reply all
Reply to author
Forward
0 new messages