There is the possibility of checking dependencies in maven using the jdeps plugin, I thought it would be interesting to do this with JRubyArt-2.0 build. Here is the relevant snippet of pom.rb. Note this does not interfere with build.

overrides do
  plugin :resources, '2.7'
  plugin :dependency, '2.8'
  plugin( :compiler, '3.8.0',
          'release' =>  '11' )
  plugin( :javadoc, '2.10.4',
          'detectOfflineLinks' =>  'false',
          'links' => [ '${processing.api}',
                       '${jruby.api}' ] )
  plugin( :jar, '3.1.0',
          'archive' => {
            'manifestEntries' => {
              'Class-Path' =>  'gluegen-rt.jar jog-all.jar'
            }
          } )
  plugin :jdeps, '3.1.2' do
    execute_goals 'jdkinternals', 'test-jdkinternals'
  end

end

To run jdeps from maven:-

mvn jdeps:jdkinternals

Here is the raw output:-

classes -> /home/tux/.m2/repository/org/jogamp/gluegen/gluegen-rt/2.3.2/gluegen-rt-2.3.2.jar
classes -> java.base
classes -> java.desktop
classes -> java.management
classes -> java.sql
classes -> java.xml
classes -> /home/tux/.m2/repository/org/jogamp/jogl/jogl-all/2.3.2/jogl-all-2.3.2.jar
classes -> /home/tux/.m2/repository/org/jruby/jruby-core/9.2.8.0/jruby-core-9.2.8.0.jar
classes -> /home/tux/.m2/repository/org/processing/video/3.0.2/video-3.0.2.jar
   japplemenubar                                      -> java.io                                            java.base
   japplemenubar                                      -> java.lang                                          java.base
   japplemenubar                                      -> java.lang.invoke                                   java.base
   japplemenubar                                      -> processing.core                                    classes
   monkstone                                          -> java.awt                                           java.desktop
   monkstone                                          -> java.io                                            java.base
   monkstone                                          -> java.lang                                          java.base
   monkstone                                          -> java.util                                          java.base
   monkstone                                          -> monkstone.arcball                                  classes
   monkstone                                          -> monkstone.fastmath                                 classes
   monkstone                                          -> monkstone.vecmath.vec2                             classes
   monkstone                                          -> monkstone.vecmath.vec3                             classes
   monkstone                                          -> org.jruby                                          jruby-core-9.2.8.0.jar
   monkstone                                          -> org.jruby.anno                                     jruby-core-9.2.8.0.jar
   monkstone                                          -> org.jruby.runtime                                  jruby-core-9.2.8.0.jar
   monkstone                                          -> org.jruby.runtime.builtin                          jruby-core-9.2.8.0.jar
   monkstone                                          -> org.jruby.runtime.load                             jruby-core-9.2.8.0.jar
   monkstone.arcball                                  -> java.lang                                          java.base
   monkstone.arcball                                  -> java.lang.invoke                                   java.base
   monkstone.arcball                                  -> java.util                                          java.base
   monkstone.arcball                                  -> org.jruby                                          jruby-core-9.2.8.0.jar
   monkstone.arcball                                  -> org.jruby.anno                                     jruby-core-9.2.8.0.jar
   monkstone.arcball                                  -> org.jruby.runtime                                  jruby-core-9.2.8.0.jar
   monkstone.arcball                                  -> org.jruby.runtime.builtin                          jruby-core-9.2.8.0.jar
   monkstone.arcball                                  -> processing.core                                    classes
   monkstone.arcball                                  -> processing.event                                   classes
   monkstone.core                                     -> java.lang                                          java.base
   monkstone.core                                     -> processing.core                                    classes
   monkstone.core                                     -> processing.event                                   classes
   monkstone.fastmath                                 -> java.lang                                          java.base
   monkstone.fastmath                                 -> org.jruby                                          jruby-core-9.2.8.0.jar
   monkstone.fastmath                                 -> org.jruby.anno                                     jruby-core-9.2.8.0.jar
   monkstone.fastmath                                 -> org.jruby.runtime                                  jruby-core-9.2.8.0.jar
   monkstone.fastmath                                 -> org.jruby.runtime.builtin                          jruby-core-9.2.8.0.jar
   monkstone.filechooser                              -> java.io                                            java.base
   monkstone.filechooser                              -> java.lang                                          java.base
   monkstone.slider                                   -> java.lang                                          java.base
   monkstone.slider                                   -> java.lang.invoke                                   java.base
   monkstone.slider                                   -> java.util                                          java.base
   monkstone.slider                                   -> processing.core                                    classes
   monkstone.slider                                   -> processing.event                                   classes
   monkstone.sliders                                  -> java.io                                            java.base
   monkstone.sliders                                  -> java.lang                                          java.base
   monkstone.sliders                                  -> processing.core                                    classes
   monkstone.vecmath                                  -> java.lang                                          java.base
   monkstone.vecmath                                  -> processing.core                                    classes
   monkstone.vecmath.vec2                             -> java.lang                                          java.base
   monkstone.vecmath.vec2                             -> java.lang.invoke                                   java.base
   monkstone.vecmath.vec2                             -> monkstone.vecmath                                  classes
   monkstone.vecmath.vec2                             -> org.jruby                                          jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec2                             -> org.jruby.anno                                     jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec2                             -> org.jruby.exceptions                               jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec2                             -> org.jruby.runtime                                  jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec2                             -> org.jruby.runtime.builtin                          jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec3                             -> java.lang                                          java.base
   monkstone.vecmath.vec3                             -> java.lang.invoke                                   java.base
   monkstone.vecmath.vec3                             -> monkstone.vecmath                                  classes
   monkstone.vecmath.vec3                             -> monkstone.vecmath.vec2                             classes
   monkstone.vecmath.vec3                             -> org.jruby                                          jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec3                             -> org.jruby.anno                                     jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec3                             -> org.jruby.exceptions                               jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec3                             -> org.jruby.runtime                                  jruby-core-9.2.8.0.jar
   monkstone.vecmath.vec3                             -> org.jruby.runtime.builtin                          jruby-core-9.2.8.0.jar
   monkstone.videoevent                               -> java.lang                                          java.base
   monkstone.videoevent                               -> processing.video                                   video-3.0.2.jar
   processing.awt                                     -> java.awt                                           java.desktop
   processing.awt                                     -> java.awt.event                                     java.desktop
   processing.awt                                     -> java.awt.font                                      java.desktop
   processing.awt                                     -> java.awt.geom                                      java.desktop
   processing.awt                                     -> java.awt.image                                     java.desktop
   processing.awt                                     -> java.io                                            java.base
   processing.awt                                     -> java.lang                                          java.base
   processing.awt                                     -> java.lang.invoke                                   java.base
   processing.awt                                     -> java.lang.management                               java.management
   processing.awt                                     -> java.lang.reflect                                  java.base
   processing.awt                                     -> java.net                                           java.base
   processing.awt                                     -> java.util                                          java.base
   processing.awt                                     -> java.util.function                                 java.base
   processing.awt                                     -> java.util.stream                                   java.base
   processing.awt                                     -> javax.swing                                        java.desktop
   processing.awt                                     -> processing.core                                    classes
   processing.awt                                     -> processing.data                                    classes
   processing.awt                                     -> processing.event                                   classes
   processing.core                                    -> japplemenubar                                      classes
   processing.core                                    -> java.awt                                           java.desktop
   processing.core                                    -> java.awt.desktop                                   java.desktop
   processing.core                                    -> java.awt.event                                     java.desktop
   processing.core                                    -> java.awt.font                                      java.desktop
   processing.core                                    -> java.awt.geom                                      java.desktop
   processing.core                                    -> java.awt.image                                     java.desktop
   processing.core                                    -> java.io                                            java.base
   processing.core                                    -> java.lang                                          java.base
   processing.core                                    -> java.lang.invoke                                   java.base
   processing.core                                    -> java.lang.reflect                                  java.base
   processing.core                                    -> java.net                                           java.base
   processing.core                                    -> java.nio.charset                                   java.base
   processing.core                                    -> java.security                                      java.base
   processing.core                                    -> java.text                                          java.base
   processing.core                                    -> java.util                                          java.base
   processing.core                                    -> java.util.concurrent                               java.base
   processing.core                                    -> java.util.regex                                    java.base
   processing.core                                    -> java.util.zip                                      java.base
   processing.core                                    -> javax.swing                                        java.desktop
   processing.core                                    -> javax.swing.filechooser                            java.desktop
   processing.core                                    -> javax.xml.parsers                                  java.xml
   processing.core                                    -> org.xml.sax                                        java.xml
   processing.core                                    -> processing.core.util.image                         classes
   processing.core                                    -> processing.core.util.io                            classes
   processing.core                                    -> processing.data                                    classes
   processing.core                                    -> processing.event                                   classes
   processing.core                                    -> processing.opengl                                  classes
   processing.core.util.image                         -> java.io                                            java.base
   processing.core.util.image                         -> java.lang                                          java.base
   processing.core.util.image                         -> java.lang.invoke                                   java.base
   processing.core.util.image                         -> java.util                                          java.base
   processing.core.util.image                         -> java.util.concurrent.atomic                        java.base
   processing.core.util.image                         -> javax.imageio                                      java.desktop
   processing.core.util.image                         -> processing.core                                    classes
   processing.core.util.image                         -> processing.core.util.image.load                    classes
   processing.core.util.image                         -> processing.core.util.image.save                    classes
   processing.core.util.image                         -> processing.core.util.io                            classes
   processing.core.util.image.constants               -> java.lang                                          java.base
   processing.core.util.image.load                    -> java.awt                                           java.desktop
   processing.core.util.image.load                    -> java.awt.color                                     java.desktop
   processing.core.util.image.load                    -> java.awt.image                                     java.desktop
   processing.core.util.image.load                    -> java.io                                            java.base
   processing.core.util.image.load                    -> java.lang                                          java.base
   processing.core.util.image.load                    -> java.lang.invoke                                   java.base
   processing.core.util.image.load                    -> java.util                                          java.base
   processing.core.util.image.load                    -> java.util.concurrent.atomic                        java.base
   processing.core.util.image.load                    -> javax.imageio                                      java.desktop
   processing.core.util.image.load                    -> javax.swing                                        java.desktop
   processing.core.util.image.load                    -> processing.core                                    classes
   processing.core.util.image.load                    -> processing.core.util.image.constants               classes
   processing.core.util.image.load                    -> processing.core.util.io                            classes
   processing.core.util.image.save                    -> java.awt.image                                     java.desktop
   processing.core.util.image.save                    -> java.io                                            java.base
   processing.core.util.image.save                    -> java.lang                                          java.base
   processing.core.util.image.save                    -> java.lang.invoke                                   java.base
   processing.core.util.image.save                    -> java.util                                          java.base
   processing.core.util.image.save                    -> javax.imageio                                      java.desktop
   processing.core.util.image.save                    -> javax.imageio.metadata                             java.desktop
   processing.core.util.image.save                    -> javax.imageio.stream                               java.desktop
   processing.core.util.image.save                    -> org.w3c.dom                                        java.xml
   processing.core.util.image.save                    -> processing.core                                    classes
   processing.core.util.image.save                    -> processing.core.util.image.constants               classes
   processing.core.util.image.save                    -> processing.core.util.io                            classes
   processing.core.util.io                            -> java.io                                            java.base
   processing.core.util.io                            -> java.lang                                          java.base
   processing.core.util.io                            -> java.lang.invoke                                   java.base
   processing.core.util.io                            -> java.net                                           java.base
   processing.core.util.io                            -> java.util.zip                                      java.base
   processing.core.util.io                            -> processing.core                                    classes
   processing.data                                    -> java.io                                            java.base
   processing.data                                    -> java.lang                                          java.base
   processing.data                                    -> java.lang.invoke                                   java.base
   processing.data                                    -> java.lang.reflect                                  java.base
   processing.data                                    -> java.nio.charset                                   java.base
   processing.data                                    -> java.sql                                           java.sql
   processing.data                                    -> java.util                                          java.base
   processing.data                                    -> java.util.concurrent                               java.base
   processing.data                                    -> java.util.zip                                      java.base
   processing.data                                    -> javax.xml.namespace                                java.xml
   processing.data                                    -> javax.xml.parsers                                  java.xml
   processing.data                                    -> javax.xml.transform                                java.xml
   processing.data                                    -> javax.xml.transform.dom                            java.xml
   processing.data                                    -> javax.xml.transform.stream                         java.xml
   processing.data                                    -> javax.xml.xpath                                    java.xml
   processing.data                                    -> org.w3c.dom                                        java.xml
   processing.data                                    -> org.xml.sax                                        java.xml
   processing.data                                    -> processing.core                                    classes
   processing.dxf                                     -> java.io                                            java.base
   processing.dxf                                     -> java.lang                                          java.base
   processing.dxf                                     -> processing.core                                    classes
   processing.event                                   -> java.lang                                          java.base
   processing.javafx                                  -> java.lang                                          java.base
   processing.javafx                                  -> processing.core                                    classes
   processing.net                                     -> java.io                                            java.base
   processing.net                                     -> java.lang                                          java.base
   processing.net                                     -> java.lang.invoke                                   java.base
   processing.net                                     -> java.lang.reflect                                  java.base
   processing.net                                     -> java.net                                           java.base
   processing.net                                     -> processing.core                                    classes
   processing.opengl                                  -> com.jogamp.common.util                             gluegen-rt-2.3.2.jar
   processing.opengl                                  -> com.jogamp.nativewindow                            jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.nativewindow.util                       jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.newt                                    jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.newt.awt                                jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.newt.event                              jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.newt.opengl                             jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.newt.util                               jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.opengl                                  jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.opengl.fixedfunc                        jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.opengl.glu                              jogl-all-2.3.2.jar
   processing.opengl                                  -> com.jogamp.opengl.util                             jogl-all-2.3.2.jar
   processing.opengl                                  -> java.awt                                           java.desktop
   processing.opengl                                  -> java.awt.event                                     java.desktop
   processing.opengl                                  -> java.awt.font                                      java.desktop
   processing.opengl                                  -> java.awt.geom                                      java.desktop
   processing.opengl                                  -> java.awt.image                                     java.desktop
   processing.opengl                                  -> java.io                                            java.base
   processing.opengl                                  -> java.lang                                          java.base
   processing.opengl                                  -> java.lang.invoke                                   java.base
   processing.opengl                                  -> java.lang.ref                                      java.base
   processing.opengl                                  -> java.lang.reflect                                  java.base
   processing.opengl                                  -> java.net                                           java.base
   processing.opengl                                  -> java.nio                                           java.base
   processing.opengl                                  -> java.util                                          java.base
   processing.opengl                                  -> java.util.function                                 java.base
   processing.opengl                                  -> java.util.regex                                    java.base
   processing.opengl                                  -> java.util.stream                                   java.base
   processing.opengl                                  -> javax.swing                                        java.desktop
   processing.opengl                                  -> processing.core                                    classes
   processing.opengl                                  -> processing.data                                    classes
   processing.opengl                                  -> processing.event                                   classes