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

Kenneth Fogel commented on NETBEANS-4114:
-----------------------------------------

Hi,

The "clean javafx:run" worked with 11.3 but the app displayed in the Scene the 
version of Java was 12 even though I adjusted the source and target to 14 and 
verified that Java 14 was the default Java for NB. Is 12 stable enough? I have 
a class that starts on Monday and having to say things like "Don't worry about 
this and that inconsistency with NetBeans, it will still run" is not something 
I want to do.

The solution to this problem is to have the pom file declare a defaultGoal in 
the build section. How could I go about making this suggestion?
Example:
   <build>
        <!-- Goals may be set in the IDE or the pom. IDE or CLI goals override 
the defaultGoal -->
        <defaultGoal>clean javafx:run</defaultGoal>


Ken






> Simple JavaFX Maven Archetype (Gluon) produces code that cannot find mainClass
> ------------------------------------------------------------------------------
>
>                 Key: NETBEANS-4114
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4114
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javafx - Project
>    Affects Versions: 11.3
>         Environment: Windows 10, Java 14, NB 11.3
>            Reporter: Kenneth Fogel
>            Priority: Major
>
> Working with Java 14 the project created from the Simple JavaFX Maven 
> Archetype or FXML JavaFX Maven Archetype cannot run the code generated. Error 
> is:
> Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java 
> (default-cli) on project WillIWortk: The parameters 'mainClass' for goal 
> org.codehaus.mojo:exec-maven-plugin:1.6.0:java are missing or invalid -> 
> [Help 1]
> Its not missing and the path is correct. So is the reference to mainClass in 
> the pom.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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

Reply via email to