Read:

https://netbeans.apache.org/download/nb113/index.html

Gj

On Sat, 7 Mar 2020 at 19:12, Bradley Willcott <optusprepa...@gmail.com>
wrote:

> I have just installed both JDK 14 and NB 11.3.
>
> I am trying to incorporate 14's preview features into an on-going project: 
> Markdownj
> CLI <https://github.com/bewillcott/markdownj-cli>.  However, part of my
> POM processing causes an error:
>
> "java.lang.UnsupportedClassVersionError: Preview features are not enabled for 
> org/markdownj/cli/Main (class file version 58.65535). Try running with 
> '--enable-preview'"
>
> The part that is the culprit is:
>
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>exec-maven-plugin</artifactId>
>                 <version>1.6.0</version>
>                 <executions>
>                     <execution>
>                         <id>Markdownj-Compile</id>
>                         <phase>prepare-package</phase>
>                         <goals>
>                             <goal>java</goal>
>                         </goals>
>                         <configuration>
>                             
> <commandlineArgs>--enable-preview</commandlineArgs>
>                             
> <workingDirectory>${project.build.directory}</workingDirectory>
>                             
> <includeProjectDependencies>false</includeProjectDependencies>
>                             
> <includePluginDependencies>true</includePluginDependencies>
>                             <mainClass>org.markdownj.cli.Main</mainClass>
>                             <arguments>
>                                 <argument>-s src/docs/manual</argument>
>                                 <argument>-d target/manual</argument>
>                                 <argument>-rwv:2</argument>
>                             </arguments>
>                         </configuration>
>                     </execution>
>                 </executions>
>                 <dependencies>
>                     <dependency>
>                         <groupId>org.markdownj</groupId>
>                         <artifactId>markdownj-cli</artifactId>
>                         <version>0.1.15-SNAPSHOT</version>
>                         <type>jar</type>
>                     </dependency>
>                 </dependencies>
>             </plugin>
>
> If I comment out this entire plugin section, I can complete the compile.
> Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 "
> java" app with the "--enable-preview" option.
>
> Any ideas?
>
> Thanks,
> Brad.
>

Reply via email to