You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eric Barboni (JIRA)" <ji...@apache.org> on 2019/08/09 09:46:00 UTC

[jira] [Commented] (NETBEANS-2863) Cannot create Installer for Netbeans RCP Application using JDK 11

    [ https://issues.apache.org/jira/browse/NETBEANS-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16903763#comment-16903763 ] 

Eric Barboni commented on NETBEANS-2863:
----------------------------------------

Hi

Do you use the new org.apache.netbeans.utilities:nbm-maven-plugin:4.2 ?

 

This is a complex effort. I'm not sure if installer can be done as there was not generated for NetBeans 9.0 an 10 and 11.0.

 

If you fix the harness in netbeans source, you will then have to build a full netbeans + generate a mavenized netbeans. (long process)

once you have maven artefacts,

1) adapt locally a clone of nbm-maven-harness [https://github.com/apache/netbeans-mavenutils-nbm-maven-harness] to use your harness artefacts from you own mavenized netbeans

2) adapt locally a clone of nbm-maven-plugin , [https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/blob/master/pom.xml] to use the harness you apdated

 

Regards

Eric

> Cannot create Installer for Netbeans RCP Application using JDK 11
> -----------------------------------------------------------------
>
>                 Key: NETBEANS-2863
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2863
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.0, 11.1
>         Environment: Windows 10 Pro 1903
> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
>            Reporter: Frederic Simons
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Setup:
> Netbeans version 11 - 11.1 VC-2
> JDK 11 (latest from AdoptOpenJDK)
>  
> 1. Create a Netbeans Platform based Application with Maven.
> 2. Choose Netbeans Platform RELEASE110
> After Project creation set Source/Binary format to Java 11 (either via Project Properties or directly in pom.xml)
> 3. Build all Modules: All Modules and The Project Application compile cleanly with JDK11
> 4. Execute the maven goal nbm build installers maven failes with the following exception:
> error: Source option 5 is no longer supported. Use 6 or later.
>  error: Target option 1.5 is no longer supported. Use 1.6 or later.
> followed by a BUILD FAILURE and a stack trace from maven.
>  
> I don't know if this is a bug in a background ant task or from the maven-nbm-plugin or the ide-itself.
> A current work around ist to build all modules wth java 11 (and therefore JDK11) and only use JDK 8 with source/target support of Java-8 for the actual Application module. With this setup All modules build and can use java 11 features and the Application installers can still be generated. It would be nice if this would also be possible using JDK-11 so one does not need to have several jdk installed.
>  
> Kind regards,
> Frederic Simons
>  
>   



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists