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" <[EMAIL PROTECTED]>
To: "Maven Users List" <users@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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]