Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

UNDER CONSTRUCTION

Download, install and configure Maven

Info

Help is available by sending an email to csf-support@mit.edu
Have any suggestion on how improve this wiki?  Please give us your feedback at csf-support@mit.edu

Panel

Quick Links to:

Table of Contents
minLevel4
maxLeve4
Panel

Download and Install Maven

Install
  1. For MAC users:
    indent
    1
    1
    
    
Go to the [*Apache Maven Project download*|http://maven.apache.org/download.html] site.  Scroll down until you reach the *Maven 2.2.1* section and select either *Maven 2.2.1 (Binary tar.gz)* or *Maven 2.2.1 (Binary zip)*.  Select a Mirror and save the downloaded file on your workstation.
  1. Maven usually comes pre-installed on your MAC.  Verify that Maven is installed by opening a terminal window and typing the command line: *mvn --version*.  If Maven is installed, you should get something similar to:
    

    indent
    3
    3
    
    Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
    Maven home: /usr/share/maven
    Java version: 1.6.0_31, vendor: Apple Inc.
    Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    Default locale: en_US, platform encoding: MacRoman
    OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"
    

    indent
    1
    1
    
    If you got something similar to the above, you can skip this section and go to the [*Configure Maven* | #Configure Maven] section.
    

  2. Go to the Apache Maven Project download site.  Scroll down until you reach the Maven 2.2.1 section and select either Maven 2.2.1 (Binary tar.gz) or Maven 2.2.1 (Binary zip).  Select a Mirror and save the downloaded file on your workstation.

  1. Unzip/untar the binaries to a new folder (for example: e.g. c:\maven\2.2.1).
  2. Add the path to the Maven bin directory to the system PATH environment variable.  For example: add c:\devtools\maven\2.2.1\bin to the PATH environment variable.
  3. Verify the Maven installation by opening a CMD window and typying the command line: mvn --version.  If everything is correct, something similar to the following should be displayed:

    indent
    2
    2
    
    Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
    Java version: 1.6.0_27
    Java home: C:\Program Files\Java\jdk1.6.0_27\jre
    Default locale: en_US, platform encoding: Cp1252
    OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
    

  4. If the Maven installation has been verified in the above step, then initialize Maven by typing the command line: mvn plugin::help.  Maven download will start and if everything download's correctly, something similar to the following should be displayed at the end of the download:

    indent
    2
    2
    
    \[INFO] ------------------------------------------------------------------------
    \[INFO] BUILD SUCCESSFUL
    \[INFO] ------------------------------------------------------------------------
    \[INFO] Total time: 58 seconds
    \[INFO] Finished at: Thu May 31 10:23:25 EDT 2012
    \[INFO] Final Memory: 11M/981M
    \[INFO] ------------------------------------------------------------------------
    
*MAVEN_OPTS
  • For Mac users:  You must set the environmental variable _JAVA_OPTIONS as shown below.
Panel

Anchor
Configure Maven
Configure Maven

Configure Maven

  1. Download the serverTrustStore.jks and save it to a new folder (e.g. c:\keystores).
  2. To download Maven artifacts from the remote MIT maven repository (https://maven.mit.eduImage Removed), an SSL connection is required. For   For Maven to acquire an SSL connection, you must create a system environment variable MAVEN_OPTS and set it as below:
indent
22
Code Block

_JAVA_OPTIONS=-Djavax.net.ssl.trustStore=/
usr
  • path/
local
  • to/
truststores/
  • serverTrustStore.jks -Djavax.net.ssl.trustStorePassword="XXXXXXXX" -Xmx512m -Xms512m -XX:MaxPermSize=512m
* In your ${user.home} directory, create the directories oc4j/10.1.3.5.0 and unzip the oc4j_extended_101350.zip file to the ${user.home}/oc4j/10.3.5.0 directory.  Create a system environmental variable ORACLE_HOME and set it's value to ${user.home}/oc4j/10.3.5.0.
For example: if ${user.home}=/users/rstone, then ORACLE_HOME=/user/rstone/oc4j/10.1.3.5.0
You can actually unzip to any directory you desire. The only requirement is that all directory names cannot contain any white space.
  • 
    
  • For Windows users:  You must set the environmental variable MAVEN_OPTS as shown below.
    Code Block
    
    MAVEN_OPTS=-Djavax.net.ssl.trustStore=/path/to/serverTrustStore.jks -Djavax.net.ssl.trustStorePassword="XXXXXXXX" -Xmx512m -Xms512m -XX:MaxPermSize=512m
    

    In the above, replace the /path/to with the actual path to the serverTrustStore.jks and replace XXXXXXXX with the actual serverTrustStore.jks password.  If you don't know the serverTrustStore.jks password, your team leader can get it for you.

    For MAC users:  You can now download a nice plugin that helps you manage your system environmental variables.  The plugin, RCEnvironment, is a preference pane for MacOS X 10.1 or higher that allows editing of your ~/.MacOSX/environment.plist file.
    For Window users:  Go to Start > Control Panel > System > Advanced system settings > Environment Variables... and under System variables, click New and enter the MAVEN_OPTS shown above.
indent h4. *Configure* {indent:1} Edit the file $\{ORACLE_HOME}/j2ee/home/config/system-application.xml and change: