Tag Archives: Maven

Creating executable jar file with Maven

Building an executable jar file with maven-jar-plugin is fairly easy. However, it has one disadvantage that the Maven dependencies are not packaged together inside the resulting jar file but have to be stored separately on the file system and added … Continue reading

Posted in Java, Maven | Tagged , | 4 Comments

Adding external/custom jars into Maven project

One of the strongest points of Maven is that it automatically manages project dependencies. The developer just needs to specify which dependencies and in which version are needed and the Maven takes care of the rest including downloading and storing … Continue reading

Posted in Java, Maven | Tagged , | 9 Comments

Using JUnit, JaCoCo and Maven for code coverage

JaCoCo is quite a new tool for measuring and reporting code coverage with full support for Java 7. Currently it supports instruction, branch, line, method and class coverage which is pretty anything you can expect from this kind of tool. … Continue reading

Posted in Code coverage, Java, Maven, Software development practices | Tagged , , , , , | 3 Comments

Test driven development

Test driven development is an important and valued part of agile practices. In test drivenĀ  development (in short TDD) developers first write tests for new functionality (e.g. a class) and later they implement it. The order is crucial and I … Continue reading

Posted in Java, Software development practices | Tagged , , , , | 2 Comments