Prerequisites
Product | Version | Required |
---|---|---|
JDK | >= 1.7, 1.5 | Yes, for Compilation (1.5 for runtime); JAVA_HOME and JAVA5_HOME env variables needs to be set |
Apache Maven | >=2.2.0 | Yes |
Git | ie. 1.7.1.1 | |
Eclipse IDE | ||
m2eclipse | 0.10.0 | Recommended for Eclipse |
IntelliJ IDEA |
Check Out, Build, and Test
Perform Once
- (Optional) Fork the GitHub ShrinkWrap repository into your own account
- Use web interface on http://github.com
- Fork from: http://github.com/shrinkwrap/shrinkwrap
- Clone the ShrinkWrap Git Repo from your remote repo
$> git clone git@github.com:YourUsername/shrinkwrap.git
- Change into the repo directory
$> cd shrinkwrap
- Add a remote to the upstream
- Committers
$> git remote add upstream git@github.com:shrinkwrap/shrinkwrap.git
- Read-only
$> git remote add upstream git://github.com/shrinkwrap/shrinkwrap.git
- Committers
Perform During Development
- Ensure your local repo is up-to-date with the upstream
$> git pull upstream master
- Build and run tests, installing into the local M2 repository
$> mvn clean install
- Build and run tests, including the lengthier Stress Tests (required for release)
$> mvn clean install -Pstress
- When about to work on an issue, perform all work in a new branch named after the associated JIRA
$> git branch SHRINKWRAP-XXX $> git checkout SHRINKWRAP-XXX
- After done making changes, add any files to the staging area, and commit to the branch
$> git status
$> git add <files> -v
$> git commit -m '[SHRINKWRAP-XXX] Commit message referencing JIRA issue'
- Push the branch to your repository
$> git push origin SHRINKWRAP-XXX
- Get the changes upstream
- Committers
$> git remote add username userRepoLocation $> git fetch username $> git checkout -b SHRINKWRAP-XXX remotes/username/SHRINKWRAP-XXX $> mvn clean install $> git checkout master $> git merge SHRINKWRAP-XXX $> mvn clean install $> git push origin master $> git push upstream master
- Anonymous
- Make a "Pull Request" via GitHub interface
- Committers
Code format
- Formatting rules for Eclipse are located under the "build-resources" module: https://github.com/shrinkwrap/shrinkwrap/tree/master/build-resources/src/main/resources/code-style
Comments