Uploaded image for project: 'Maven JLink Plugin'
  1. Maven JLink Plugin
  2. MJLINK-82

Don't add POM dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0
    • None
    • None
    • any
    • Patch

    Description

      I'm trying to use maven-jlink-plugin with a project that has a Maven dependency with <type>pom</type> (which functions as an umbrella dependency bundle with several jars as its dependencies).

      Currently, maven-jlink-plugin fails in this case with the following error message:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jlink-plugin:3.2.0:jlink (default) on project junixsocket-demo-jpackagejlink: The given dependency /Users/ck/.m2/repository/com/kohlschutter/junixsocket/junixsocket-core/2.9.1-SNAPSHOT/junixsocket-core-2.9.1-SNAPSHOT.pom does not have a module-info.java file. So it can't be linked. -> [Help 1]

      See https://github.com/kohlschutter/junixsocket/commit/a73ce7f100a5f886f232a49e5b12fda98cf9f2d7 for an example.

      For what it's worth, the setup works just fine with jlink-maven-plugin (https://github.com/Akman/jlink-maven-plugin)

      Patch is attached.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ck@newsclub.de Christian Kohlschütter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: