A new version of this blog post is published under the title "Generate P2 Repository From Maven Artifacts in 2017" Motivation If you use Maven Tycho to build your Eclipse RCP application, you can use Maven dependencies as you know it from Maven (for more information see [1]). I notice that Tycho takes many times for …
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 MoreI 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 exists. …
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 More