hallo

yes the order of the repositories is kept when looking for artifacts.

you can define repositores in settings.xml or in a profile in a parent pom.

but from here: do you plan to put different artifacts with the same groupId/artifactId/version into your repositories?
so dev-repo will contain a group/id/artifactId-product-version.jar
and stage-repo too? but both jars are not actually the same?

it might turn out difficult to say what ends up in you build! once an artifact is found in stage, the prod build may not come to the expected result since the prod jar will not be searched.

i would strongly recommend using the version to distinguish the different types (1.0.0-dev, 1.0.0-stage) if you do not plan to use snapshot builds.

jars will be send around. if it does not have an unique name things will go wrong.


hope to help a little bit :)
regards

ossi



Baz schrieb:
I saw the followings at,
http://maven.apache.org/guides/mini/guide-multiple-repositories.html. Does
it mean my compilation will now look for my-repo1 first, then my-repo2?

If so, can i define this at super pom so i only need to do it once?

Thanks.


<project>
...
  <repositories>
    <repository>
      <id>my-repo1</id>
      <name>your custom repo</name>
      <url>http://jarsm2.dyndns.dk</url>
    </repository>
    <repository>
      <id>my-repo2</id>
      <name>your custom repo</name>
      <url>http://jarsm2.dyndns.dk</url>
    </repository>
  </repositories>
...
</project>




On 9/6/07, Baz <[EMAIL PROTECTED]> wrote:
Hi,

How can i setup the dependency on more than one repos in certain order?
For example, production repo, stage repo, then dev repo?

Thanks.

A.




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

Reply via email to