Date Created: Fri 13-May-2011

Related Document Categories:


    How to use a local maven install with Eclipse as opposed to the internal Maven repository

    Download and install Maven in our local operating system

    Eclipse needs to know the path to the local maven repository. Therefore the classpath variable M2_REPO has to be set. Execute the following command:

    mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo


    Example

    1. Downloaded Maven:
    2. Set system path for local mvn commands for example add D:\apache-maven-2.2.1\bin to path



    3. Tell Meven to setup eclipse



    mvn -Declipse.workspace=D:\eclipse_3_6_64bit_maven\gwtspring eclipse:add-maven-repo




    Maven will create a local repository

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Oracle WebLogic Categories

JBoss Categories

Other Categories