Some weeks ago I evaluated some SSH libraries for Java. The main requirements to them are file transferring and file operations on a remote machine. Therefore, it exists a network protocol based on SSH, SSH File Transfer Protocol (or SFTP). So I needed a SSH library that supports SFTP. A research shows that it exits …
Read MoreUnit And Integration Test Reports For Maven Projects In SonarQube 4.5.1
Jan 30, 2015 · 6 min read · integration-testing jacoco maven sonarqube test-coverage test-report unit-testing ·Since SonarQube 4.2. the test report isn't generated by the Sonar Maven Plugin during a Maven build (see SonarQube's blog post) . Therefore, the test report has to be generated by another plugin before Sonar Maven Plugin collects the information for the SonarQube server. Here, Jacoco Maven Plugin can help. It has the …
Read MoreFrom a certain point on, an application has to be configurable. Spring Framework has a nice auxiliary tool for this issue since the first version 0.9 , the class PropertyPlaceholderConfigurer and since Spring Framework 3.1 the class PropertySourcesPlaceholderConfigurer. When you start a Google search for …
Read MoreGuest Contribution by Markus Jenderek "Quality exists when the price is long forgotten", said Mr Royce to Mr Rolls with his petrol smeared face or Mr Rolls to Mr Royce - but anyway. The question is about which price is he talking about? Money, yes of course! But what about Pain, Features, Competition, Time, …
Read MoreThis post describes how to set up a Maven project for a Spring web application with Hessian Service. It also shows how to set up the deployment for exposing the Hessian service and how to set up a client to consume the Hessian service. The Spring Framework version is 3.1.1.RELEASE and the Hessian version is 4.0.7. …
Read MoreTo read resources from classpath, you can use the Spring class ClassPathResource. The constructor with one argument reads only resources from file system. But sometimes you want to read a resources from a jar file in the classpath. For this case, you must build an own URLClassLoader from the URL of the jar file and use …
Read MoreThis post describes how to prepare a release for Maven project with a set of Maven Plugins. Background The release preparation phase is built of following common steps: Build the artifact to verify that the build is successful. Run the unit tests of the artifact. Update the version of the artifact to the release …
Read MoreWhensoever, you call, for example, java -cp ../lib/hsqldb.jar org.hsqldb.Server --props ../bin/config/server.properties following exception is thrown: 1[Server@e0e1c6]: [Thread[main,5,main]]: checkRunning(false) entered 2[Server@e0e1c6]: [Thread[main,5,main]]: checkRunning(false) exited 3[Server@e0e1c6]: …
Read MoreIn the last weeks I familiarised myself with OSGi. Two books were very helpful: Modular Java: Creating Flexible Applications with OSGi and Spring by Craig Walls OSGi für Praktiker - Prinzipien, Werkzeuge und praktische Anleitungen auf dem Weg zur kleinen SOA by Bernd Weber, Patrick Baumgartner, Oliver Braun (in …
Read More