You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dmitry <dm...@hotmail.com> on 2007/07/20 23:49:00 UTC
How to configure the repository to be used for downloading dependencies in a plugin WITHOUT changing my POM ?
I'd like to configure a dependency to the compiler plugin (the **.jar java
1.3) as I use it for bootclasspath :
<artifactId>maven-compiler-plugin</artifactId> <configuration>
<compilerArguments> <bootclasspath>
${settings.localRepository}/com/sun/rt/${
maven.compile.runtime}/rt-${maven.compile.runtime}.jar </bootclasspath>
</compilerArguments> </configuration> <dependencies> <dependency>
<groupId>com.sun</groupId> <artifactId>rt</artifactId>
<version>${maven.compile.runtime}</version> </dependency> </dependencies>
To resolve this non-free dependency, I need to set a custom repository in my
settings.xml to point to my corporate repo.
When I run maven, it complain for dependency . It searched in central and
apache.snapshot repositories. I myself have NOT declared apache.snapshots as
a repository. It is declared in the apache-3 parent POM that the plugin
extends
I then have two questions :
1. How to configure the repository to be used for downloading dependencies
in a plugin WITHOUT changing my POM ?
2. Is this exepected for a released POM to make reference to a snapshot
repository ?
thanks,
Dmitry Tk
www.ejinz.com search biz
----- Original Message -----
From: "Baz" <ba...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Friday, July 20, 2007 4:39 PM
Subject: Re: How can i create a repo search order?
> Denis, thanks. How can i configure the searching behaviour? Is there a
> file?
> Syntax?
>
> On 7/20/07, Denis Cabasson <de...@insee.fr> wrote:
>>
>>
>> Maven is always searching first for the local repo.
>>
>> Searching for dev or release or public repo is not, to my knowledge,
>> possible. A given artifact should be the same on all repos, so maven will
>> look for it wherever it can.
>>
>> Denis.
>>
>>
>> Baz-6 wrote:
>> >
>> > All,
>> >
>> > How can i write the pom so that it looks for local repo (local
>> > machine),
>> > then development repo, then release repo, then public repo?
>> >
>> > Thanks.
>> >
>> > A.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
>> 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
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org