Thanks that appears to have most of the build working, it now fails with the
below error. However I can build the module I need to, so if there is no
immediate answer don't worry.

Thanks again for you help.


Cheers
Jono


[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Building Maven Default Project
[INFO] [INFO]    task-segment: [archetype:generate] (aggregator-style)
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Preparing archetype:generate
[INFO] [INFO] No goals needed for project - skipping
[INFO] [INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] [INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] [INFO] Setting property: resource.loader => 'classpath'.
[INFO] [INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [INFO] [archetype:generate {execution: default-cli}]
[INFO] [INFO] Generating project in Batch mode
[INFO] [INFO] Archetype defined by properties
[INFO] [INFO] snapshot net.liftweb:lift-archetype-blank:2.0-SNAPSHOT:
checking for updates from lift-archetype-blank-repo
[INFO] Downloading:
/Users/jono/.m2/repository/net/liftweb/lift-archetype-blank/2.0-SNAPSHOT/lift-archetype-blank-2.0-SNAPSHOT.jar
[INFO] [INFO] Unable to find resource
'net.liftweb:lift-archetype-blank:jar:2.0-SNAPSHOT' in repository
lift-archetype-blank-repo (/Users/jono/.m2/repository)
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] BUILD FAILURE
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] The desired archetype does not exist
(net.liftweb:lift-archetype-blank:2.0-SNAPSHOT)
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] For more information, run Maven with the -e switch
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Total time: 6 seconds
[INFO] [INFO] Finished at: Thu Jan 28 19:38:32 EST 2010
[INFO] [INFO] Final Memory: 13M/527M
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] ..FAILED (8.8 s)
[INFO]   The build exited with code 1. See
/Users/jono/Documents/workspace/liftweb/archetypes/lift-archetype-blank/target/it/sample/build.log
for details.
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 0, Failed: 1, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] *  sample
[INFO] -------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] : org.apache.maven.plugin.invoker.invokersess...@7dbdc3af
1 build failed.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 33 minutes 11 seconds
[INFO] Finished at: Thu Jan 28 19:38:33 EST 2010
[INFO] Final Memory: 105M/527M
[INFO]
------------------------------------------------------------------------




2010/1/28 Indrajit Raychaudhuri <indraj...@gmail.com>

