I like to use Cygwin for having a bash shell on a windows machine. In combination with Console2 you have a powerful command-line tool for windows. I'd like to describe how to install Cygwin and Console2 under windows 7 (I think this instruction works on Windows XP, too) and how to embed Cygwin in Console2. I used for …
Read MoreI use Pax Runner to provisioning my OSGi applications. I want to use several OSGi applications on my test server. As soon as you start the second OSGi application provisioned by Pax Runner, you get the following exception: 1Exception in thread "main" java.lang.RuntimeException: org.ops4j.pax.runner.daemon.lock …
Read MoreAssumption I assume Nexus OOS in version 2.1.2 is installed. You can find a good tutorial in Sonatype's Nexus book Repository Management with Nexus (Chapter 3: Installing and Running Nexus). Preparation For the set up of a proy P2 repository three Nexus plugins are needed: Nexus Capability Plugin (It is contained in …
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 MoreIn my last post of this series, I described how to solve the dependency problem. In this post, I will describe how to build Eclipse Plugin and Eclipse Feature with Maven Tycho and which problems I have. POM Definition The procedure for both Eclipse artifacts is similar. In both, you have to insert a pom.xml and fill it …
Read MoreThis post series should not be a tutorial for Maven Tycho. You can find many tutorials on the web (see for example [2] and [3]). This post series should be a field report about the problems during the introduction of Maven Tycho. Why Maven Tycho? One requirement is that we can use Maven artifacts. So it seems obvious …
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 MoreDuring the inspection of several sucessful Maven 3 build output, following SaxException catchs my eye: 1[INFO] Parsing file:/home/skosmalla/.m2/repository/repository.xml 2[Fatal Error] repository.xml:3:1: Premature end of file. 3org.xml.sax.SAXParseException: Premature end of file. 4at …
Read MoreI installed Nexus on Linux according to the step-by-step instruction of Sonatype. Everything looked fine during the installation. To find out, whether the installation was successful, I tried to go to the welcome page of my nexus installation. I got an error message. I looked in the log file of Nexus and found …
Read More