Strange. I just tried again from scratch (removed .m2/repository  
again) and got:

mvn -e archetype:generate -U \
         -DarchetypeGroupId=net.liftweb \
         -DarchetypeArtifactId=lift-archetype-basic \
         -DarchetypeVersion=0.10-SNAPSHOT \
         -DremoteRepositories=http://scala-tools.org/repo-releases \
         -DgroupId="com.smefinancialgroup" -DartifactId="homepage"
+ 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 updates 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] Setting property: classpath.resource.loader.class =>  
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] Archetype repository missing. Using the one from  
[net.liftweb:lift-archetype-basic:RELEASE -> 
http://scala-tools.org/repo-releases 
] found in catalog internal
[INFO] snapshot net.liftweb:lift-archetype-basic:0.10-SNAPSHOT:  
checking for updates from lift-archetype-basic-repo
Downloading: 
http://scala-tools.org/repo-releases/net/liftweb/lift-archetype-basic/0.10-SNAPSHOT/lift-archetype-basic-0.10-SNAPSHOT.jar
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] The desired archetype does not exist (net.liftweb:lift- 
archetype-basic:0.10-SNAPSHOT)
[INFO]  
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: The desired archetype does not  
exist (net.liftweb:lift-archetype-basic:0.10-SNAPSHOT)
        at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
579)
        at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeTaskSegments(DefaultLifecycleExecutor.java:227)
        at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:585)
        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: The desired  
archetype does not exist (net.liftweb:lift-archetype-basic:0.10- 
SNAPSHOT)
        at  
org 
.apache 
.maven 
.archetype 
.mojos 
.CreateProjectFromArchetypeMojo 
.execute(CreateProjectFromArchetypeMojo.java:201)
        at  
org 
.apache 
.maven 
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
558)
        ... 16 more
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Dec 24 09:43:16 EST 2008
[INFO] Final Memory: 8M/14M
[INFO]  
------------------------------------------------------------------------


with

scalac -version
Scala compiler version 2.7.2.final -- Copyright 2002-2008, LAMP/EPFL

So it appears that maven can't find an archetypeVersion of 0.10- 
SNAPSHOT... Strange as I assume others can...

My maven version is:
Maven version: 2.0.9
Java version: 1.5.0_16
OS name: "mac os x" version: "10.5.6" arch: "i386" Family: "unix"

Time for Breakie I think...

Marc

On 24/12/2008, at 9:18 AM, David Pollak wrote:
> Looks like you have a very old archetype that's refering to Scala  
> 2.7.1
>
>
> On Dec 23, 2008 2:15 PM, "Marc Boschma" <[email protected]>  
> wrote:
>
> It refers to 0.10-SNAPSHOT. I added the
>    <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-util</artifactId>
>       <version>0.10-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-webkit</artifactId>
>       <version>0.10-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-mapper</artifactId>
>       <version>0.10-SNAPSHOT</version>
>     </dependency>
>
> after
>
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-core</artifactId>
>       <version>0.10-SNAPSHOT</version>
>     </dependency>
>
> In the pom.xml
>
> I also edited the Boot.scala file as per a pervious email where you  
> documented the impact of the changes.
>
> Something is still not quite there as I get the following error:
> HTTP ERROR: 500
> scala/actors/AbstractActor
> RequestURI=/
>
> Caused by:
> java.lang.NoClassDefFoundError: scala/actors/AbstractActor at  
> net.liftweb.http.LiftRules$.rewriteTable(LiftRules.scala:372) at  
> net.liftweb.http.LiftFilterTrait$$anonfun$doFilter 
> $1.apply(LiftServlet.scala:480) at net.liftweb.http.LiftFilterTrait$ 
> $anonfun$doFilter$1.apply(LiftServlet.scala:476) at  
> net.liftweb.http.RequestVarHandler$$anonfun$apply$3$$anonfun$apply$4$ 
> $anonfun$apply$5.apply(Vars.scala:150) at  
> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:33) at  
> net.liftweb.http.RequestVarHandler$$anonfun$apply$3$$anonfun$apply 
> $4.apply(Vars.scala:149) at  
> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:33) at  
> net.liftweb.http.RequestVarHandler$$anonfun$apply$3.apply(Vars.scala: 
> 148) at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:33)  
> at net.liftweb.http.RequestVarHandler$.apply(Vars.scala:147) at  
> net.liftweb.http.LiftFilterTrait$class.doFilter(LiftServlet.scala: 
> 475) at net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:496)  
> at org.mortbay.jetty.servlet.ServletHandler 
> $CachedChain.doFilter(ServletHandler.java:1115) at  
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 
> 361) at  
> org 
> .mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 
> 216) at  
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 
> 181) at  
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 
> 766) at  
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 
> 417) at  
> org 
> .mortbay 
> .jetty 
> .handler 
> .ContextHandlerCollection.handle(ContextHandlerCollection.java:230)  
> at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)  
> at  
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 
> 152) at org.mortbay.jetty.Server.handle(Server.java:324) at  
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 
> 534) at org.mortbay.jetty.HttpConnection 
> $RequestHandler.headerComplete(HttpConnection.java:864) at  
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at  
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at  
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at  
> org 
> .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 
> 409) at org.mortbay.thread.QueuedThreadPool 
> $PoolThread.run(QueuedThreadPool.java:522)
> On 24/12/2008, at 9:09 AM, David Pollak wrote: > Marc, > > Does the  
> pom.xml file refer to Lift 0...
>
> >

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to