Here's an example .m2/settings.xml for use in the cargo samples suite

<settings>
  <proxies>
    <!--
      <proxy>
        <active>true</active>
        <protocol>http</protocol>
        <host>socks</host>
        <port>80</port>
      </proxy>
      -->
  </proxies>
  <profiles>
    <profile>
      <id>set-jdks-and-homes-osx</id>
      <activation>
        <os>
          <name>mac os x</name>
          <arch>i386</arch>
        </os>
      </activation>
      <properties>
        <cargo.java.home.1_4>/System/Library/Frameworks/JavaVM.framework/Versions/1.4/Home</cargo.java.home.1_4>
        <cargo.java.home.1_5>/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home</cargo.java.home.1_5>
        <cargo.java.home.1_6>/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home</cargo.java.home.1_6>
        <cargo.weblogic8x.home>/Users/adriancole/bea81/weblogic81</cargo.weblogic8x.home>
        <cargo.weblogic9x.home>/Users/adriancole/bea9/weblogic92</cargo.weblogic9x.home>
        <cargo.weblogic10x.home>/Users/adriancole/bea10/wlserver_10.0</cargo.weblogic10x.home>
        <cargo.weblogic103x.home>/Users/adriancole/bea/wlserver_10.3</cargo.weblogic103x.home>
        <cargo.oc4j9x.home>/Users/adriancole/oc4j_extended_904</cargo.oc4j9x.home>
        <cargo.oc4j10x.home>/Users/adriancole/oc4j_extended_101340</cargo.oc4j10x.home>
      </properties>
    </profile>
    <profile>
      <id>set-jdks-and-homes-linux</id>
      <activation>
        <os>
          <name>linux</name>
        </os>
      </activation>
      <properties>
        <cargo.java.home.1_4>/var/tmp/linux-gnu/32/j2sdk1.4.2_18</cargo.java.home.1_4>
        <cargo.java.home.1_5>/var/tmp/linux-gnu/64/jdk1.5.0_16</cargo.java.home.1_5>
        <cargo.java.home.1_6>/var/tmp/linux-gnu/64/jdk1.6.0_10</cargo.java.home.1_6>
        <cargo.weblogic8x.home>/var/tmp/bea/bea8/weblogic81</cargo.weblogic8x.home>
        <cargo.weblogic9x.home>/var/tmp/bea/bea9/weblogic92</cargo.weblogic9x.home>
        <cargo.weblogic10x.home>/var/tmp/bea/bea10/wlserver_10.0</cargo.weblogic10x.home>
        <cargo.weblogic103x.home>/var/tmp/bea/bea103/wlserver_10.3</cargo.weblogic103x.home>
      </properties>
    </profile>
    <profile>
      <id>set-jdks-and-homes-windows</id>
      <activation>
        <os>
          <family>windows</family>
        </os>
      </activation>
      <properties>
        <!-- extremely slow on windows -->
        <cargo.containers.timeout>240000</cargo.containers.timeout>
        <cargo.java.home.1_4>e:\apps\win32\java\j2sdk1.4.2_18</cargo.java.home.1_4>
        <cargo.java.home.1_5>e:\apps\win32\java\jdk1.5.0_17</cargo.java.home.1_5>
        <cargo.java.home.1_6>e:\apps\win32\java\jdk1.6.0_11</cargo.java.home.1_6>
        <cargo.weblogic8x.home>e:\apps\package\weblogic\bea816\weblogic81</cargo.weblogic8x.home>
        <cargo.weblogic9x.home>e:\apps\package\weblogic\bea923\weblogic92</cargo.weblogic9x.home>
        <cargo.weblogic10x.home>e:\apps\package\weblogic\bea10mp1\wlserver_10.0</cargo.weblogic10x.home>
        <cargo.weblogic103x.home>e:\apps\package\weblogic\bea103\wlserver_10.3</cargo.weblogic103x.home>
        <cargo.oc4j9x.home>e:\apps\package\oracle\oc4j_extended_904</cargo.oc4j9x.home>
        <cargo.oc4j10x.home>e:\apps\package\oracle\oc4j_extended_101340</cargo.oc4j10x.home>
      </properties>
    </profile>
    <profile>
      <id>set-jdks-and-homes-solaris</id>
      <activation>
        <os>
          <name>sunos</name>
        </os>
      </activation>
      <properties>
        <cargo.java.home.1_4>/var/tmp/j2sdk1.4.2_16</cargo.java.home.1_4>
        <cargo.java.home.1_5>/package/java-1.5.0_15</cargo.java.home.1_5>
        <cargo.java.home.1_6>/package/java-1.6.0_07</cargo.java.home.1_6>
        <cargo.weblogic8x.home>/var/tmp/bea/bea8/weblogic81</cargo.weblogic8x.home>
        <cargo.weblogic9x.home>/var/tmp/bea/bea9/weblogic92</cargo.weblogic9x.home>
        <cargo.weblogic10x.home>/var/tmp/bea/bea10/wlserver_10.0</cargo.weblogic10x.home>
        <cargo.weblogic103x.home>/var/tmp/bea/bea103/wlserver_10.3</cargo.weblogic103x.home>
      </properties>
    </profile>
  </profiles>
</settings>
Copyright 2004-2024. All rights reserved unless otherwise noted.
Click here to read our privacy and cookie policy