Versions Compared

Key

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

...

indent
Help is available by sending an email to [mailto:csf-support@mit.edu]
#
  1. Go
  1. to
  1. the
[*
  1. Apache
  1. Maven
  1. Project
  1. download
*|http://maven.apache.org/download.html] site.  Scroll down until you reach the *Maven
  1. site.  Scroll down until you reach the Maven 2.2.1
*
  1. section
  1. and
  1. select
  1. either
*
  1. Maven
  1. 2.2.1
  1. (Binary
  1. tar.gz)
*
  1. or
*
  1. Maven
  1. 2.2.1
  1. (Binary
  1. zip)
*.  Select a Mirror and save the downloaded file on your workstation. # Unzip/untar the binaries to a new folder
  1. .  Select a Mirror and save the downloaded file on your workstation.

  2. Unzip/untar the binaries to a new folder (i.e.
  1. c:\maven\2.2.1).

Install and Configure

for WindowsAdd the path to the Maven bin directory to the system PATH environment variable.  For example: add

Panel

Download

indent
indent

# Add the path to the Maven bin directory to the system PATH environment variable.  For example: add c:\maven\2.2.1\bin to the PATH environment variable.

# [Download the serverTrustStore.jks|How to install Maven^serverTrustStore.jks] and save it to a new folder (i.e. c:\keystores).

# To download Maven artifacts from the remote MIT maven repository (https://maven.mit.edu
Image Removed
), an SSL connection is required.
  For Maven to acquire an SSL connection, you must create a system environment variable MAVEN_OPTS and set it as below:
indent
  For Maven to acquire an SSL connection, you must create a system environment variable *MAVEN_OPTS* and set it as below:
\\
\\
Code Block

{code}
MAVEN_OPTS=-Djavax.net.ssl.trustStore=/path/to/serverTrustStore.jks -Djavax.net.ssl.trustStorePassword="XXXXXXXX" -Xmx512m -Xms512m -XX:MaxPermSize=512m
{code}

indent

\\
In the above, replace the *
In the above, replace the
/path/to* with the actual path to the serverTrustStore.jks and replace *XXXXXXXX* with the actual serverTrustStore password.

For MAC users: indent22

\\
\\
*For MAC users*:
{indent:2}
  You can now [download a nice plugin | How to install the Oracle OC4J 10.1.3.5 stand alone server^RCEnvironment-1.4.X.dmg] 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 a user's ~/.MacOSX/environment.plist file.


  1. 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"
    

  2. 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] ------------------------------------------------------------------------
    

  3. Finally, download the Maven settings.xml file to your ${user.home}/.m2 directory.

    Open the settings.xml file with a text editor.

    1. In the line:

      indent
      2
      2
      *<oc4j.j2eeHome>/path/to/oc4j/j2ee/home</oc4j.j2eeHome>*
      

      change the /path/to/oc4j/j2ee/home to the actual path to your OC4J installation j2ee/home directory.

    2. In the line:

      indent
      2
      2
      <oc4j.password>*XXXXXXXX*</oc4j.password>
      

      change the XXXXXXXX to a password of your choosing.  This is the password the is used to access the OC4J Admin Console.