> Can you please rename the folder "read only" to read_only and give it
> another try?
>
> Cheers, Indrajit
>
>
> On 28/01/10 12:24 PM, Jonathan Ferguson wrote:
>
>> Hi all,
>>
>> I get the following error when attempting to build the lift source code.
>>
>> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
>> "-DpackageLinkDefs=file:///Users/jono/Documents/workspace/read
>>
>> only/liftweb/framework/lift-base/lift-common/target/packageLinkDefs/properties"
>>
>> I've followed the instructions found on the git wiki (
>> http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-source),
>> my environment
>> details are as follows: OSX 10.6.2, Java 1.6, Maven 2.2.0, scala 2.7.7,
>> I have the following maven options
>> -Dfile.encoding=utf8 -Xmx1024m -Xms512m and I am building from the root
>> of the lift project.
>>
>> I've also tried removing the org directory from the maven repository as
>> it was mentioned in a previous post titled "Fwd: Build failed in Hudson:
>> Lift #1307" - see
>>
>> http://groups.google.com/group/liftweb/browse_thread/thread/154810e3419916a8/4ed7332f290fffbf?lnk=gst&q=packageLinkDefs#4ed7332f290fffbf
>> <
>> http://groups.google.com/group/liftweb/browse_thread/thread/154810e3419916a8/4ed7332f290fffbf?lnk=gst&q=packageLinkDefs#4ed7332f290fffbf
>> >
>>
>> Any clues as to what I'm doing wrong would be greatly appreciated. For
>> rather more verbose details as to my environment and the error can be
>> found below.
>>
>> Jono.
>>
>>
>>
>> $echo $MAVEN_OPTS
>> -Dfile.encoding=utf8 -Xmx1024m -Xms512m
>>
>> $java -version
>> java version "1.6.0_17"
>> Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
>> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
>>
>> $mvn -version
>> Apache Maven 2.2.0 (r788681; 2009-06-26 23:04:01+1000)
>> Java version: 1.6.0_17
>> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
>> Default locale: en_US, platform encoding: utf8
>> OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"
>>
>> $scala -version
>> Scala code runner version 2.7.7.final -- Copyright 2002-2009, LAMP/EPFL
>> j...@192-168-1-69:lift-base $echo $MAVEN_OPTS
>> -Dfile.encoding=utf8 -Xmx1024m -Xms512m
>>
>> j...@192-168-1-69:liftweb $mvn -e clean install
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]   Lift Web Framework
>> [INFO]   Lift Base Components
>> [INFO]   Lift Common
>> [INFO]   Lift Actor
>> [INFO]   Lift Json
>> [INFO]   Lift Util
>> [INFO]   Lift WebKit
>> [INFO]   Lift Persistence Components
>> [INFO]   Lift Mapper
>> [INFO]   Lift JPA
>> [INFO]   Lift Record
>> [INFO]   Lift Addon Modules
>> [INFO]   Lift TestKit
>> [INFO]   Lift OSGi
>> [INFO]   Lift Wizard
>> [INFO]   Lift Widgets
>> [INFO]   Lift Machine
>> [INFO]   Lift Textile
>> [INFO]   Lift Facebook
>> [INFO]   Lift AMQP
>> [INFO]   Lift XMPP
>> [INFO]   Lift OpenID
>> [INFO]   Lift OAuth
>> [INFO]   Lift OAuth Mapper
>> [INFO]   Lift PayPal
>> [INFO]   Lift JTA
>> [INFO]   Lift Imaging
>> [INFO]   Lift Core (full lift)
>> [INFO]   Lift Archetypes
>> [INFO]   lift-archetype-blank
>> [INFO]   lift-archetype-basic
>> [INFO]   lift-archetype-jpa-blank-single
>> [INFO]   lift-archetype-jpa-blank
>> [INFO]   lift-archetype-jpa-basic
>> [INFO]   Lift Examples
>> [INFO]   Lift Standard Example
>> [INFO]   OSGi Examples for Lift
>> [INFO]   OSGi Examples for Lift - Hello
>> [INFO]   Skittr Example
>> [INFO]   HelloLift example application
>> [INFO]   HelloDarwin tutorial application
>> [INFO]   JPA Demo Master
>> [INFO]   JPADemo-spa
>> [INFO]   JPADemo-web
>> [INFO]   Lift Flot widget example
>> [INFO]   HTTP Authentication example
>> [INFO]   Lift Web Framework Parent Aggregator
>> WAGON_VERSION: 1.0-beta-2
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Lift Web Framework
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> [INFO] Deleting /Users/jono/Documents/workspace/read
>> only/liftweb/framework/target
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] [resources:copy-resources {execution: default-copy-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 0 resource
>> [INFO] [scala:compile {execution: default}]
>> [INFO] Checking for multiple versions of scala
>> [INFO] includes = [**/*.scala,**/*.java,]
>> [INFO] excludes = []
>> [WARNING] No source files found.
>> [INFO] [scala:testCompile {execution: default}]
>> [INFO] Checking for multiple versions of scala
>> [INFO] includes = [**/*.scala,**/*.java,]
>> [INFO] excludes = []
>> [WARNING] No source files found.
>> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
>> [INFO] [source:jar-no-fork {execution: default}]
>> [INFO] [changes:changes-validate {execution: default-changes-validate}]
>> [INFO] [install:install {execution: default-install}]
>> [INFO] Installing /Users/jono/Documents/workspace/read
>> only/liftweb/framework/pom.xml to
>>
>> /Users/jono/.m2/repository/net/liftweb/framework/2.0-SNAPSHOT/framework-2.0-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Lift Base Components
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> [INFO] Deleting /Users/jono/Documents/workspace/read
>> only/liftweb/framework/lift-base/target
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] [resources:copy-resources {execution: default-copy-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 0 resource
>> [INFO] [scala:compile {execution: default}]
>> [INFO] Checking for multiple versions of scala
>> [INFO] includes = [**/*.scala,**/*.java,]
>> [INFO] excludes = []
>> [WARNING] No source files found.
>> [INFO] [scala:testCompile {execution: default}]
>> [INFO] Checking for multiple versions of scala
>> [INFO] includes = [**/*.scala,**/*.java,]
>> [INFO] excludes = []
>> [WARNING] No source files found.
>> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
>> [INFO] [source:jar-no-fork {execution: default}]
>> [INFO] [changes:changes-validate {execution: default-changes-validate}]
>> [WARNING] changes.xml file /Users/jono/Documents/workspace/read
>> only/liftweb/framework/lift-base/src/changes/changes.xml does not exist.
>> [INFO] [install:install {execution: default-install}]
>> [INFO] Installing /Users/jono/Documents/workspace/read
>> only/liftweb/framework/lift-base/pom.xml to
>>
>> /Users/jono/.m2/repository/net/liftweb/lift-base/2.0-SNAPSHOT/lift-base-2.0-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Lift Common
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> [INFO] Deleting /Users/jono/Documents/workspace/read
>> only/liftweb/framework/lift-base/lift-common/target
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory
>> /Users/jono/Documents/workspace/read
>> only/liftweb/framework/lift-base/lift-common/src/main/resources
>> [INFO] [resources:copy-resources {execution: default-copy-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 0 resource
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [scala:compile {execution: default}]
>> [INFO] Checking for multiple versions of scala
>> [INFO] includes = [**/*.scala,**/*.java,]
>> [INFO] excludes = []
>> [INFO] /Users/jono/Documents/workspace/read
>> only/liftweb/framework/lift-base/lift-common/src/main/scala:-1: info:
>> compiling
>>
>> [INFO] Compiling 3 source files to /Users/jono/Documents/workspace/read
>> only/liftweb/framework/lift-base/lift-common/target/classes at
>> 1264659584532
>> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
>> "-DpackageLinkDefs=file:///Users/jono/Documents/workspace/read
>>
>> only/liftweb/framework/lift-base/lift-common/target/packageLinkDefs/properties"
>> [INFO] Caused by: java.lang.ClassNotFoundException:
>> "-DpackageLinkDefs=file:...Users.jono.Documents.workspace.read
>>
>> only.liftweb.framework.lift-base.lift-common.target.packageLinkDefs.properties"
>> [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> [INFO] at java.security.AccessController.doPrivileged(Native Method)
>> [INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
>> [INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
>> [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
>> [INFO] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited
>> with an error: 1(Exit value: 1)
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: wrap:
>> org.apache.commons.exec.ExecuteException: Process exited with an error:
>> 1(Exit value: 1)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
>> 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)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: wrap:
>> org.apache.commons.exec.ExecuteException: Process exited with an error:
>> 1(Exit value: 1)
>> at
>> org_scala_tools_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:331)
>> at
>>
>> org_scala_tools_maven.ScalaCompilerSupport.execute(ScalaCompilerSupport.java:33)
>> at
>>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>> ... 17 more
>> Caused by: org.apache.commons.exec.ExecuteException: Process exited with
>> an error: 1(Exit value: 1)
>> at
>>
>> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:346)
>> at
>> org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
>> at
>> org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
>> at
>>
>> org_scala_tools_maven_executions.JavaMainCallerByFork.run(JavaMainCallerByFork.java:84)
>> at
>>
>> org_scala_tools_maven.ScalaCompilerSupport.compile(ScalaCompilerSupport.java:183)
>> at
>>
>> org_scala_tools_maven.ScalaCompilerSupport.doExecute(ScalaCompilerSupport.java:114)
>> at
>> org_scala_tools_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:323)
>> ... 20 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 14 seconds
>> [INFO] Finished at: Thu Jan 28 17:19:44 EST 2010
>> [INFO] Final Memory: 58M/527M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> --
>>
>> You received this message because you are subscribed to the Google
>> Groups "Lift" group.
>> To post to this group, send email to lift...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>

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

Reply via email to