Category: Server
-
Jenkins: Getting Karma Generated Test Results to Appear in Maven Project Job
PROBLEM Jenkins, for some reason, does not pick up Karma generated JUnit test reports even though they are created in the right directory… and apparently, it is a known problem. While Freestyle project job allows us to manually publish these JUnit reports, my intention is to rely on Maven project job to do the same… Read More…
-
MS SQL Server: Executing SQL Script from Command Line
PROBLEM When opening a 150MB SQL script file in Microsoft SQL Server Management Studio, the following error appears:- SOLUTION Instead of opening the large SQL script file and execute it, we can execute it directly from command line. … where -E uses trusted connection, -d points to the database and -i points to the SQL… Read More…
-
Maven + Jetty: Enabling SSL on Jetty Maven Plugin
PROBLEM In order to run our web application using HTTPS, we need to enable SSL first on Jetty. SOLUTION #1: Generating Certificate on the Fly One clean solution by @PascalThivent is to recreate the certificate whenever Jetty starts. Not to steal any credits from him, but here’s a slightly modified configuration using more recent plugin… Read More…
-
Maven: Deploying Java Sources to Nexus
By default, mvn deploy will only package and deploy class JAR to Nexus. To deploy the source code too, we need to add the following plugin into pom.xml:- Now, mvn deploy will deploy both class JAR and source code JAR to Nexus:- In IntelliJ, when jumping into a class from the JAR, we are given… Read More…
-
Maven: Enabling Snapshot Downloads
By default, Maven does not allow us to download snapshots. To enable this feature so that we can download snapshots from Nexus, add the following configuration to [USER.HOME]/.m2/settings.xml:- Replace http://snapshots with the actual snapshot link. Read More…
-
SonarQube: Building Specific Module in Multi-Module Project
Let’s assume we have a multi-module project that looks something like this:- To build certain module(s) within the project, we can use the sonar.skippedModules option to skip the modules we don’t need. For example, the following configuration in Jenkins will only build app-jar module in SonarQube:- Read More…