-
Recent Posts
- Follow softwarecave on WordPress.com
Archives
- December 2021 (1)
- October 2021 (2)
- April 2018 (1)
- March 2018 (3)
- February 2018 (1)
- February 2017 (4)
- December 2014 (3)
- November 2014 (2)
- August 2014 (1)
- July 2014 (2)
- June 2014 (2)
- May 2014 (2)
- April 2014 (5)
- March 2014 (9)
- February 2014 (11)
- January 2014 (6)
- September 2011 (1)
Categories
Tag Archives: Maven
Delete directory with contents in Java
Removing empty directory in Java is as simple as calling File.delete() (standard IO) or Files.delete() (NIO) method. However, if the folder is not empty (for example contains one or more files or subdirectories), these methods will refuse to remove it. … Continue reading
Importing WSDL with Java and Maven
SOAP web services are often used in commercial software. If we plan to use existing SOAP web service, we should receive a WSDL file which defines the contract between the web service and its clients. This contract defines at least: … Continue reading
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
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
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 Code coverage, JaCoCo, Java, Jenkins, JUnit, Maven
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 Java, JUnit, Maven, TDD, test drivenĀ development
2 Comments