Skip to content

Problem using with OpenJDK 11 #29

Description

@boncey

I switched to OpenJDK 11 and it now fails with an error.

  [INFO] --- dropwizard-debpkg-maven-plugin:0.10:dwpackage (default) @ money ---
  [INFO] Detected Dropwizard 2.0.16, attempting to validate configuration.
  class io.dropwizard.configuration.ConfigurationMetadata$1: javax/sql/DataSource
  java/sql/Date
  [WARNING] Failed to validate configuration
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  10.438 s
  [INFO] Finished at: 2020-12-22T16:01:53Z
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal com.jamierf.dropwizard:dropwizard-debpkg-maven-plugin:0.10:dwpackage (default) on project money: Execution default of goal com.jamierf.dropwizard:dropwizard-debpkg-maven-plugin:0.10:dwpackage failed: org.apache.tools.ant.ExitException: ExitException: status 1 -> [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.jamierf.dropwizard:dropwizard-debpkg-maven-plugin:0.10:dwpackage (default) on project money: Execution default of goal com.jamierf.dropwizard:dropwizard-debpkg-maven-plugin:0.10:dwpackage failed: org.apache.tools.ant.ExitException: ExitException: status 1

The relevant part from the stack trace seems to be:

  at com.jamierf.dropwizard.debpkg.validation.ApplicationValidator.validateConfiguration (ApplicationValidator.java:59)
  at com.jamierf.dropwizard.debpkg.validation.ApplicationValidator.validateConfiguration (ApplicationValidator.java:48)
  at com.jamierf.dropwizard.debpkg.DropwizardMojo.validateApplicationConfiguration (DropwizardMojo.java:192)
  at com.jamierf.dropwizard.debpkg.DropwizardMojo.execute (DropwizardMojo.java:109)

The important part from above seems to be:

  class io.dropwizard.configuration.ConfigurationMetadata$1: javax/sql/DataSource
  java/sql/Date

It looks like it's related to the jars that are no longer part of the OpenJDK.

If I run the DW check command against my app's jar it works fine.

Thanks,
Darren.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions