Intellij , maven and the source or target java language level
I create a new Java "maven" project, set it to Java 12 (ctrl-alt-shift-S, MOdules, Language level), but when I build I get:"Warning:java: source value 1.5 is obsolete and will be removed in a future...
View ArticleAmazing brushes by Reto
a colleague of mine, Reto, is a passionate photographer and Photoshop artist , here some links to his...
View ArticleGenerics and collections
this one has no compilation errors:Set a;Set<Object> b;Set<? super Object> c;a = new HashSet();b = new HashSet<>();c = new HashSet<>();c = a;c = b;b = a;b = c;a = c;a = b;but if...
View ArticleEffective Java third edition
the source code:https://github.com/jbloch/effective-java-3e-source-code*clone (p. 86)copy constructor/ copy factorycompareTo()java.util.Comparator.comparingInt + thenComparingIntimmutable...
View ArticleGradle plugin for Jenkins
Maven Sucks, so we welcome Gradle - it can't possibly be worse than Maven!https://wiki.jenkins.io/display/JENKINS/Gradle+Pluginit seems that Gradle Plugin is installed as part of the "common plugins"....
View ArticleMockito revisited
https://github.com/mockito/mockitoI have used Mockito in 2010. Then I never did SERIOUS Java development any more (shame on me...)Yet I strongly believe that a solid implementation of Mocks is the...
View ArticleThread dumps analysis
this post provides useful insights on how to detect issues from a Thread Dump:http://allthingsmdw.blogspot.com/2012/02/analyzing-thread-dumps-in-middleware_08.htmlFor a quick thread dump consolidation...
View ArticleRuminations about Jenkins
The jobs are defined in here:$JENKINS_HOME/jobsFor every project (item), there is a folder.In every folder there is a config.xml file which hopefully should contain the entire project definition.My...
View ArticleCompletableFuture
https://www.callicoder.com/java-8-completablefuture-tutorial/package com.example.demo;import org.springframework.boot.CommandLineRunner;import org.springframework.boot.SpringApplication;import...
View Articlenever copy/paste from outlook or Word
Microsoft sucksThe command on the left was copied from an email (Outlook). And it was failing, returning EVERYTHING, not only config.xml.Then I have typed all over again (right pane) and it was...
View Articlemaven the reference guide the complete reference
https://books.sonatype.com/mvnref-book/pdf/mvnref-pdf.pdfhttps://www.baeldung.com/maven usual excellent Baeldung tutorialhttps://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html...
View ArticleWebLogic Security documentation
https://docs.oracle.com/middleware/12213/wls/INTRO/security.htm#INTRO232https://docs.oracle.com/cd/E19798-01/821-1841/girbe/index.html JACC "Java Authorization Contract for...
View ArticleIntellij and WebLogic
https://www.jetbrains.com/help/idea/configuring-and-managing-application-server-integration.html
View ArticleSImple Spring Boot and React working example
https://developer.okta.com/blog/2018/07/19/simple-crud-react-and-spring-bootMatt Raible is a boss and he is so straight to the point and precise.Remember that if you have in your pom.xml the dependency...
View ArticleJenkins enable project based security
Sometimes you share a Jenkins instance amongst several projects (IMHO this is bad practice, each project should have its own Jenkins to minimize interference)This is how to do it (copied from...
View ArticleCDI and javax.transaction.TransactionScoped
I was wondering how TransactionScoped works, and I stumbled upon this wonderful example:https://www.byteslounge.com/tutorials/java-ee-cdi-transactionscoped-exampleThis also is a great explanation on...
View ArticleJPG to PDF conversion in Java
https://gist.github.com/gholker/9a6b68ae51b3bef8931b946958dd81f2Create a Spring Initializer App (plain vanilla)add this dependency: com.itextpdf:itextpdf:5.5.13run this codepackage...
View ArticleIntelliJ IDEA Essentials
this is a really precious book, very focused and essential, to learn very practical tricks on how to use Intellij effectively
View ArticleGradle deploy to Nexus
mkdir /home/centos/gitclones/gradletestcd /home/centos/gitclones/gradletestgradle init --type java-applicationgradle buildvi build.gradleadd to plugins: id 'maven'maven Plugin for Gradle is documented...
View ArticleSwagger for Java EE reasteasy or jersey
Making Swagger work in Spring is very easy.You can use it also in Java EE (Wildfly, WebLogic, even Tomcat!!! )but all the documentation I have found is a bit outdated:I have tried APIEE...
View Article