Wednesday, August 09, 2006

Quick start using Maven 2 with Spring Rich Client Project


A previous blog detailed how to get a local copy of the project source. Spring Rich Client has been refactored as of the 0.1 release to use Maven 2.0 as the Build Manager. This blog will walk though the steps involved in working with Maven to fetch the project dependencies, do a build and run the tests from scratch. The blog is pitched at an audience new to the Maven experience.


1. Download Maven 2 and follow the installation instructions. Make sure you verify the installation as suggested in the last step of the installation procedure before moving on.

2. The previous blog fetched the project source in to the local directory:

C:\spring_richclient

In here, the maven POM.XML file exists that defines, amongst other things, all the dependencies for the project. Open up a command window in this project root directory, and then execute the Maven install command as follows:

C:\spring_richclient\mvn install

Maven takes over and will start to create a local repository of the Spring Rich Client dependencies (eg third party libraries as JAR files etc). If you want to have a look, the maven repository is usually created in your working directory, under the directory “.m2”. For example, on Windows, this would typically be:

C:\Documents and Settings\\.m2

NOTE: As mentioned in the main project website, the install may not succeed first time and you could end up with command screen contents similar to the following:
The solution to this issue is to run the mvn install command again, and as many times as necessary for all the dependencies to be correctly downloaded and the build and tests to succeed. The initial installation can fail several times due to bad connections to the online repository etc. You will know when Maven has succeeded when you are presented with a screen similar to the following:
Note that this whole procedure can take quite a significant amount of time the first time it is done. You can see that in the command window above where it has taken 51 minutes to complete. Your mileage may vary on that time. From then on, however, the command works much faster as everything is stored locally. On successful completion, we will have all the project dependencies managed locally, a clean build of the project and (hopefully) a successful pass of all unit tests.

8 Comments:

At 7:41 PM, Anonymous Anonymous said...

Hi
Adult live chat Alone on Valentine's Day? Find partner free in your area !!!
Bye

 
At 11:46 PM, Anonymous Anonymous said...

Hi all!. Use this search engine for best result: BDsearch Find all you need in your area!
for fun

 
At 1:41 PM, Blogger adam brown said...

look this is the "diet" i told you about you should really enter the site :) bye enter the site

 
At 5:37 AM, Anonymous Anonymous said...

viagra dosage cheap viagra tablets viagra samples can viagra be used by women buying viagra online buying viagra online free viagra in the uk levitra vs viagra guaranteed cheapest viagra viagra online cheap viagra mexico free viagra samples before buying viagra and cialis generic brands of viagra online

 
At 8:16 AM, Anonymous Anonymous said...

Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!

 
At 11:54 PM, Anonymous Anonymous said...

You could easily be making money online in the hush-hush world of [URL=http://www.www.blackhatmoneymaker.com]blackhat blog[/URL], You are far from alone if you don't know what blackhat is. Blackhat marketing uses not-so-popular or not-so-known ways to produce an income online.

 
At 2:13 AM, Anonymous 有馬記念 said...

有馬記念 2010を徹底予想!気になる枠順やオッズ情報はもちろん、今年は確実に当てにいきます

 
At 6:52 AM, Anonymous Anonymous said...

HI [url=http://www.postawgo.com]postawgo[/url], thwart my site.

 

Post a Comment

<< Home