Hello,
I’m looking for some help on repository handling. In our company we have 2 internal repository servers (both running maven-proxy). They are also used for Ibiblio mirroring. And they both contain 2 directories (one for snapshots and one for releases). This setup is complete and works like a charm. The problem lies with the maven configuration. 1) We can set the mirror tag in the settings.xml. This cause 2 problems. One It always searches on one of the configured servers. So when we need a artifact that was deployed on a other server it can’t find it and fails. The second problem is when I or my colleages work on their laptop at home none of these 2 servers are available and It doesn’t switch back to the main ibiblio server ( HYPERLINK "http://www.ibiblio.org/maven2"www.ibiblio.org/maven2 ). <mirrors> <mirror> <id>repo1</id> <mirrorOf>central</mirrorOf> <name>Ibiblio Mirror 1</name> <url>http://192.168.1.2:9999/repository</url> </mirror> <mirror> <id>repo1</id> <mirrorOf>central</mirrorOf> <name> Ibiblio Mirror 1</name> <url>http://192.168.1.3:9999/repository</url> </mirror> </mirrors> 2) The other possibility is to create a profile in the settings.xml and declare the repositories there. The same problem occurs here there is only one repository chosen to look for the object. So if its deploys to the other server though break. Also the pom gets downloaded from ibiblio and the jar from the local mirroring ibiblio server. This you can solve with declaring the id of the repository to central. And again when I work at home no artefact downloading is possible because of no access to the repositories is possible. <profiles> <profile> <id>myprofile</id> <repositories> <repository> <id>Repo1</id> <name>repo1</name> <url>http://192.168.1.3:9999/repository</url> </repository> <repository> <id>Repo2</id> <name>repo2</name> <url>http://192.168.1.2:9999/repository</url> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>myprofile</activeProfile> </activeProfiles> How do I create this setups fully automated ? Is this normal behaviour or is this a bug. Maven always seems to just look at one of the declared repositories. I have tried a lot but can’t seem to get this setup up and running. What we do know is when we work at home we disable a profile with the internal repositories declared in the settings.xml and for the the 2 internal repo servers (releases and snapshots) we rsync (as a cron job) the directories on the 2 so both servers contain the same structure and content. Thanks for any assistance you can provide. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006