[Lift] Re: Including jars into a liftweb project

2009-06-27 Thread fbettag

I am trying to build a eBay-API-Application which uses eBay's Java
SDK.
It's in no maven repository, that's why i wanted to know how to
include it manually :)

But i've gone your way and created my own maven repository for this.
Thanks for the great idea!

I always thought creating my own maven repository is voodoo ;)
This will really help me getting my third party jars organized.

Thanks again! :)


On Jun 26, 10:16 am, Timothy Perrett timo...@getintheloop.eu wrote:
 To clarify - you only need that system path if its a JAR not in a
 maven repository anywhere. What JAR are you trying to add?

 Cheers, Tim

 On Jun 26, 9:01 am, Caoyuan dcaoy...@gmail.com wrote:



  On Fri, Jun 26, 2009 at 3:51 PM, Jeppe Nejsum Madsenje...@ingolfs.dk 
  wrote:

   On 26 Jun 2009, fbettag wrote:

   Hey guys,

   i was wondering how (and where) i have to put jars in my liftweb
   project to get them included. i know it's a beginners question, but
   i've been playing around all night and i couldn't get it to work.

   Normally, you would put jars in the WEB-INF/lib folder and they will be
   picked up by the servlet container

   They need to be available at compile time too...

   /Jeppe

  Usually, jar files should be put under maven's dependency management,
  but you can try to add them by adding something like the following to
  pom.xml

          !-- local dependency --
          dependency
              groupIdcom.xxx/groupId
              artifactIdcom.xxx.xxx/artifactId
              version4.7.1/version
              scopesystem/scope
              
  systemPath${basedir}/src/main/webapp/WEB-INF/lib/x-4.7.1.jar/systemP 
  ath
          /dependency

--~--~-~--~~~---~--~~
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: Including jars into a liftweb project

2009-06-26 Thread Jeppe Nejsum Madsen

On 26 Jun 2009, fbettag wrote:


 Hey guys,
 
 i was wondering how (and where) i have to put jars in my liftweb
 project to get them included. i know it's a beginners question, but
 i've been playing around all night and i couldn't get it to work.

Normally, you would put jars in the WEB-INF/lib folder and they will be
picked up by the servlet container

They need to be available at compile time too...

/Jeppe


--~--~-~--~~~---~--~~
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: Including jars into a liftweb project

2009-06-26 Thread Caoyuan

On Fri, Jun 26, 2009 at 3:51 PM, Jeppe Nejsum Madsenje...@ingolfs.dk wrote:

 On 26 Jun 2009, fbettag wrote:


 Hey guys,

 i was wondering how (and where) i have to put jars in my liftweb
 project to get them included. i know it's a beginners question, but
 i've been playing around all night and i couldn't get it to work.

 Normally, you would put jars in the WEB-INF/lib folder and they will be
 picked up by the servlet container

 They need to be available at compile time too...

 /Jeppe

Usually, jar files should be put under maven's dependency management,
but you can try to add them by adding something like the following to
pom.xml

!-- local dependency --
dependency
groupIdcom.xxx/groupId
artifactIdcom.xxx.xxx/artifactId
version4.7.1/version
scopesystem/scope

systemPath${basedir}/src/main/webapp/WEB-INF/lib/x-4.7.1.jar/systemPath
/dependency




 


--~--~-~--~~~---~--~~
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: Including jars into a liftweb project

2009-06-26 Thread Timothy Perrett

To clarify - you only need that system path if its a JAR not in a
maven repository anywhere. What JAR are you trying to add?

Cheers, Tim

On Jun 26, 9:01 am, Caoyuan dcaoy...@gmail.com wrote:
 On Fri, Jun 26, 2009 at 3:51 PM, Jeppe Nejsum Madsenje...@ingolfs.dk wrote:

  On 26 Jun 2009, fbettag wrote:

  Hey guys,

  i was wondering how (and where) i have to put jars in my liftweb
  project to get them included. i know it's a beginners question, but
  i've been playing around all night and i couldn't get it to work.

  Normally, you would put jars in the WEB-INF/lib folder and they will be
  picked up by the servlet container

  They need to be available at compile time too...

  /Jeppe

 Usually, jar files should be put under maven's dependency management,
 but you can try to add them by adding something like the following to
 pom.xml

         !-- local dependency --
         dependency
             groupIdcom.xxx/groupId
             artifactIdcom.xxx.xxx/artifactId
             version4.7.1/version
             scopesystem/scope
             
 systemPath${basedir}/src/main/webapp/WEB-INF/lib/x-4.7.1.jar/systemP 
 ath
         /dependency




