Skip to content

Clean up Java 10 build

There are problem and warnings:

Maven and the Enforcer plugin These details will remain hidden until expanded.
[WARNING] The project com.gitlab.zloster:dropwizard-static:jar:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
1.
The Java warning here
Running com.gitlab.zloster.resources.ValidationResourceTest
10:02:40.435 [main] DEBUG org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
10:02:40.440 [main] DEBUG org.hibernate.validator.internal.engine.ConfigurationImpl - Setting custom ParameterNameProvider of type io.dropwizard.jersey.validation.JerseyParameterNameProvider
10:02:40.441 [main] DEBUG org.hibernate.validator.internal.xml.ValidationXmlParser - Trying to load META-INF/validation.xml for XML based Validator configuration.
10:02:40.441 [main] DEBUG org.hibernate.validator.internal.xml.ResourceLoaderHelper - Trying to load META-INF/validation.xml via TCCL
10:02:40.442 [main] DEBUG org.hibernate.validator.internal.xml.ResourceLoaderHelper - Trying to load META-INF/validation.xml via Hibernate Validator's class loader
10:02:40.442 [main] DEBUG org.hibernate.validator.internal.xml.ValidationXmlParser - No META-INF/validation.xml found. Using annotation based configuration only.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.fasterxml.jackson.module.afterburner.util.MyClassLoader (file:/builds/zloster/dropwizard-static/.m2/repository/com/fasterxml/jackson/module/jackson-module-afterburner/2.9.6/jackson-module-afterburner-2.9.6.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.fasterxml.jackson.module.afterburner.util.MyClassLoader
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
isValid() CustomValidator called
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.362 sec
1.
Javadoc: how to supply the option to the build?
45758 [WARNING] Javadoc Warnings
1. Turn off the Javadoc generation for the test classes
1. Enable code coverage tool
1. Add code coverage and test execution results to the 'project build artefact'
1. Switch to **Java 10 bytecode** compilation
Edited by R@dosl@v