martedì 14 giugno 2011

JFK update: Maven setup

After a few commits to make JFK available as an Apache Ant based project  I decided to switch to the more useful Apache Maven. Now JFK has a Maven pom.xml file that allows for compilation, downloading of dependencies and test execution.
To compile the project just type:
  
   mvn compile

and the system will start download dependencies and all required jars to compile the project. To run the tests just type:

    mvn test

Note that within this commit the repository layout has changed in order to respect the Maven structure; in particular:
  • -the "src" folder now has "main" for the JFK code and "test" for the test suite;
  • the "src/main/resource" folder is the one that contains the log4j and spring configuration XML files;
  • the above XML files have changed name: "jfk.log4j.xml" and "jfk.spring-beans.xml"


lunedì 13 giugno 2011

WhiteCat & Maven

In the last days I spent a few hours refactoring the WhiteCat source tree in order to be compliant with Apache Maven. Now it is possible to download the tree and have Maven to compile and run the test suite without having to worry about manually set up dependencies and jar files.

To compile the tree just type

mvn compile
while to run all the tests just run

mvn test

It is worth noting that this refactoring has allowed me to discovered a few bugs that have been fixed.