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

Ernie Rael commented on NETBEANS-4120:
--------------------------------------

I'm sure maven is wonderful...

On the maven command line, you can list both goals and phases. And the docs 
even say that clean is a lifecycle. I'm guessing that through binding goals to 
phases..., who knows...

Glad you have something that works.

> nbactions.xml use of clean and javafx:run goals blocks unit tests
> -----------------------------------------------------------------
>
>                 Key: NETBEANS-4120
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4120
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.0
>         Environment: Win 10, Java 14, NB 12.0 Beta 2, OpenFX 15-ea+2
>            Reporter: Kenneth Fogel
>            Priority: Major
>             Fix For: 12.0
>
>
> In nbaction.xml the entry:
> <action>
>      <actionName>run</actionName>
>      <packagings>
>          <packaging>jar</packaging>
>      </packagings>
>      <goals>
>          <goal>clean</goal>
>          <goal>javafx:run</goal>
>      </goals>
>  </action>
> should be
> <action>
>      <actionName>run</actionName>
>      <packagings>
>          <packaging>jar</packaging>
>      </packagings>
>      <goals>
>          <goal>clean</goal>
>         <goal>test</goal> <!-- MISSING -->
>         <goal>javafx:run</goal>
>      </goals>
>  </action>
> All goals between clean and javafx:run should be executed. For unknown 
> reasons javafx:run excludes testing. This was discovered when the goals in a 
> Maven pom of clean javafx:run would not run tests. Add test to the pom or the 
> nbactions.xml resolved this. If the project does not have any test classes 
> then there is no issue and the FX app starts up normally.
> There is a side effect. A project that does not yet have a main method ends 
> the build without running the tests. There needs to be a dummy class with a 
> main in it.



--
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