17.08.2016 Views

Apache Maven 3 Cookbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3<br />

How it works...<br />

Eventually, everyone in your distributed team should be comfortable executing the following:<br />

ff<br />

ff<br />

ff<br />

ff<br />

ff<br />

ff<br />

ff<br />

Updating the local code base from the revision control system<br />

Picking up a task from the issue / task management system<br />

Writing the tests for the tasks that they are implementing<br />

Writing the code to implement the tasks<br />

Running a local build, and checking that code compiles, and all existing and new<br />

tests execute successfully<br />

Updating and merging changes in case multiple commits have been made while the<br />

programmer was coding<br />

Committing the code<br />

Once your team is here, you know you have done a good job developing not only software,<br />

but also shaping individuals and building teams. This, for the senior developers, can be an<br />

extremely rewarding experience.<br />

See also<br />

ff<br />

ff<br />

ff<br />

Chapter 3, Creating centralized remote repositories section<br />

Chapter 3, Performing continuous integration with Hudson section<br />

Chapter 3, Integrating Source Code Management section<br />

Working in offline mode<br />

Stuck on a tropical island with no Internet access? Will you give in to that intrinsic urge to<br />

write more code?<br />

<strong>Maven</strong>, always a good friend of the developer, lets you work away from centralized SCMs,<br />

central repositories, and issue tracking systems. It's called the <strong>Maven</strong> offline mode.<br />

Getting ready<br />

You will need an existing or new project to work on. If your project has dependencies<br />

that are not available on the local repository, make sure you have the packages<br />

JAR/WAR/EAR available.<br />

69

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!