You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by igah <we...@mail.com> on 2007/02/22 03:29:01 UTC
how to include a local jar in compile path
hi there,
if i have a file in the directory <project_home>/lib/foo.jar that i want to
use in my compilation. how can i do it? i tried to specify a system
dependency but then i was required to give the absolute path. but this
<project_home> really is just the working directory root which is different
on each developer's machine. could someone help me out? there got to be a
simpler approach. (i dont want to set up a local repository. i just simply
want to include a third party jar during compilation.)
thanks a lot.
--
View this message in context: http://www.nabble.com/how-to-include-a-local-jar-in-compile-path-tf3270565s177.html#a9093210
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to include a local jar in compile path
Posted by Dan Tran <da...@gmail.com>.
take advantage of ${basedir} which is the directory that hosts your pom.xml
-D
On 2/21/07, igah <we...@mail.com> wrote:
>
>
> hi there,
>
> if i have a file in the directory <project_home>/lib/foo.jar that i want
> to
> use in my compilation. how can i do it? i tried to specify a system
> dependency but then i was required to give the absolute path. but this
> <project_home> really is just the working directory root which is
> different
> on each developer's machine. could someone help me out? there got to be a
> simpler approach. (i dont want to set up a local repository. i just simply
> want to include a third party jar during compilation.)
>
> thanks a lot.
> --
> View this message in context:
> http://www.nabble.com/how-to-include-a-local-jar-in-compile-path-tf3270565s177.html#a9093210
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: how to include a local jar in compile path
Posted by Marcos Silva Pereira <ma...@gmail.com>.
Seems to me, the best approach is install file in local repository. Search
for install:install-file in Maven docs.
Kind Regards.
On 2/21/07, igah <we...@mail.com> wrote:
>
>
> hi there,
>
> if i have a file in the directory <project_home>/lib/foo.jar that i want
> to
> use in my compilation. how can i do it? i tried to specify a system
> dependency but then i was required to give the absolute path. but this
> <project_home> really is just the working directory root which is
> different
> on each developer's machine. could someone help me out? there got to be a
> simpler approach. (i dont want to set up a local repository. i just simply
> want to include a third party jar during compilation.)
>
> thanks a lot.
> --
> View this message in context:
> http://www.nabble.com/how-to-include-a-local-jar-in-compile-path-tf3270565s177.html#a9093210
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Marcos Silva Pereira
recife - pe
marcos.silva@gmail.com
skype: marcos.silva.pereira
http://blastemica.blogspot.com