TL;DR Believe me you almost never want to run the install goal. If you want to create artifacts use this command: mvn package throw in the occasional -D skipTests if you’re feeling adventurous. 😉 If you want to run tests (e.g. in a CI build) use this command: mvn verify If you’re not convinced please keep reading. about that maven install goal You see mvn clean install has been handed around for years as the goto command to “build the software”.
The Motivation While basic CRUD operations with JPA / Hibernate are easy, every application sooner or later needs to introduce DTO style result objects for specific use cases like projections. That is part of the deal, no OR mapper can do your homework for you. Luckily JPA gives us a way of specifying exactly what result objects we expect from a query. One way to do that is to use JPQL with its so called ‘constructor expression’ in the select part of the query.
Further on Hosting Stuff with GitHub Pages Let’s repeat my ToDo list of the last blog post here and see where we are: create blog locally add content setup github pages add github action to auto deploy update DNS zone enable comments enable share links add meaningful content Not too bad? But how did we arrive here? Hosting under custom domain In theory that’s quite easy. Once you have GitHub Pages set up your page will already be available as username.
Hosting Hugo on GitHub Pages As mentioned in my last blog post my goal was to move this entire homepage to be hosted on github pages. TL;DR: My ToDo create blog locally add content setup github pages add github action to auto deploy update DNS zone Hugo Build The straight forward thing to turn this collection of Markdown and other resources into a proper webpage is to simply have Hugo built it.
A NEW BLOG This is not my first blog ever. Over the years I’ve maintained and scrapped various personal webpages including weblogs. Now it’s time for another try. I want to focus my writing here on tech and IT in whatever one may consider to be the professional side - but who am I kidding, a blog is never strictly professional. Let’s see how this goes. 😉 The Tech Stack I have some prior experience with both maintaining and running Wordpress blogs.