[Lift] Re: OS X lift installer
On Fri, Feb 27, 2009 at 5:14 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock shellsha...@gmail.comwrote: thanks. based on your above mention that maven is web aware and some comment I read from David Pollak that his demo didn't go so well when he lacked an internet connection, is it the case that I have to always have a working internet connect to use maven/lift? When Maven works the way it is supposed to, you do not need to be online when you use it, but you do have to be online when you do an initial build so that all the JARs can be downloaded. I have had issues recently with the Maven-Scala plugin, but that is a defect, not the correct behavior. Please do tell! (I'd would like to add the issues to our integration/regression tests) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@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 -~--~~~~--~~--~--~---
[Lift] Re: OS X lift installer
On Sat, Feb 28, 2009 at 2:19 AM, Josh Suereth joshua.suer...@gmail.comwrote: On Fri, Feb 27, 2009 at 5:14 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock shellsha...@gmail.comwrote: thanks. based on your above mention that maven is web aware and some comment I read from David Pollak that his demo didn't go so well when he lacked an internet connection, is it the case that I have to always have a working internet connect to use maven/lift? When Maven works the way it is supposed to, you do not need to be online when you use it, but you do have to be online when you do an initial build so that all the JARs can be downloaded. I have had issues recently with the Maven-Scala plugin, but that is a defect, not the correct behavior. Please do tell! (I'd would like to add the issues to our integration/regression tests) I have had repeated failures trying to run the latest plugin in -o (offline) mode. The plugin seems to ignore the parameter and try to go out to the internet to get resources and then it complains that the sites are not available and blacklists them... then the mvn -o jetty:run fails. It was a complete (okay, maybe a semi) disaster then I tried to give a demo @ SalesForce last week. I'm hoping to get this issue resolved before 3/8 when I get to spend 12 hours on a flight from SF to London and would like some of those hours to be productive. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@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 -~--~~~~--~~--~--~---
[Lift] Re: OS X lift installer
I feel obligated to note that this was indeed an issue with maven itself. I believe it's fixed in the most recent release of Maven (2.0.10) [see herehttp://maven.apache.org/release-notes.html]. Please upgrade and let me know if it continues so I can open many JIRAs! -Josh On Sat, Feb 28, 2009 at 11:14 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Feb 28, 2009 at 2:19 AM, Josh Suereth joshua.suer...@gmail.comwrote: On Fri, Feb 27, 2009 at 5:14 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock shellsha...@gmail.comwrote: thanks. based on your above mention that maven is web aware and some comment I read from David Pollak that his demo didn't go so well when he lacked an internet connection, is it the case that I have to always have a working internet connect to use maven/lift? When Maven works the way it is supposed to, you do not need to be online when you use it, but you do have to be online when you do an initial build so that all the JARs can be downloaded. I have had issues recently with the Maven-Scala plugin, but that is a defect, not the correct behavior. Please do tell! (I'd would like to add the issues to our integration/regression tests) I have had repeated failures trying to run the latest plugin in -o (offline) mode. The plugin seems to ignore the parameter and try to go out to the internet to get resources and then it complains that the sites are not available and blacklists them... then the mvn -o jetty:run fails. It was a complete (okay, maybe a semi) disaster then I tried to give a demo @ SalesForce last week. I'm hoping to get this issue resolved before 3/8 when I get to spend 12 hours on a flight from SF to London and would like some of those hours to be productive. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@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 -~--~~~~--~~--~--~---
[Lift] Re: OS X lift installer
On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock shellsha...@gmail.com wrote: thanks. based on your above mention that maven is web aware and some comment I read from David Pollak that his demo didn't go so well when he lacked an internet connection, is it the case that I have to always have a working internet connect to use maven/lift? When Maven works the way it is supposed to, you do not need to be online when you use it, but you do have to be online when you do an initial build so that all the JARs can be downloaded. I have had issues recently with the Maven-Scala plugin, but that is a defect, not the correct behavior. thanks, Jon On Feb 27, 3:59 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Jon, The only thing i needed to do to get that running was sudo port install maven2 ... export PATH=/opt/local/bin:$PATH This assumes, however, that you are already using macports. Best wishes, --greg On Fri, Feb 27, 2009 at 1:54 PM, Jon Hancock shellsha...@gmail.com wrote: thanks, I'll study this a bit more. The lift installer I mentioned ishttp:// liftweb.net/download.html#macosx Jon On Feb 27, 3:41 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Jon, i'm not sure if you are talking about some specific lift installer, and i'm no maven expert, but i use it and lift on my macbook pro. i think of mvn as a make that is aware of the web (and whose language for expressing rules is incredibly verbose). Being aware of the web, mvn allows project build configurations to express dependencies on repositories in the cloud. These it downloads and caches to ~/.m2 -- unless you configure it otherwise. Nine times out of ten, it dependencies are jars that are mentioned as dependency tags in the pom.xml file in your project. It is then able to configure the classpath for the JVM targets (like compile). If you put dependencies on other technologies, e.g. a container like jetty, and use those maven plugin goals you will be launching and running those servers. So... putting it together in terms of a usage scenario mklift.sh com.myorg.myservice myfeature // see listing for mklift.sh below // causes mvn to generate a basic lift project [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 Define value for version: 1.0-SNAPSHOT: : Confirm properties configuration: groupId: com.myorg.myservice artifactId: myfeature version: 1.0-SNAPSHOT package: com.myorg.myservice Y: : [INFO] --- - [INFO] Using following parameters for creating OldArchetype: lift-archetype-basic:0.10 [INFO] --- - [INFO] Parameter: groupId, Value: com.myorg.myservice [INFO] Parameter: packageName, Value: com.myorg.myservice [INFO] Parameter: basedir, Value: /Users/lgm/work/src/projex/biosimilarity/scratch [INFO] Parameter: package, Value: com.myorg.myservice [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: myfeature [INFO] * End of debug info from resources from generated POM *** [INFO] OldArchetype created in dir: /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 24 seconds [INFO] Finished at: Fri Feb 27
[Lift] Re: OS X lift installer
Jon, You don't need a net connection all the time, but you do need it the first time to pull all the dependencies. After you have it up and compiling, you can issue mvn -o target and use maven in offline mode. On Feb 27, 5:03 pm, Jon Hancock shellsha...@gmail.com wrote: thanks. based on your above mention that maven is web aware and some comment I read from David Pollak that his demo didn't go so well when he lacked an internet connection, is it the case that I have to always have a working internet connect to use maven/lift? thanks, Jon On Feb 27, 3:59 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Jon, The only thing i needed to do to get that running was sudo port install maven2 ... export PATH=/opt/local/bin:$PATH This assumes, however, that you are already using macports. Best wishes, --greg On Fri, Feb 27, 2009 at 1:54 PM, Jon Hancock shellsha...@gmail.com wrote: thanks, I'll study this a bit more. The lift installer I mentioned ishttp://liftweb.net/download.html#macosx Jon On Feb 27, 3:41 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Jon, i'm not sure if you are talking about some specific lift installer, and i'm no maven expert, but i use it and lift on my macbook pro. i think of mvn as a make that is aware of the web (and whose language for expressing rules is incredibly verbose). Being aware of the web, mvn allows project build configurations to express dependencies on repositories in the cloud. These it downloads and caches to ~/.m2 -- unless you configure it otherwise. Nine times out of ten, it dependencies are jars that are mentioned as dependency tags in the pom.xml file in your project. It is then able to configure the classpath for the JVM targets (like compile). If you put dependencies on other technologies, e.g. a container like jetty, and use those maven plugin goals you will be launching and running those servers. So... putting it together in terms of a usage scenario mklift.sh com.myorg.myservice myfeature // see listing for mklift.sh below // causes mvn to generate a basic lift project [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 Define value for version: 1.0-SNAPSHOT: : Confirm properties configuration: groupId: com.myorg.myservice artifactId: myfeature version: 1.0-SNAPSHOT package: com.myorg.myservice Y: : [INFO] --- - [INFO] Using following parameters for creating OldArchetype: lift-archetype-basic:0.10 [INFO] --- - [INFO] Parameter: groupId, Value: com.myorg.myservice [INFO] Parameter: packageName, Value: com.myorg.myservice [INFO] Parameter: basedir, Value: /Users/lgm/work/src/projex/biosimilarity/scratch [INFO] Parameter: package, Value: com.myorg.myservice [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: myfeature [INFO] * End of debug info from resources from generated POM *** [INFO] OldArchetype created in dir: /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 24 seconds [INFO] Finished at: Fri Feb 27 13:32:55 PST 2009 [INFO] Final Memory: 8M/14M [INFO]
[Lift] Re: OS X lift installer
Jon, No. There are at least two options -- both of which i use. - once mvn has cached stuff you can run offline with the -o option - you can also deploy jars to a local repo which can be a directory resource or your own cloud resource - i have a little shell script deploy-jar.sh i use to deploy to a common place in my project structure // see listing below - i add the following repo structure to my pom.xml repository idlocal-repo/id urlfile://${basedir}/vendor/lib/url /repository - after i am happy that i've got the right dependencies, i push my local repo up to my own cloud resource cat deploy-jar.sh #! /bin/sh mvn deploy:deploy-file -Durl=file://`pwd`/vendor/lib -DrepositoryId=basedir -Dfile=$1.jar -DgroupId=$2 -DartifactId=$1 -Dversion=$3 -Dpackaging=jar Best wishes, --greg On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock shellsha...@gmail.com wrote: thanks. based on your above mention that maven is web aware and some comment I read from David Pollak that his demo didn't go so well when he lacked an internet connection, is it the case that I have to always have a working internet connect to use maven/lift? thanks, Jon On Feb 27, 3:59 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Jon, The only thing i needed to do to get that running was sudo port install maven2 ... export PATH=/opt/local/bin:$PATH This assumes, however, that you are already using macports. Best wishes, --greg On Fri, Feb 27, 2009 at 1:54 PM, Jon Hancock shellsha...@gmail.com wrote: thanks, I'll study this a bit more. The lift installer I mentioned ishttp:// liftweb.net/download.html#macosx Jon On Feb 27, 3:41 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Jon, i'm not sure if you are talking about some specific lift installer, and i'm no maven expert, but i use it and lift on my macbook pro. i think of mvn as a make that is aware of the web (and whose language for expressing rules is incredibly verbose). Being aware of the web, mvn allows project build configurations to express dependencies on repositories in the cloud. These it downloads and caches to ~/.m2 -- unless you configure it otherwise. Nine times out of ten, it dependencies are jars that are mentioned as dependency tags in the pom.xml file in your project. It is then able to configure the classpath for the JVM targets (like compile). If you put dependencies on other technologies, e.g. a container like jetty, and use those maven plugin goals you will be launching and running those servers. So... putting it together in terms of a usage scenario mklift.sh com.myorg.myservice myfeature // see listing for mklift.sh below // causes mvn to generate a basic lift project [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 Define value for version: 1.0-SNAPSHOT: : Confirm properties configuration: groupId: com.myorg.myservice artifactId: myfeature version: 1.0-SNAPSHOT package: com.myorg.myservice Y: : [INFO] --- - [INFO] Using following parameters for creating OldArchetype: lift-archetype-basic:0.10 [INFO] --- - [INFO] Parameter: groupId, Value: com.myorg.myservice [INFO] Parameter: packageName, Value: com.myorg.myservice [INFO] Parameter: basedir, Value: /Users/lgm/work/src/projex/biosimilarity/scratch [INFO] Parameter: package, Value: com.myorg.myservice [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO]