[ https://issues.apache.org/jira/browse/MJLINK-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Kohlschütter updated MJLINK-82: ----------------------------------------- Flags: 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: {quote}[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] {quote} See https://github.com/kohlschutter/junixsocket/commit/a73ce7f100a5f886f232a49e5b12fda98cf9f2d7 for an example. Patch is attached. was: 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: {quote}[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] {quote} > Don't add POM dependencies > -------------------------- > > Key: MJLINK-82 > URL: https://issues.apache.org/jira/browse/MJLINK-82 > Project: Maven JLink Plugin > Issue Type: Bug > Affects Versions: 3.2.0 > Environment: any > Reporter: Christian Kohlschütter > Priority: Blocker > Attachments: > 0001-MJLINK-82-Skip-POM-dependencies-when-assemling-jlink.patch > > > 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: > {quote}[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] > {quote} > See > https://github.com/kohlschutter/junixsocket/commit/a73ce7f100a5f886f232a49e5b12fda98cf9f2d7 > for an example. > Patch is attached. -- This message was sent by Atlassian Jira (v8.20.10#820010)