If you introduce code formatting rules retroactively, you have to solve the problem how to format existing code base according to the new formatting rules. You could checkout every code repository one by one in your IDE and click on Autoformat the whole project. But this is boring and waste of time. Fortunately, …
Read MoreOn my last conference talk (it was about Ansible and Docker at DevOpsCon in Berlin), I was asked what is the best way to run Ansible on a Windows system. Ansible itself requires a Linux-based system as the control machine. When I have to develop on a Windows machine, I install a Linux-based virtual machine to run the …
Read MoreI use a NPM registry proxy in Sonatype Nexus 3 behind an Apache2 as reverse proxy. With the "standard" Apache2 VirtualHost configuration 1<VirtualHost:80> 2 ProxyRequests Off 3 <Proxy *> 4 Order deny,allow 5 Allow from all 6 </Proxy> 7 ProxyPass / http://localhost:8081/ 8 ProxyPassReverse / http://localhost:8081/ …
Read MoreJersey has a great possibility to write integration test for REST-APIs, written with Jersey. Just extend the class JerseyTest and go for it. I ran in an issue, where I had to mock a SecurityContext, so that the SecurityContext includes a special UserPrincipal. The challenge is that Jersey wraps the SecurityContext in …
Read MoreWhen I start a new Git repository, I lose a lot of time to set up my .gitignore file and normally, I don't match everything on the first shoot. Fortunately, there exists some tools, that help to bootstrapping it. I'd like to show two of them. One is a website that can be used on the command line and the another is a …
Read MoreThe default setting in Jenkins is to mark a job yellow, when a Maven build fails because of failing tests. If you don't want to have three status of your jobs, you can configure Jenkins so, that the jobs also mark red independent why a Maven build fails. For this you will need administration rights on your Jenkins …
Read MoreGenerate P2 Repository From Maven Artifacts In 2017
Sep 22, 2017 · 5 min read · eclipse rcp equinox maven repository maven tycho osgi p2 p2-repository ·Some years ago, I wrote a blog post about how to generate a P2 repository based on Maven artifacts. That described approach is obsolete nowadays and I'd like to show a new approach that is based on the p2-maven-plugin that was created to solve exactly this problem. P2-Maven-Plugin Integration in Maven Build Life Cycle …
Read MoreHow to Configure Apache2 as Forward and Reverse Proxy
This is a cook recipe to configure an Apache2 as a forward and reverse proxy on Debian-based Linux systems like Ubuntu or Debian itself. Installation It is assumed that the apache2 package is already installed on your system. For the proxy feature, we have to install the Apache2 module libapache2-mod-proxy-html on the …
Read MoreI usually work on different Git projects that need different Git identities. My work flow for new repositories was Clone new repository. Go to cloned repository. If it is necessary to change the Git identity, call a shell script that runs git config user.name "Sandra Parsick"; git config user.email sparsick@web.de I …
Read MoreI like to work with git on the command line. But in some cases I prefer UI support. For example, solving merge conflicts is such a case. Git has a command mergetool, which can open a graphical tool to solve merge conflicts. But before you can use this command, you had to configure it. In this blog post I'd like to show …
Read More