edit delete favorite
Posted by eric on Oct 19, 2007
Place the settings.xml in your user directory ~/.m2/settings.xml This is more flexible than managing repositories via the pom.xml, and is the recommended best-practice.
<settings>
  <profiles>
    <profile>
      <id>in-house-repos</id>
      <repositories>

        <!-- Add as many repositories as necessary -->
        <repository>
          <id>in-house-snap-1</id>
          <name>In-House Repository for Snapshots 1</name>
          <!-- look at 'servers' or 'proxies' if you can't connect to the url -->
          <url>http://ourrepo/maven/</url>
          <snapshotPolicy>always</snapshotPolicy>
        </repository>

      </repositories>
    </profile>
  </profiles>

  <!-- must activate the profile -->
  <activeProfiles>
    <activeProfile>in-house-repos</activeProfile>
  </activeProfiles>
</settings>
 
Must be logged in to add a comment or review

Comments

Please submit any bugs/features and report abuse. Thanks!
Spacer
Spacer
Spacer
Top Users
Spacer
Top Tags
Spacer