FHIR Chat · Java warning building validator · hapi

Stream: hapi

Topic: Java warning building validator


view this post on Zulip Vadim Peretokin (Jul 03 2019 at 17:18):

[WARNING]
[WARNING] Some problems were encountered while building the effective model for ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli:jar:3.8.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli:[unknown-version], C:\projects\hammer\org.hl7.fhir.core\org.hl7.fhir.validation.cli\pom.xml, line 83, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------< ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli >------------

What is it saying exactly?

view this post on Zulip James Agnew (Jul 03 2019 at 18:05):

Well, for one it tells me that you named your computer "hammer", which is awesome. :)

Mostly though it's a missing plugin version in the pom. I'll fix it.

view this post on Zulip Vadim Peretokin (Jul 03 2019 at 19:21):

Haha. Setting up CI for my tool... imaginatively called :hammer: .

:sunglasses:

view this post on Zulip Vadim Peretokin (Jul 03 2019 at 19:21):

thanks james!

view this post on Zulip Vadim Peretokin (Jul 03 2019 at 19:22):

btw, when I build on Ubuntu, I get this warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

view this post on Zulip Vadim Peretokin (Jul 03 2019 at 19:22):

Something to be mindful of, I guess?

view this post on Zulip James Agnew (Jul 03 2019 at 20:26):

That one you can ignore and it'll eventually go away.

If you're curious: In the Java world, there is a long tradition of people neeeeeeever upgrading their applications to use newer versions of the language. I don't know how bad this is in .net but damn is it bad in Java. One of the things that was introduced about 18 months ago in Java 9 was a new code module system. That warning means that a library hasn't yet been updated to be aware of that new system. I expect it'll be another 18 months before most libraries get there...

view this post on Zulip Vadim Peretokin (Jul 04 2019 at 06:36):

I'm from a Java background, so yep, makes sense... thanks :)

view this post on Zulip James Agnew (Jul 05 2019 at 02:38):

Ahhh right. I knew that!


Last updated: Apr 12 2022 at 19:14 UTC