You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2021/06/21 17:17:00 UTC

[jira] [Comment Edited] (JENA-2121) Can't use jena-core, jena-iri in modular runtime-image

    [ https://issues.apache.org/jira/browse/JENA-2121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366715#comment-17366715 ] 

Andy Seaborne edited comment on JENA-2121 at 6/21/21, 5:16 PM:
---------------------------------------------------------------

My module-info.java seems complete, but I think it's the module descriptor given by the command {{jdeps --multi-release 11 --generate-module-info out/ --module-path dependencies/ .m2/repository/org/apache/jena/jena-core/4.1.0/jena-core-4.1.0.jar}} which is not complete, it gives me this result: [^module-info.java] but there is no "uses" declaration and I don't know what to add...


was (Author: trobiun):
My module-info.java seems complete, but I think it's the module descriptor given by the command `jdeps --multi-release 11 --generate-module-info out/ --module-path dependencies/ .m2/repository/org/apache/jena/jena-core/4.1.0/jena-core-4.1.0.jar` which is not complete, it gives me this result:  [^module-info.java]  but there is no "uses" declaration and I don't know what to add...

> Can't use jena-core, jena-iri in modular runtime-image
> ------------------------------------------------------
>
>                 Key: JENA-2121
>                 URL: https://issues.apache.org/jira/browse/JENA-2121
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Core, IRI
>         Environment: Java 11
>            Reporter: Robin Tissot
>            Priority: Critical
>         Attachments: module-info.java
>
>
> Hello,
> I'm trying to create a runtime-image to distribute an Java 11 application which is using jena-core and jena-iri using jlink but jlink command give me error "automatic module cannot be used with jlink: org.apache.jena.core".
> So I use moditect-maven-plugin to fix this error, this plugin consists of adding module descriptors to existing JAR files, and I created module descriptors of jena-core and jena-iri using jdeps command-line tool. This fix my error with jlink but now I have an error when launching the runtime-image: "java.util.ServiceConfigurationError: org.apache.jena.sys.JenaSubsystemLifecycle: module org.apache.jena.core does not declare 'uses' ".
> My guess is the solution should be adding a complete module-info.java file in jena modules.
> Here is a minimal project showing the problem : [https://github.com/Trobiun/JenaSample]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)