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

Compare with Current View Page History

Version 1 Next »

MAP supports the Maven project build system. We have a local "virtual" repository that will get you all the SASH2, Struts, etc dependencies for your project automatically. It also lets you deploy your own packages to share them either with your local team or with other teams.

Configuring Maven 2.0.x to use the MAP Virtual Repository

Edit your conf/settings.xml and add the following profile:

 <profile> 
             <id>dev</id> 
             <repositories> 
                   <repository> 
                         <id>central</id> 
                         <url>http://mv.ezproxy.com.ezproxy.canberra.edu.au/artifactory/map</url> 
                         <snapshots> 
                               <enabled>false</enabled> 
                         </snapshots> 
                   </repository> 
                   <repository> 
                         <id>snapshots</id> 
                         <url>http://mv.ezproxy.com.ezproxy.canberra.edu.au/artifactory/map-snapshots</url> 
                         <releases> 
                               <enabled>false</enabled> 
                         </releases> 
                   </repository> 
             </repositories> 
             <pluginRepositories> 
                   <pluginRepository> 
                         <id>central</id> 
                         <url>http://mv.ezproxy.com.ezproxy.canberra.edu.au/artifactory/map</url> 
                         <snapshots> 
                               <enabled>false</enabled> 
                         </snapshots> 
                   </pluginRepository> 
                   <pluginRepository> 
                         <id>snapshots</id> 
                         <url>http://mv.ezproxy.com.ezproxy.canberra.edu.au/artifactory/map-snapshots</url> 
                         <releases> 
                               <enabled>false</enabled> 
                         </releases> 
                   </pluginRepository> 
             </pluginRepositories> 
       </profile> 

and make it the default profile:

 <activeProfiles>
     <activeProfile>dev</activeProfile>
 </activeProfiles>

Configuring Eclipse to use Maven

Add the m2eclipse plugin site to your eclipse Software Update sites list and install the plugin:

http://m2eclipse.codehaus.org/update/

You can now right click on your project and add dependencies via maven. Eclipse will also automatically deploy all the dependency jars to your local eclipse-configured tomcat.

Configuring your project for deploying jars to the MAP repository

TBD

  • No labels