esheri3/OWASP-CSRFGuard — pull request #24 by cdaller (2012-05-09 13:32:04+00:00)
Title: Maven support for csrfguard

Hello Eric,

I was looking for a mavenized package of your guard but only found your request to help to create one (https://github.com/esheri3/OWASP-CSRFGuard/issues/20#issuecomment-4417047). So I did :-)

I set the version to 3.0.1-SNAPSHOT to not confuse the existing 3.0 version that you published.

I also created a small replacement for a public maven repository, but I think the packages should be published to a "real" maven repository. There is a free repo for open source projects on https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
If you pull my changes, we should also change the urls in the top-level pom.xml file to match your repository url. I followed (more or less) the guide at http://chkal.blogspot.com/2010/09/maven-repositories-on-github.html

I can help but as it is your project, you should deploy the csrfguard to the repository.

I have to admit that this is my first git project so I am not sure, if everything is correct on my git project setup/handling/etc.

I created a "parent" maven project and two child projects:
* one for the lib itself
* one for the test web app

You can create the packages with `mvn package`inside the top-level project (or in one of the child projects). This is not much better than it was before. A cool feature is the jetty integration in the test web app project: `mvn jetty:run`starts a jetty web server on port 8080 with the application.
`mvn deploy`will package and deploy the artifacts (jar and war file) to the repository directory. Not a real repo, but works.

Looking forward to your reaction :-)
Christof