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)
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.
On the last tab enter the GAV of your project similar to the following screenshot.
Comments
Post a Comment