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 13:32:55 PST 2009
> > > > [INFO] Final Memory: 8M/14M
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------>
> > > ls
> > > > myfeature
> > > > > cd myfeature
> > > > > ls
> > > > pom.xml    src
> > > > > mvn compile
> >
> > > > [INFO] Scanning for projects...
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Building myfeature
> > > > [INFO]    task-segment: [compile]
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] [resources:resources]
> > > > [INFO] Using default encoding to copy filtered resources.
> > > > [INFO] [yuicompressor:compress {execution: default}]
> > > > [INFO] nb warnings: 0, nb errors: 0
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/igniterealtime/smack/smack/3.0.4/sm.
> ..
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/igniterealtime/smack/smackx/.
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/igniterealtime/smack/smackx/3.0.4/s.
> ..
> > > > [INFO] [compiler:compile]
> > > > [INFO] Nothing to compile - all classes are up to date
> > > > [INFO] [scala:compile {execution: default}]
> > > > [INFO] suggestion: remove the scalaVersion from pom.xml
> > > > [ERROR]
> > > >
> /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature/src/main/scala
> > > > [INFO] Compiling 3 source files to
> > > >
> /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature/target/classes
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] BUILD SUCCESSFUL
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time: 12 seconds
> > > > [INFO] Finished at: Fri Feb 27 13:34:12 PST 2009
> > > > [INFO] Final Memory: 11M/20M
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------>
> > > ls
> >
> > > > pom.xml    src    target> mvn jetty:run
> >
> > > > [INFO] Scanning for projects...
> > > > [INFO] Searching repository for plugin with prefix: 'jetty'.
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Building myfeature
> > > > [INFO]    task-segment: [jetty:run]
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Preparing jetty:run
> > > > [INFO] [resources:resources]
> > > > [INFO] Using default encoding to copy filtered resources.
> > > > [INFO] [yuicompressor:compress {execution: default}]
> > > > [INFO] nb warnings: 0, nb errors: 0
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/igniterealtime/smack/smack/3.0.4/sm.
> ..
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/igniterealtime/smack/smackx/.
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/igniterealtime/smack/smackx/3.0.4/s.
> ..
> > > > [INFO] [compiler:compile]
> > > > [INFO] Nothing to compile - all classes are up to date
> > > > [INFO] [scala:compile {execution: default}]
> > > > [INFO] suggestion: remove the scalaVersion from pom.xml
> > > > [ERROR]
> > > >
> /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature/src/main/scala
> > > > [INFO] Nothing to compile - all classes are up to date
> > > > [INFO] [resources:testResources]
> > > > [INFO] Using default encoding to copy filtered resources.
> > > > [INFO] [compiler:testCompile]
> > > > [INFO] Nothing to compile - all classes are up to date
> > > > [INFO] [scala:testCompile {execution: default}]
> > > > [INFO] suggestion: remove the scalaVersion from pom.xml
> > > > [ERROR]
> > > >
> /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature/src/test/scala
> > > > [ERROR]
> >
> > >
> /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature/src/test/scala/.
> > > ./scala
> > > > [INFO] Compiling 3 source files to
> >
> > >
> /Users/lgm/work/src/projex/biosimilarity/scratch/myfeature/target/test-clas
> > > ses
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty/6.1.15.r.
> ..
> > > > Downloading:
> > >http://download.java.net/maven/2/org/mortbay/jetty/jetty/6.1.15.rc5/j.
> ..
> > > > Downloading:
> > >http://download.java.net/maven/1/org.mortbay.jetty/poms/jetty-6.1.15..
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.1.15.rc5/jett.
> ..
> > > > 5K downloaded
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-util/6.1.
> ..
> > > > Downloading:
> > >http://download.java.net/maven/2/org/mortbay/jetty/jetty-util/6.1.15..
> ..
> > > > Downloading:
> > >http://download.java.net/maven/1/org.mortbay.jetty/poms/jetty-util-6..
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-util/6.1.15.rc5.
> ..
> > > > 3K downloaded
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-plus/6.1.
> ..
> > > > Downloading:
> > >http://download.java.net/maven/2/org/mortbay/jetty/jetty-plus/6.1.15..
> ..
> > > > Downloading:
> > >http://download.java.net/maven/1/org.mortbay.jetty/poms/jetty-plus-6..
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-plus/6.1.15.rc5.
> ..
> > > > 3K downloaded
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-naming/6.
> ..
> > > > Downloading:
> > >http://download.java.net/maven/2/org/mortbay/jetty/jetty-naming/6.1.1.
> ..
> > > > Downloading:
> > >http://download.java.net/maven/1/org.mortbay.jetty/poms/jetty-naming-.
> ..
> > > > Downloading:
> > >http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-naming/6.1.15.r.
> ..
> > > > 5K downloaded
> > > > Downloading:
> > >http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-manageme.
> ..
> > > > Downloading:
> >
> > ...
> >
> > read more ยป
>
> >
>


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

Reply via email to