I’m working on migrating our projects from java 8 to 11. As a first step, i’m compiling it with source and target compatibility 1.8, but trying to run the application over the openjdk-11. During development, we are using the jetty:run goal to start the application server. This goal is failing with…
Tag: maven
Maven Jetty spams warning “scanned from multiple locations”
I’ve found a similar question here , but it points to a plugin that I’m not using (maven-failsafe-plugin), and the configuration that solution is referring to is not applicable for me. The problem is that since I’ve updated my jetty plugin from to <version>9.4.11.v20180605</version&…
Can a maven plugin configuration be aggregated from parent to child project
I have 3 maven projects, the parent, the middle, and the child project: Then I have 2 annotation processor dependencies. The parent project defines maven-compiler-plugin as a managed plugin and configures annotation processor 1 on the annotationProcessorPath. The middle project does likewise and configures an…
Maven Checkstyle Plugin doesn’t fail during build even though `failsOnError` is set to `true`
My project enforces strict style so I have the maven-checkstyle-plugin running as part of my build. When I run the build, I see the plugin running and checking style but it should fail when there are checkstyle issues since I have the true flag set. Any reason it keeps going and the build succeeds? Answer Rea…
java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.createDirectoryWithMode0
I cannot solve this exception, I’ve read the hadoop docu and all related stackoverflow questions that I could find. My fileSystem.mkdirs(***) throws: I am including the following dependencies in my app (via maven pom.xml), all in version 2.6.0-cdh5.13.0: hadoop-common, hadoop-hdfs, hadoop-client, hadoop…
What is the name dialect class for mysql 10.1.21-MariaDB
in hibernate.cfg.xml i am using MariaDBDialect class when i run my code i got this errors in console Answer You should use org.hibernate.dialect.MySQLDialect, because MariaDB is 100% compatible with mysql.
Failed to create parent directories for tracking file .lastUpdated
I’ve added com.spotify:dockerfile-maven-plugin:1.4.3 to my POM and it s unable to complete because of the following u [INFO] — dockerfile-maven-plugin:1.4.3:build (default) @ server-api — Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/module/jackson-modules-base/2.9.…
Maven Failsafe fails with java.lang.NoClassDefFoundError
I’ve started a new project: PostfixSQLConfig. It’s a simple Spring Boot application that is essentialy supposed to provide CRUD access for 4 simple databse tables. I wrote the the repository for the first table and some basic integration tests for said repository. Since this particular table shoul…
Proper fix for Java 10 complaining about illegal reflection access by jaxb-impl 2.3.0?
We are looking at upgrading some legacy code to Java 10. As JAXB is not visible by default (EDIT: and the proper long term solution is not to circumvent the symptom using various JVM flags, but fix it properly) I have added this snippet to my pom.xml: Unfortunately there is still a warning printed at startup …
How to bypass corporate firewall/proxy for Maven
I have been trying to create a new Maven Project in Eclipse (I am using Windows 10), however when the project is created, it shows: When looking at the POM.xml, it shows.. I tried deleting the .m2 folder and Right-click project -> Maven -> Update Project.. It shows me.. In one solution from another SO p…