There is a reason for that. This is being run in the:
<phase>prepare-package</phase>
At this point, there is no jar file to run. I only have access to the
compiled class files, hence, using the:
<goal>java</goal>
instead of the:
<goal>exec</goal>
This is processing the 'md' files for the src/docs/manual, storing the
'html' output in the target/manual directory.
All this works perfectly without the use of the /Preview Features/. I
just like to use bleeding-edge technology.
On 8/3/20 4:22 am, Geertjan Wielenga wrote:
See my responses above.
Seems to me that when you do your build, you're not using the settings
you provided in nbactions.
Gj
On Sat, Mar 7, 2020 at 9:21 PM Bradley Willcott
<optusprepa...@gmail.com <mailto:optusprepa...@gmail.com>> wrote:
Here are the links to the compiled jar files:
BEW Commons Library jar
<https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT>
files
Markdownj-core jar
<https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT>
files
On 8/3/20 3:47 am, Bradley Willcott 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 <mailto: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 <mailto: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.