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]
Panel

Download

indent
Wiki Markup

h4. *Download*
{indent}
*For MAC users:*
indent
2
2
{indent}
{indent2}
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}
{indent:3}
indent
3
3
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"
indent
2
2
{indent}
{indent:2}
If you got something similar to the above, you can skip this section and go to *Install and Configur* section.
{indent}
# Go to the [*Apache Maven Project download*|http://maven.apache.org/download.html] site.  Scroll down until you reach the *Maven 
  1. Go to the Apache Maven Project download 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).
#
  1. Add
  1. the
  1. path
  1. to
  1. the
  1. Maven
  1. bin
  1. directory
  1. to
  1. the
  1. system
  1. PATH
  1. environment
  1. variable.
  For
  1.   For example:
  1. add
  1. c:\maven\2.2.1\bin
  1. to
  1. the
  1. PATH
  1. environment
  1. variable.
h4. *Install and Configure* # [Download the serverTrustStore.jks|How to install Maven^serverTrustStore.jks] and save it to a new folder

Install and Configure

  1. Download the serverTrustStore.jks and save it to a new folder (i.e.
  1. c:\keystores).
#
  1. To
  1. download
  1. Maven
  1. artifacts
  1. from
  1. the
  1. remote
  1. MIT
  1. maven
  1. repository
  1. (https://maven.mit.eduImage Added),
  1. an
  1. SSL
  1. connection
  1. is
  1. required.
  For Maven to acquire an SSL connection, you must create a system environment variable *MAVEN_OPTS* and set it as below: \\ \\ {code}
  1.   For Maven to acquire an SSL connection, you must create a system environment variable MAVEN_OPTS and set it as below:

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

  1. In the above,
  1. replace
  1. the
*
  1. /path/to
*
  1. with
  1. the
  1. actual
  1. path
  1. to
  1. the
  1. serverTrustStore.jks
  1. and
  1. replace
*
  1. XXXXXXXX
*
  1. with
  1. the
  1. actual
  1. serverTrustStore
  1. password.
\\ \\ *For MAC users*:  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


  1. 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 a user's ~/.MacOSX/environment.plist
  1. file.
\\ \\ # 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}


  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"
    
{indent} \\ # If the Maven installation has been verified in the above step, then initialize Maven by typing the command line: *mvn

  1. 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
  1. .  Maven download will start and if everything download's
  1. correctly,
  1. something
  1. similar
  1. to
  1. the
  1. following
  1. should
  1. be
  1. displayed
  1. at
  1. the
  1. end
  1. of
  1. the
  1. download:
\\ \\ {indent:2}


  1. 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] ------------------------------------------------------------------------
    
{indent} \\ #

  1. Finally,
[
  1. download
  1. the
  1. Maven
  1. settings.xml
  1. file
|How to install Maven^settings.xml]
  1. to
  1. your
*
  1. $
\
  1. {user.home}/.m2
*
  1. directory.
\\ \\ Open the


  1. Open the settings.xml
  1. file
  1. with
  1. a
  1. text
  1. editor.
\\ \\ ## In the line: \\ \\ {indent:2}


    1. In the line:

      indent
      2
      2
      
      *<oc4j.j2eeHome>/path/to/oc4j/j2ee/home</oc4j.j2eeHome>*
      
{indent} \\ change the *

    1. change the /path/to/oc4j/j2ee/home
*
    1. to
    1. the
    1. actual
    1. path
    1. to
    1. your
    1. OC4J
    1. installation
    1. j2ee/home
    1. directory.
\\ \\ ## In the line: \\ \\ {indent:2}


    1. In the line:

      indent
      2
      2
      
      <oc4j.password>*XXXXXXXX*</oc4j.password>
      
{indent} \\ change the *XXXXXXXX* to the password of the OC4J administrator

    1. change the XXXXXXXX to the password of the OC4J administrator (oc4jadmin)
    1. that
    1. you
    1. choose
    1. with
    1. you
    1. set
    1. up
    1. your
    1. OC4J
    1. standalone
    1. server.
&nbsp;&nbsp;This is the password the is used to access the OC4J Admin Console. \\ \\
    1.   This is the password the is used to access the OC4J Admin Console.