Jersey 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 MoreSome 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 MoreThis 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 …
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 MoreIf you want to install Tomcat on Windows system as a service, you'll get the recommendation to use the 32-/64-Bit Windows Service Installer. If you want to install the Tomcat manually, it's fine. But you can't use this installer for an automatic installation and configuration of Tomcat, because the installer is …
Read MoreI'd like to share my experience with migration Sonatype Nexus 2 to Nexus 3. Starting Point I used two Nexus instances: A Nexus 2 Instance for Maven Repositories (2.13) A Nexus 3 Instance for Bower Repositories (3.0.1) Both instances had several types of repositories (host, proxy, group). The reason for this set up …
Read MoreSummary of SoCraTes 2016 Session "Hey dude, where is my tool chain?" - Working on Windows as a Linux
This year on the conference SoCraTes I hosted a session for the first time. It was about working on a Windows system from the perspective of a Linux user. A big thank to @ndrssmn, who motivated to host this session. @yooogan was so nice to summarize the session in the SoCraTes wiki (big thank for that). But the wiki …
Read More