Grzegorz Kossakowski wrote:
> Sylvain Wallez pisze:
>> Grzegorz Kossakowski wrote:
>>
>> Is it impossible with Maven to use a local library?
>
> I must admit I have not thought about this option, I guess I'm too
> accustomed to the fact that everything is on Maven's repository.
>
> There is a bit of information here:
> http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
> and here:
> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html.
>
>
> However, such a solution helps only if one checkouts sample from svn
> and does mvn install. We can't release a pom that depend on something
> that we install manually to local repository. It's quite easy and
> quick solution but only temporary, IMHO.
>
> Sylvain, I know that you use Ivy, how it works there?

Well, you can do pretty much what you want with Ivy, since it is
basically used to build an Ant classpath from an ivy.xml file that
describes the project's dependencies. The dependencies are resolved
using a chain of repositories.

In this particular case, we could have a chain consisting in a local
repository (checked in in SVN), Cocoon's own repository and then the
main Maven repository.

And since this is really about building a classpath (the library path in
this case), we don't actually _need_ a local repository, and can build a
classpath that is the concatenation of artifacts pulled from a
repository and jar files in a "local-lib" directory.

Sylvain

-- 
Sylvain Wallez - http://bluxte.net


Reply via email to