You can't do it with Maven, but you can do this with Nexus[1]. Nexus
allows you to put repositories into a logical group and then configure
using regex on the path, which repos are allowed for certain artifacts.

[1] http://nexus.sonatype.org

-----Original Message-----
From: Julian Payne [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2008 5:05 AM
To: [email protected]
Cc: Julian Payne
Subject: Specifying a repository in pluginManagement or
dependencyManagement

I have some plugins and dependencies that are published to their own
repositories and I want to be able to specify for a given dependency
which repository to use to look for new versions. Ideally I would be
like to be able to do something like this in my pom (I use jtidy as an
example but I also have my own artifacts):

 

  <dependencyManagement>

    <dependencies>

      <dependency>

        <groupId>jtidy</groupId>

        <artifactId>jtidy</artifactId>

        <version>8.0-SNAPSHOT</version>

        <repository>

          <id>jtidy</id>

          <name>JTidy on SourceForge</name>

          <layout>default</layout>

          <url>http://jtidy.sourceforge.net/snapshots</url>

          <releases>

            <enabled>false</enabled>

          </releases>

          <snapshots>

            <enabled>true</enabled>

            <updatePolicy>always</updatePolicy>

          </snapshots>

        </repository>

      </dependency>

  </ dependencyManagement>

 

The reason that I don't want to put the repository in the global
repositories is that is slows down too much the system because it will
look up all artifacts in this repository.

 

Is it already possible to do this?

 

Thanks in advance for your help,

 

Julian Payne

ILOG S.A.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to