I have my own organization internal repository which is configured as follows in global setting.xml:
<mirror>
<id>nexus-public-snapshots</id>
<mirrorOf>public-snapshots</mirrorOf>
<url>http://nexus.tk.com/content/groups/public-snapshots</url>
</mirror>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://nexus.tk.com/content/groups/public</url>
</mirror>
</mirrors>
Is it possible to move the mirror details to parent pom file as repository? so we do not need to change the default setting.xml for each developer and CI server.
I configured repository as follows in project parent pom.xml but could not build the project. Even the required jar file available in internal company repo maven trying to download the jar from central and report an error could not find artifact
<repositories>
<repository>
<id>nexus</id>
<name>Sonatype's Maven repository</name>
<url>http://nexus.tk.com/content/groups/public</url>
</repository>
</repositories>