You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Nicholas Andrews <no...@jhu.edu> on 2010/01/24 00:20:42 UTC

Including specific jar files in the compilation

Hi!

I probably missed this in the documentation, but I'm trying to build a
project that depends on a jar file not in the maven2 repository.  I
think the compile.with command assumes the dependency is in the maven
repository, but in this case it is built manually and I'd just like to
include it without putting it in .m2/repository.  I'm guessing there's
a straightforward way to do this?

Cheers,
Nick

Re: Including specific jar files in the compilation

Posted by Alex Boisvert <al...@gmail.com>.
Or you can tell buildr that the artifact is available locally,

some_library =
artifact('com.example:some-library:jar:1.0').from(path_to_jar)

And use it anywhere artifacts are accepted.

alex



On Sat, Jan 23, 2010 at 3:35 PM, Antoine Toulme <an...@lunar-ocean.com>wrote:

> compile.with file_path would do.
>
> On Sat, Jan 23, 2010 at 15:20, Nicholas Andrews <no...@jhu.edu> wrote:
>
> > Hi!
> >
> > I probably missed this in the documentation, but I'm trying to build a
> > project that depends on a jar file not in the maven2 repository.  I
> > think the compile.with command assumes the dependency is in the maven
> > repository, but in this case it is built manually and I'd just like to
> > include it without putting it in .m2/repository.  I'm guessing there's
> > a straightforward way to do this?
> >
> > Cheers,
> > Nick
> >
>

Re: Including specific jar files in the compilation

Posted by Antoine Toulme <an...@lunar-ocean.com>.
compile.with file_path would do.

On Sat, Jan 23, 2010 at 15:20, Nicholas Andrews <no...@jhu.edu> wrote:

> Hi!
>
> I probably missed this in the documentation, but I'm trying to build a
> project that depends on a jar file not in the maven2 repository.  I
> think the compile.with command assumes the dependency is in the maven
> repository, but in this case it is built manually and I'd just like to
> include it without putting it in .m2/repository.  I'm guessing there's
> a straightforward way to do this?
>
> Cheers,
> Nick
>