[Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread David Biesack
While helloworld works (mvn jetty:run) from
http://liftweb.net/docs/getting_started/mod_master.html,
after installing the 'todo' app and try to build/run it

 cd todo
 mvn jetty:run

I get an error trying to resolve smack.jar

I was able to resolve this by downloading smack and installing
smack.jar and smackx.jar into my maven repo.
However, it would be nice if this was not necessary (i.e. by putting
it in the scala repo?), or at a minimum adding
warnings/instructions in the GettingStarted

(note: I've configured my maven repos as per
http://wiki.github.com/dpp/liftweb/about-maven-mini-guide )

Here's the first error:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] org.apache.maven.plugins: checking for updates from scala-
tools.org
repository metadata for: 'org.apache.maven.plugins' could not be
retrieved from repository: scala-tools.org due to an error: Error
transferring file
[INFO] Repository 'scala-tools.org' will be blacklisted
[INFO]

[INFO] Building todo
[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://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
Downloading: 
http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-releases/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
Downloading: 
http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
[INFO] artifact org.mortbay.jetty:jetty: checking for updates from
scala-tools.org
repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
be retrieved from repository: scala-tools.org due to an error: Error
transferring file
[INFO] Repository 'scala-tools.org' will be blacklisted
[INFO] artifact org.mortbay.jetty:jetty: checking for updates from
scala-tools.org.snapshots
repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
be retrieved from repository: scala-tools.org.snapshots due to an
error: Error transferring file
[INFO] Repository 'scala-tools.org.snapshots' will be blacklisted
Downloading: 
http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
Downloading: 
http://maven.reucon.com/public/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
Downloading: 
http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
Downloading: 
http://maven.reucon.com/public/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

[snip]

--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread Indrajit Raychaudhuri

The Maven repository http://maven.reucon.com/public/ had turned out to 
be unreliable on a previous occasion. We have discontinued referring to 
that repository now.

You might consider using the 1.1-SNAPSHOT archetype. (using 
-DarchetypeVersion=1.1-SNAPSHOT and 
-DremoteRepositories=http://scala-tools.org/repo-snapshots).

So the full command would be:

mvn archetype:generate -U \
   -DarchetypeGroupId=net.liftweb \
   -DarchetypeArtifactId=lift-archetype-basic \
   -DarchetypeVersion=1.1-SNAPSHOT \
   -DarchetypeRepository=http://scala-tools.org/repo-snapshots \
   -DremoteRepositories=http://scala-tools.org/repo-snapshots \
   -DgroupId=com.liftworkshop \
   -DartifactId=todo \
   -Dversion=0.1-SNAPSHOT

BTW, do you have some additional repositories set up in settings.xml?

Cheers, Indrajit

On 04/12/09 8:53 PM, David Biesack wrote:
 While helloworld works (mvn jetty:run) from
 http://liftweb.net/docs/getting_started/mod_master.html,
 after installing the 'todo' app and try to build/run it

   cd todo
   mvn jetty:run

 I get an error trying to resolve smack.jar

 I was able to resolve this by downloading smack and installing
 smack.jar and smackx.jar into my maven repo.
 However, it would be nice if this was not necessary (i.e. by putting
 it in the scala repo?), or at a minimum adding
 warnings/instructions in the GettingStarted

 (note: I've configured my maven repos as per
 http://wiki.github.com/dpp/liftweb/about-maven-mini-guide )

 Here's the first error:

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'jetty'.
 [INFO] org.apache.maven.plugins: checking for updates from scala-
 tools.org
 repository metadata for: 'org.apache.maven.plugins' could not be
 retrieved from repository: scala-tools.org due to an error: Error
 transferring file
 [INFO] Repository 'scala-tools.org' will be blacklisted
 [INFO]
 
 [INFO] Building todo
 [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://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
 Downloading: 
 http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
 Downloading: 
 http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom
 Downloading: 
 http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
 Downloading: 
 http://scala-tools.org/repo-releases/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
 Downloading: 
 http://scala-tools.org/repo-snapshots/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom
 [INFO] artifact org.mortbay.jetty:jetty: checking for updates from
 scala-tools.org
 repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
 be retrieved from repository: scala-tools.org due to an error: Error
 transferring file
 [INFO] Repository 'scala-tools.org' will be blacklisted
 [INFO] artifact org.mortbay.jetty:jetty: checking for updates from
 scala-tools.org.snapshots
 repository metadata for: 'artifact org.mortbay.jetty:jetty' could not
 be retrieved from repository: scala-tools.org.snapshots due to an
 error: Error transferring file
 [INFO] Repository 'scala-tools.org.snapshots' will be blacklisted
 Downloading: 
 http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
 Downloading: 
 http://maven.reucon.com/public/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.jar
 Downloading: 
 http://aclmvn.unx.sas.com:8192/artifactory/repo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
 Downloading: 
 http://maven.reucon.com/public/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.jar
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 [snip]

 --

 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.



--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread jlist9
I'm just curious why is smack required. Does Lift use XMPP? Or is it there
in case someone uses XMPP in an application?

On Fri, Dec 4, 2009 at 7:23 AM, David Biesack david.bies...@sas.com wrote:
 While helloworld works (mvn jetty:run) from
 http://liftweb.net/docs/getting_started/mod_master.html,
 after installing the 'todo' app and try to build/run it

  cd todo
  mvn jetty:run

 I get an error trying to resolve smack.jar

--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread David Pollak
On Fri, Dec 4, 2009 at 10:06 AM, jlist9 jli...@gmail.com wrote:

 I'm just curious why is smack required. Does Lift use XMPP? Or is it there
 in case someone uses XMPP in an application?


The 1.0 archetype references lift-core.  lift-core is the umbrella for all
the Lift modules including XMPP, AMQP, Facebook, PayPal as well as WebKit,
Mapper, etc.

It was my vision that Lift should contain all the pieces to connect your
application to many forms of real time data, events, external services, etc.

The vision narrowed post 1.0 release.

If you remove the lift-core reference in the pom.xml and insert references
to lift-webkit, lift-util, and lift-mapper you app will run fine and not try
to download XMPP or AMQP support.



 On Fri, Dec 4, 2009 at 7:23 AM, David Biesack david.bies...@sas.com
 wrote:
  While helloworld works (mvn jetty:run) from
  http://liftweb.net/docs/getting_started/mod_master.html,
  after installing the 'todo' app and try to build/run it
 
   cd todo
   mvn jetty:run
 
  I get an error trying to resolve smack.jar

 --

 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.comliftweb%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/liftweb?hl=en.





-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread jlist9
I see. Thanks David. It's good to know that lift has interfaces for all
those interesting libraries, although it sort of makes lift-core sound
more like lift-libs :)

On Fri, Dec 4, 2009 at 10:13 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:


 On Fri, Dec 4, 2009 at 10:06 AM, jlist9 jli...@gmail.com wrote:

 I'm just curious why is smack required. Does Lift use XMPP? Or is it there
 in case someone uses XMPP in an application?

 The 1.0 archetype references lift-core.  lift-core is the umbrella for all
 the Lift modules including XMPP, AMQP, Facebook, PayPal as well as WebKit,
 Mapper, etc.
 It was my vision that Lift should contain all the pieces to connect your
 application to many forms of real time data, events, external services, etc.
 The vision narrowed post 1.0 release.
 If you remove the lift-core reference in the pom.xml and insert references
 to lift-webkit, lift-util, and lift-mapper you app will run fine and not try
 to download XMPP or AMQP support.


 On Fri, Dec 4, 2009 at 7:23 AM, David Biesack david.bies...@sas.com
 wrote:
  While helloworld works (mvn jetty:run) from
  http://liftweb.net/docs/getting_started/mod_master.html,
  after installing the 'todo' app and try to build/run it
 
   cd todo
   mvn jetty:run
 
  I get an error trying to resolve smack.jar

 --

 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.





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics

 --

 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.


--

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.




Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread Indrajit Raychaudhuri


On 04/12/09 11:43 PM, David Pollak wrote:


 On Fri, Dec 4, 2009 at 10:06 AM, jlist9 jli...@gmail.com
 mailto:jli...@gmail.com wrote:

 I'm just curious why is smack required. Does Lift use XMPP? Or is it
 there
 in case someone uses XMPP in an application?


 The 1.0 archetype references lift-core.  lift-core is the umbrella for
 all the Lift modules including XMPP, AMQP, Facebook, PayPal as well as
 WebKit, Mapper, etc.

 It was my vision that Lift should contain all the pieces to connect your
 application to many forms of real time data, events, external services, etc.

 The vision narrowed post 1.0 release.

 If you remove the lift-core reference in the pom.xml and insert
 references to lift-webkit, lift-util, and lift-mapper you app will run
 fine and not try to download XMPP or AMQP support.

In fact a dependency on lift-mapper should suffice (lift-webkit, 
lift-util, lift-common etc. would be pulled up automatically).

For most standard data-driven Lift applications, just setting up the 
dependency on a persistence component of your choice (lift-jpa, 
lift-mapper or lift-record) should be good enough for a start. And then 
you can go along and add the other spices from lift-modules depending on 
your app requirement.



 On Fri, Dec 4, 2009 at 7:23 AM, David Biesack david.bies...@sas.com
 mailto:david.bies...@sas.com wrote:
   While helloworld works (mvn jetty:run) from
   http://liftweb.net/docs/getting_started/mod_master.html,
   after installing the 'todo' app and try to build/run it
  
cd todo
mvn jetty:run
  
   I get an error trying to resolve smack.jar

 --

 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
 mailto:liftweb@googlegroups.com.
 To unsubscribe from this group, send email to
 liftweb+unsubscr...@googlegroups.com
 mailto:liftweb%2bunsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/liftweb?hl=en.





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics

 --

 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.

--

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.