Versions Compared

Key

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

...

  • Here's the file: apache-tomcat-6.0.18.zip
  • Put this somewhere on your machine that won't be disturbed, for instance $HOME/arc. You may need to make the arc/ directory if you are going to use that.
  • Construct the file URL for this file. For instance, if you put it in /Users/adam/arc/apache-tomcat-6.0.18.zip, the file url would be file:///Users/adam/arc/apache-tomcat-6.0.18.zip.
  • For Windows, if you put the file in c:\downloads\apache-tomcat-6.0.18.zip, the file url would be file:///c:/downloads/apache-tomcat-6.0.18.zip.
  • Save the following text as the $HOME/.m2/settings.xml file, replacing the REPLACE-WITH-FILE-URL in the text below with the URL you just constructed: ::
    Code Block
    xml
    xml
    <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">
    <profiles>
    <profile>
    <id>local</id> <activation>
    <activeByDefault>true</activeByDefault>
    </activation>
    <properties>
    
       <profiles>
          <profile>
             <id>local</id>
             <activation>
                <activeByDefault>true</activeByDefault>
             </activation>
             <properties>
                <tomcat.container.url>REPLACE-WITH-FILE-URL</tomcat.container.url>

    
             </properties>

    
          </profile>
    
       </profiles>
    
    </settings>

Proxy Settings

Maven often acts funny if the network is not set up correctly, especially the first time you build. If you access the internet via a proxy server, you must tell maven about the settings. See this page for info:

...