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.

Reply via email to