Building Loom from Maven

Paul Bjorkstrand paul.bjorkstrand at gmail.com
Thu Aug 4 03:18:38 UTC 2022


I think you are using compilerArgs incorrectly:
https://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html

I believe it should be a single compilerArgs wrapper with arg elements
inside for each separate one.

On Wed, Aug 3, 2022 at 7:33 PM <eric at kolotyluk.net> wrote:

> Has anyone had any success using Structured Concurrency from JDK 19?
>
>
>
> I have the following pom.xml
>
>
>
> <plugin>
>     <artifactId>maven-compiler-plugin</artifactId>
>     <configuration>
>         <compilerArgs>--source 19</compilerArgs>
>         <compilerArgs>--enable-preview</compilerArgs>
>         <compilerArgs>--add-modules jdk.incubator.concurrent
> </compilerArgs>
>     </configuration>
> </plugin>
>
>
>
> But when I try to compile the project, I get
>
>
>
> [ERROR]
> /C:/Users/ERIC/Documents/git/loom-lab/laboratory/src/main/java/net/kolotyluk/loom/Structures.java:[3,21]
> package jdk.incubator.concurrent is not visible
>
> [ERROR]   (package jdk.incubator.concurrent is declared in module
> jdk.incubator.concurrent, which is not in the module graph)
>
>
>
> And I have been trying for over an hour to fix this but cannot find any
> solutions that work as they all indicate “--add-modules
> jdk.incubator.concurrent” should work.
>
>
>
> Cheers, Eric
>
-- 

-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20220803/dd5d4561/attachment.htm>


More information about the loom-dev mailing list