Maven Refresher Eclipse Integration for Maven projects

Step-1: After downloading Apache Maven, set M2_HOME to maven directory/
Step-2 : In Update Path to $PATH:$M2_HOME/bin, test from command window/shell the command
              maven -version
Step-3 : In eclipse, click on Windows, prefrences..search for Maven..edit properties....

              a) Installation home: <<maven home>>... then select the new installation home
             
              b) User Settings:  <<Select the maven home..installation dir's setting.xml>>

              Apply
              Open the settings.xml in Eclipse IDE and exit

Step-4:  In settings.xml, update the below and save/exit
             a) Local Repository set (sample)
                <localRepository>D:\Maven-Repo</localRepository>  
             b) If there is proxy..then put appropiate values..

     <proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     | -->
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>USERNAME</username>
      <password>PASSWORD</password>
      <host>PROXY BASR URL</host>
      <port>PROXY PORT</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>  
  </proxies>

Step-5: Then in Eclipse IDE, create a maven project via wizard.


Step-6..See snapshot.. (An excellent site...http://www.vogella.com/tutorials/EclipseMaven/article.html)
 example archetype for project creation.
Create Maven project in Eclipse - Part 3
On the last tab enter the GAV of your project similar to the following screenshot.
Create Maven project in Eclipse - Part 4

Run the build

Validate that the generate setup works correctly by running the build. For this right-click the pom.xml file and select Run As→ Maven build.
Create Maven project in Eclipse - Part 4
This opens a dialog which allows to define the parameters for the start. Enter clean verify in the Goals: field and press the Run button.

Comments

Popular posts from this blog

ScoreCard Model using R

The auxService:mapreduce_shuffle does not exist

Zeppelin and Anaconda