Child pages
  • Maven 1.x build.properties file
Skip to end of metadata
Go to start of metadata
  1. Create a new text file in your user home directory called build.properties
    • Note: This is probably c:\documents and settings\<username> in Windows
  2. Add the following lines:
    maven.repo.remote = http://source.sakaiproject.org/maven/,http://repo1.maven.org/maven/
    maven.tomcat.home = /opt/tomcat/
    
    • Note: The trailing slashes are required
    • Note: You must use forward slashes
    • Note: You must have spaces around the "="
    • Note: Do NOT change / to \ if using windows
    • Note: DO add c: to the path if using windows
  • (optional) Users who use a network proxy need to do add the following to their file
    maven.proxy.host = www.your.proxy.host
    maven.proxy.port = 80
    maven.proxy.username = your_username
    maven.proxy.password = your_password
    maven.proxy.nonProxyHosts = localhost
    
    • If you do not use a username or password for your proxy just leave out those 2 lines
    • You only need the nonProxyHosts option if you have a local maven repo that does not require the proxy to be accessed
  • No labels