You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 76 Next »

Download, install and configure Maven

${renderedContent}

Download

For MAC users:
Maven usually comes pre-installed on your MAC.  Verify that Maven is install by opening a terminal window and typing the command line: mvn --version.  If Maven is installed, you should get something similar to:

${renderedContent}



If you got something similar to the above, you can skip this section and go to Install and Configur section.

  1. 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.
  2. Unzip/untar the binaries to a new folder (i.e. c:\maven\2.2.1).
  3. 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.

Install and Configure

  1. Download the serverTrustStore.jks and save it to a new folder (i.e. c:\keystores).
  2. To download Maven artifacts from the remote MIT maven repository (https://maven.mit.edu), 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:

    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 password.

    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 file.

  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:

    ${renderedContent}

  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:

    ${renderedContent}

  5. 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:

      ${renderedContent}

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

    2. In the line:

      ${renderedContent}

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

  • No labels