--~--~-~--~~~---~--~~
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: Including jars into a liftweb project

2009-06-26 Thread Oliver Lambert
If I have an application thats not in a Maven repository, I usually put it
in my local (or company) repository - for instance adding functionaljava.jar
mvn install:install-file -DgroupId=org.other -DartifactId=functionaljava
-Dversion=2.17 -Dpackaging=jar -Dfile=functionaljava.jar -DgeneratePom=true

But, before you do this, as suggested
below, you might want to google for the application
(eg ibiblio functionaljava) to make sure its not in a maven repository.

On Fri, Jun 26, 2009 at 6:16 PM, Timothy Perrett timo...@getintheloop.euwrote:


 To clarify - you only need that system path if its a JAR not in a
 maven repository anywhere. What JAR are you trying to add?

 Cheers, Tim

 On Jun 26, 9:01 am, Caoyuan dcaoy...@gmail.com wrote:
  On Fri, Jun 26, 2009 at 3:51 PM, Jeppe Nejsum Madsenje...@ingolfs.dk
 wrote:
 
   On 26 Jun 2009, fbettag wrote:
 
   Hey guys,
 
   i was wondering how (and where) i have to put jars in my liftweb
   project to get them included. i know it's a beginners question, but
   i've been playing around all night and i couldn't get it to work.
 
   Normally, you would put jars in the WEB-INF/lib folder and they will be
   picked up by the servlet container
 
   They need to be available at compile time too...
 
   /Jeppe
 
  Usually, jar files should be put under maven's dependency management,
  but you can try to add them by adding something like the following to
  pom.xml
 
  !-- local dependency --
  dependency
  groupIdcom.xxx/groupId
  artifactIdcom.xxx.xxx/artifactId
  version4.7.1/version
  scopesystem/scope
 
 systemPath${basedir}/src/main/webapp/WEB-INF/lib/x-4.7.1.jar/systemP
 ath
  /dependency
 
 
 
 
 


--~--~-~--~~~---~--~~
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: Including jars into a liftweb project

2009-06-26 Thread Timothy Perrett

Just further to this, as was discussed ages and ages ago, be carful
when using system scope - a more portable alternative is an embedded
repository: http://is.gd/1erQT

Cheers, Tim

On Jun 26, 3:07 pm, Oliver Lambert olambo...@gmail.com wrote:
 If I have an application thats not in a Maven repository, I usually put it
 in my local (or company) repository - for instance adding functionaljava.jar
 mvn install:install-file -DgroupId=org.other -DartifactId=functionaljava
 -Dversion=2.17 -Dpackaging=jar -Dfile=functionaljava.jar -DgeneratePom=true

 But, before you do this, as suggested
 below, you might want to google for the application
 (eg ibiblio functionaljava) to make sure its not in a maven repository.

 On Fri, Jun 26, 2009 at 6:16 PM, Timothy Perrett 
 timo...@getintheloop.euwrote:





  To clarify - you only need that system path if its a JAR not in a
  maven repository anywhere. What JAR are you trying to add?

  Cheers, Tim

  On Jun 26, 9:01 am, Caoyuan dcaoy...@gmail.com wrote:
   On Fri, Jun 26, 2009 at 3:51 PM, Jeppe Nejsum Madsenje...@ingolfs.dk
  wrote:

On 26 Jun 2009, fbettag wrote:

Hey guys,

i was wondering how (and where) i have to put jars in my liftweb
project to get them included. i know it's a beginners question, but
i've been playing around all night and i couldn't get it to work.

Normally, you would put jars in the WEB-INF/lib folder and they will be
picked up by the servlet container

They need to be available at compile time too...

/Jeppe

   Usually, jar files should be put under maven's dependency management,
   but you can try to add them by adding something like the following to
   pom.xml

           !-- local dependency --
           dependency
               groupIdcom.xxx/groupId
               artifactIdcom.xxx.xxx/artifactId
               version4.7.1/version
               scopesystem/scope

  systemPath${basedir}/src/main/webapp/WEB-INF/lib/x-4.7.1.jar/systemP
  ath
           /dependency
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---