Trifork Blog

Axon Framework, DDD, Microservices

Posts Tagged ‘maven’

Setting up Maven to use Grunt/NodeJS

October 7th, 2014 by
(http://blog.trifork.com/2014/10/07/setting-up-maven-to-use-gruntnodejs/)

grunt-logo For one of our projects we wanted to automate javascript concatenation/minification/tests and incorporate it into our maven build. While there are a number of maven plugins for those tasks, I’ve found that depending on another technology offered so much more and basically ended up integrating Grunt into our maven build. Grunt is a task runner which runs in node.js¬†and it along with its plugins (tasks) are distributed with NPM. One could compare it with Maven + Ant with one big advantage for frontenders, it’s all javascript driven. This advantage means there’s a wider scenery of tooling catered specifically (but not exclusively) for frontend development and makes it quite delightful to find and use tools. It will feel weird to integrate a dependency manager and task runner into another dependency manager and task runner, but it actually makes sense from a polyglot point of view. Don’t worry though, we will be using¬†Maven to add Grunt to the build.
Read the rest of this entry »

Cleaning up your maven repository

August 1st, 2011 by
(http://blog.trifork.com/2011/08/01/cleaning-up-your-maven-repository/)

A few days a go I was looking at a warning that my disk was getting to full. I just upgraded to apple osx lion. There were a few things that were related to the upgrade, but another large directory was the maven repository directory. The easy way out is to just remove everything, but I do not want to do that every week. Than I started to think about a solution to delete only part of the repository. As I like playing around with groovy, it must be a groovy script.

So what libraries or artifacts to remove? I want to remove all old snapshots and I want to remove old artifacts of which newer ones have been installed. In this blog post I explain the script, what it can and how it works.

Read the rest of this entry »

Using Hamcrest Matchers.everyItem

February 19th, 2011 by
(http://blog.trifork.com/2011/02/19/some-trouble-with-getting-the-right-version-of-hamcrest-and-the-solution/)

For my Junit test I wanted to make use of Matchers.everyItem so I could easily check if every item of a list machtes a certain matcher. Resulting in a small line of code which is nice to read.

Read the rest of this entry »