Bläddra i källkod

Settings.xml update for nexus and internal mirror

benjamin.schwertfeger@gmail.com 13 år sedan
förälder
incheckning
3f265ca789
1 ändrade filer med 36 tillägg och 5 borttagningar
  1. 36 5
      releng/org.yakindu.base.target/settings.xml

+ 36 - 5
releng/org.yakindu.base.target/settings.xml

@@ -1,7 +1,7 @@
-<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
-                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
+  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0
+                      http://maven.apache.org/xsd/settings-1.1.0.xsd">
   <localRepository/>
   <interactiveMode/>
   <usePluginRegistry/>
@@ -41,8 +41,39 @@
       <layout>p2</layout>
       <mirrorOfLayouts>p2</mirrorOfLayouts>
     </mirror>
+    <mirror>
+      <id>Nexus</id>
+      <name>Nexus itemis</name>
+      <url>https://builds.itemis.de/nexus/content/groups/public</url>
+      <mirrorOf>*</mirrorOf>
+    </mirror>
   </mirrors>
   <proxies/>
-  <profiles/>
-  <activeProfiles/>
+<profiles>
+    <profile>
+      <id>nexus</id>
+      <!--Enable snapshots for the built in central repo to direct -->
+      <!--all requests to nexus via the mirror -->
+      <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>