Category: Server
-
Neo4j: Playing with Cypher Query Language
PROBLEM Every week, my shitty coworkers struggle to reach consensus on where to go for lunches and what beverages to order in the morning. SOLUTION To further understand the phenomenon of this first world problem, here’s a shitty graph database powered by Neo4j to visualize the love/hate relationship between my shitty coworkers and the shitty Read More…
-
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…