#Maven Modules won't compile (Java 9 Modules)

1 messages · Page 1 of 1 (latest)

manic holly
#

Hello!
Just a couple of days ago I found a cool project called StreamPi which works as a Elgato Stream Deck alternative.

It has been build in Java 11+ and has a plugin functionality based on Java 9 Modules.
To create a plugin you need to create a module-info.java and later when you done build it with maven and put the Jar file and all the dependencies in the plugin folder.

But here is my problem: I cannot compile the jar. Maven will always give me this error: https://pastebin.com/g5Ph37eA
My project is going to be open source so here is the GitHub link to the project: https://github.com/DerEingerostete/StreamPi-Hue
Some reference about the plugin system (sadly there is no Documentation): https://github.com/stream-pi/essential-actions

Any help is appreciated ySmile
(I know it would be better to post this question in the official StreamPi Discord Server but sadly they aren't really active so I thought I could find some help here as well)

rustic lakeBOT
#

This post has been reserved for your question.

Hey @manic holly! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

hasty cradle
#

First thing first: do it without lombok.
After you've managed to do it without lombok and without any issue, then it may be time to try and "simplify" things by adding lombok. Not before

muted sinew
#

add lombok as an annotation processor

#

to the maven-compiler-plugin

manic holly
muted sinew
#
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                            <version>${lombok.version}</version>
                        </path>
                    </annotationProcessorPaths>
                </configuration>
            </plugin>
manic holly
manic holly
# muted sinew ```xml <plugin> <groupId>org.apache.maven.plugins</groupId> ...