jira-importer opened a new issue, #257:
URL: https://github.com/apache/maven-jlink-plugin/issues/257

   **[Christian 
Kohlschütter](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=c...@newsclub.de)**
 opened 
**[MJLINK-82](https://issues.apache.org/jira/browse/MJLINK-82?redirect=false)** 
and commented
   
   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.
   
   
   ---
   
   **Affects:** 3.2.0
   
   **Attachments:**
   - 
[0001-MJLINK-82-Skip-POM-dependencies-when-assemling-jlink.patch](https://issues.apache.org/jira/secure/attachment/13067299/0001-MJLINK-82-Skip-POM-dependencies-when-assemling-jlink.patch)
 (_1.57 kB_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to