<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi Eric,<div><br></div><div>Try this configuration:</div><div><br></div><div><table data-hpc="" class="highlight tab-size js-file-line-container js-code-nav-container js-tagsearch-file" data-tab-size="8" data-paste-markdown-skip="" data-tagsearch-lang="Maven POM" data-tagsearch-path="pom.xml" style="box-sizing: border-box; border-spacing: 0px; border-collapse: collapse; tab-size: 8; caret-color: rgb(36, 41, 47); color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px; -webkit-text-size-adjust: 100%;"><tbody style="box-sizing: border-box;"><tr style="box-sizing: border-box;"><td id="LC35" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;"><<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">plugin</span>></td></tr><tr style="box-sizing: border-box;"><td id="L36" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="36" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC36" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">artifactId</span>>maven-compiler-plugin</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">artifactId</span>></td></tr><tr style="box-sizing: border-box;"><td id="L37" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="37" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC37" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">version</span>>3.10.1</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">version</span>></td></tr><tr style="box-sizing: border-box;"><td id="L38" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="38" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC38" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">configuration</span>></td></tr><tr style="box-sizing: border-box;"><td id="L39" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="39" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC39" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                    <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">source</span>>19</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">source</span>></td></tr><tr style="box-sizing: border-box;"><td id="L40" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="40" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC40" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                    <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">target</span>>19</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">target</span>></td></tr><tr style="box-sizing: border-box;"><td id="L41" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="41" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC41" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                    <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">encoding</span>>UTF-8</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">encoding</span>></td></tr><tr style="box-sizing: border-box;"><td id="L42" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="42" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC42" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                    <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">enablePreview</span>>true</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">enablePreview</span>></td></tr><tr style="box-sizing: border-box;"><td id="L43" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="43" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC43" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                    <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">compilerArgs</span>></td></tr><tr style="box-sizing: border-box;"><td id="L44" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="44" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC44" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                        <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">compilerArg</span>>--add-modules</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">compilerArg</span>></td></tr><tr style="box-sizing: border-box;"><td id="L45" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="45" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC45" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                        <<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">compilerArg</span>>jdk.incubator.concurrent</<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">compilerArg</span>></td></tr><tr style="box-sizing: border-box;"><td id="L46" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="46" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC46" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                    </<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">compilerArgs</span>></td></tr><tr style="box-sizing: border-box;"><td id="L47" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="47" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC47" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">                </<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">configuration</span>></td></tr><tr style="box-sizing: border-box;"><td id="L48" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="48" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC48" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--color-fg-default); word-wrap: anywhere; white-space: pre;">            </<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">plugin</span>></td></tr></tbody></table><div><br></div><div>Source:</div><div><a href="https://github.com/jabrena/spinner-demo/blob/main/pom.xml">https://github.com/jabrena/spinner-demo/blob/main/pom.xml</a></div><br><div dir="ltr">Sent from my iPhone<div><br></div><div>Juan Antonio</div></div><div dir="ltr"><br><blockquote type="cite">On 8 Aug 2022, at 23:32, Rob Bygrave <robin.bygrave@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>maven-compiler-plugin version <i><b>3.8.1</b></i> is kind of old.   Maybe try version <i><b>3.10.1 </b></i>?<i><b><br></b></i></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 5 Aug 2022 at 04:02, Lutz Horn <<a href="mailto:code@lhorn.de">code@lhorn.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Am 04.08.22 um 02:33 schrieb <a href="mailto:eric@kolotyluk.net" target="_blank">eric@kolotyluk.net</a>:<br>
> Has anyone had any success using Structured Concurrency from JDK 19?<br>
<br>
Using 19.ea.33-open from SDKMAN, this makes `mvn compile` work:<br>
<br>
```<br>
<plugin><br>
   <groupId>org.apache.maven.plugins</groupId><br>
   <artifactId>maven-compiler-plugin</artifactId><br>
   <version>3.8.1</version><br>
   <configuration><br>
     <release>19</release><br>
     <compilerArgs><br>
       <arg>--enable-preview</arg><br>
       <arg>--add-modules</arg><br>
       <arg>jdk.incubator.concurrent</arg><br>
     </compilerArgs><br>
   </configuration><br>
</plugin><br>
```<br>
<br>
Note that `--add-modules jdk.incubator.concurrent` ist split on *two* <br>
`arg`s.<br>
<br>
<br>
Strangely, I fail to run `mvn test` using the following configuration of <br>
the `maven-surefire-plugin` which worked with the old Loom preview build <br>
19.ea.5.lm-open.<br>
<br>
```<br>
<configuration><br>
   <argLine>--enable-preview --add-modules <br>
jdk.incubator.concurrent</argLine><br>
</configuration><br>
```<br>
<br>
`mvn test-compile` works but `mvn test` fails like this:<br>
<br>
```<br>
java.lang.NoSuchMethodError: 'void <br>
jdk.incubator.concurrent.StructuredTaskScope$ShutdownOnFailure.join()'<br>
```<br>
<br>
Both `main` and `test` can be compiled but running the tests fails.<br>
<br>
Lutz<br>
</blockquote></div>
</div></blockquote></div></body></html>