Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1

Create a settings.xml under .m2 (in your Document and Settings folder)

 

Code Block
<settings xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <!-- Uncomment this when the 'central' repo on ibiblio is down 
         See: http://maven.apache.org/guides/mini/guide-mirror-settings.html -->
    <!-- mirrors>
      <mirror>
        <id>ggi-project.org</id>
        <url>http://ftp.ggi-project.org/pub/packages/maven2</url>
        <mirrorOf>central</mirrorOf>
      </mirror>
    </mirrors -->
    <servers>
       <server>
          <id>apache.snapshots</id>
          <username>$USERNAME<<username>$USERID</username>
          <privateKey>$PATH_TO_PRIVATE_KEY</privateKey>
          <directoryPermissions>775</directoryPermissions>
          <filePermissions>644</filePermissions>
       </server>
       <server>
          <id>apache.releases<<id>struts-staging</id>
          <username>$USERNAME<<username>$USERID</username>
          <privateKey>$PATH_TO_PRIVATE_KEY</privateKey>
       </server>
       <server>
           <directoryPermissions>775</directoryPermissions><id>apache-site</id>
          <username>$USERID</username>
          <filePermissions>644</filePermissions><privateKey>$PATH_TO_PRIVATE_KEY</privateKey>
       </server>       
    </servers>
   <profiles>
       <profile>
         <id>struts<id>cargo-staging<config</id>
         <repositories><properties>
            <repository>
<cargo.tomcat5x.home>$CATALINA_HOME</cargo.tomcat5x.home>
         </properties>
      <id>struts-staging<</id>profile>
      <profile>
         <url>http://people.apache.org/builds/struts/m2-staging-repository</url><id>struts-staging</id>
         <repositories>
    <snapshots><enabled>false</enabled></snapshots>
       <repository>
      <releases><enabled>true</enabled></releases>
       <id>struts-staging</id>
    </repository>
          </repositories>
<url>http://people.apache.org/builds/struts/m2-staging-repository</url>
          </profile>   <snapshots><enabled>false</enabled></snapshots>
     <profile>
        <id>cargo-config</id><releases><enabled>true</enabled></releases>
         <properties>
  </repository>
          <cargo.tomcat5x.home>$PATH_TO_TOMCAT_5</cargo.tomcat5x.home></repositories>
         </properties>
  profile>    </profile>
   </profiles>
   <activeProfiles>
      <activeProfile>cargo-config</activeProfile>
   </activeProfiles>
</settings>

...