onyxbits/Raccoon — pull request #3 by Vhati (2014-06-11 21:22:07+00:00)
Title: Maven POM

This "pom.xml" is tweaked a bit since it's based on my other projects, where I use the maven-assembly plugin to create platform-specific zip and tar.gz archives for distribution. I left that part out, but kept some dependency version pinning that fixes tar-related bugs in case you ever decide to go that route.

At the top of the file, there's a project version number to bump with each release. After building with Maven, a "target" directory will be created containing "raccoon.jar" with all lib dependencies embedded within it; that's the binary to distribute.
.
.
I like to keep a second copy of my local repo (gitRepository) for tinkering and compiling (dev). Then I use a diff tool (WinMerge) to copy specific changes into the clean git folder for committing.

Not necessary of course; I'm just extra cautious. ; )

On Windows, I have a batch script one level up which sets environment variables and runs the maven command.
```
@ECHO OFF
SETLOCAL

SET JAVA_HOME=D:\Apps\j2sdk1.6.0_45
SET PATH=%JAVA_HOME%\bin;%PATH%

SET M2_HOME=D:\Apps\Maven
SET M2=%M2_HOME%\bin
SET PATH=%M2%;%PATH%

CD "dev"
CALL mvn clean package

ENDLOCAL & EXIT /B
```