Hi all,

I have installed nexus on our internal server as a repo manager. The nexus 
documentation tells me to put the following in settings.xml in my .m2 directory 
so that maven knows where to look for the nexus repo

I don't want to distribute this settings.xml to all of my developers so what 
should I do? Can I put all of this in pom.xml of our project archetype (which 
all developers use to create projects) so I don't have to distribute this 
settings.xml files or is there another way around it?

<settings>
   <mirrors>
      <mirror>
        <!--This sends everything else to /public -->
        <id>nexus</id>
        <mirrorOf>*</mirrorOf>
        <url>http://server_address:8081/nexus/content/groups/public</url>
      </mirror>
   </mirrors>
   <profiles>
      <profile>
         <id>nexus</id>
         <repositories>
            <repository>
           <id>central</id>
           <url>http://central</url>
           <releases><enabled>true</enabled></releases>
           <snapshots><enabled>true</enabled></snapshots>
        </repository>
         </repositories>
         <pluginRepositories>
        <pluginRepository>
           <id>central</id>
           <url>http://central</url>
           <releases><enabled>true</enabled></releases>
           <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
         </pluginRepositories>
      </profile>
   </profiles>
   <activeProfiles>
        <!--make the profile active all the time -->
       <activeProfile>nexus</activeProfile>
   </activeProfiles>
</settings>

--------------------------------------------
Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate | La direction générale des applications
Chief Information Officer Branch | Direction générale du dirigeant principal de 
l'information
Environment Canada | Environnement Canada
[email protected]
Telephone | Téléphone 416-739-4702
Government of Canada | Gouvernement du Canada
Website | Site Web www.ec.gc.ca

Reply via email to