-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Sylvain Wallez wrote:
> 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
> 

In Maven 2 you can actually do

    <repository>
      <id>provided.local</id>
      <name>Locally Provided Repository</name>
      <url>file:${project.basedir}/repository</url>
      ...
    </repository>

to achieve the same

- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)

iD8DBQFGlJTsLNdJvZjjVZARAui6AKC6Gsj9mvW49tlADe+/ufmD+peMpACfeis1
gM/SccImNCUdhwOgLP8u/38=
=fQOu
-----END PGP SIGNATURE-----

Reply via email to