Or keep it 'run' and then run the project. Output:
cd /Users/geertjanwielenga/Desktop/mcli/markdownj-cli; JAVA_HOME=/Users/geertjanwielenga/Downloads/jdk-14.jdk/Contents/Home "/Applications/NetBeans/Apache NetBeans 11.3.app/Contents/Resources/NetBeans/netbeans/java/maven/bin/mvn" "-Dexec.args=--enable-preview -classpath %classpath org.markdownj.cli.Main -v:2 -s src/docs/manual -o target/manual -wr" -Dexec.executable=/Users/geertjanwielenga/Downloads/jdk-14.jdk/Contents/Home/bin/java -Dexec.workingdir= process-classes org.codehaus.mojo:exec-maven-plugin:1.6.0:exec Scanning for projects... ------------------------------------------------------------------------ Building MarkdownJ CLI 0.1.15-SNAPSHOT ------------------------------------------------------------------------ --- maven-resources-plugin:3.1.0:resources (default-resources) @ markdownj-cli --- Using 'UTF-8' encoding to copy filtered resources. Copying 1 resource Copying 4 resources Copying 0 resource skip non existing resourceDirectory /Users/geertjanwielenga/Desktop/mcli/markdownj-cli/target/manual --- maven-compiler-plugin:3.8.1:compile (default-compile) @ markdownj-cli --- Changes detected - recompiling the module! Compiling 26 source files to /Users/geertjanwielenga/Desktop/mcli/markdownj-cli/target/classes org/markdownj/cli/Cli.java:[170,21] text blocks are a preview feature and may be removed in a future release. org/markdownj/cli/Cli.java:[186,21] text blocks are a preview feature and may be removed in a future release. org/markdownj/cli/Cli.java:[199,21] text blocks are a preview feature and may be removed in a future release. org/markdownj/cli/Main.java:[128,13] possible fall-through into case --- exec-maven-plugin:1.6.0:exec (default-cli) @ markdownj-cli --- input: |null| output: |target/manual| source: |src/docs/manual| destination: |null| recursive: |true| wrapper: |true| initialise: |false| docRootDir: |null| jar: |false| jarFilename: || jarSrcDir: || verbose: |true| verbose level: |2| src/docs/manual/css/style.css Matched: 1 Creating directories ... Copying files ... iniPath: /Users/geertjanwielenga/Desktop/mcli/markdownj-cli/markdownj-cli.ini org.markdownj.cli.POMProperties: title: MarkdownJ CLI description: Command-line program that uses the Markdownj Core library. version: 0.1.15-SNAPSHOT artifactId: markdownj-cli groupId: org.markdownj PWD: /Users/geertjanwielenga/Desktop/mcli/markdownj-cli src/docs/manual/setup.md src/docs/manual/todo.md src/docs/manual/index.md src/docs/manual/configuration.md src/docs/manual/options.md src/docs/manual/meta blocks.md Matched: 6 inpList: outList: ------------------------------------------------------------------------ BUILD SUCCESS ------------------------------------------------------------------------ Total time: 2.650 s Finished at: 2020-03-07T21:20:16+01:00 Final Memory: 19M/70M ------------------------------------------------------------------------ On Sat, Mar 7, 2020 at 9:19 PM Geertjan Wielenga <geert...@apache.org> wrote: > In nbactions, change the actionName 'run' to 'build' and then do your > build, for me works fine. > > Gj > > On Sat, Mar 7, 2020 at 8:47 PM Bradley Willcott <optusprepa...@gmail.com> > wrote: > >> There are two other projects you require. I don't yet know how to get a >> compiled package up there for download. >> >> BEW Commons Library <https://github.com/bewillcott/bewcommons> >> >> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> >> >> I will look into uploading compiled versions. >> On 8/3/20 3:42 am, Geertjan Wielenga wrote: >> >> Trying to reproduce, but this is nowhere to be found: >> >> <dependency> >> <groupId>com.bew</groupId> >> <artifactId>BEWCommons</artifactId> >> <version>1.0.2-SNAPSHOT</version> >> </dependency> >> >> Gj >> >> On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott <optusprepa...@gmail.com> >> wrote: >> >>> Thank you for that. >>> >>> However, I have already plumbed those depths. If you would take a look >>> at the pom.xml >>> <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> >>> file. I don't want to put it here as it is rather long. >>> >>> I have set the '--enable-preview' option for 'maven-compiler-plugin' >>> and 'maven-surefire-plugin'. >>> On 8/3/20 3:12 am, Geertjan Wielenga wrote: >>> >>> 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. >>>> >>>