javafx-maven-archetypes icon indicating copy to clipboard operation
javafx-maven-archetypes copied to clipboard

add nbactions

Open dukescript opened this issue 5 years ago • 6 comments

Would be nice to add nbactions.xml, so clicking the run button actually starts the application in NetBeans. Something like this:

<?xml version="1.0" encoding="UTF-8"?>
<actions>
    <action>
        <actionName>run</actionName>
        <displayName>Run</displayName>
        <goals>
            <goal>clean</goal>
            <goal>javafx:run</goal>
        </goals>
    </action>
</actions>

dukescript avatar Nov 27 '19 15:11 dukescript

Yes, we want to do this on the NetBeans side, i.e. by first extending the API: https://issues.apache.org/jira/browse/NETBEANS-3104, since not everyone using the javafx-maven-archetypes makes use of NetBeans.

geertjanw avatar Dec 14 '19 15:12 geertjanw

The fork errael/javafx-maven-archetypes modifies pom.xml for debug execution and creates nbactions.xml for project with run and debug actions.

errael avatar Feb 23 '20 02:02 errael

I guess the request has now been addressed by integrating #10

JaroslavTulach avatar Apr 08 '21 11:04 JaroslavTulach

I guess the request has now been addressed by integrating #10

No.

#10 does not include nbactions.xml. Comment https://github.com/openjfx/javafx-maven-archetypes/issues/7#issuecomment-565726866 suggests that it will be handled on the NetBeans side.

In addition, the pom.xml created by #10 is out of date compared to the one created by the NetBeans specific archetypes which handle profiling: <execution><id>ide-profile ... and jlink

errael avatar Apr 08 '21 16:04 errael

I see:

  • Too bad #10 is out of date.
  • Alas, nbactions.xml aren't welcomed contribution by other projects. NetBeans probably will have to deal with it some other way.

CCing @sdedic.

JaroslavTulach avatar Apr 12 '21 09:04 JaroslavTulach

What would be the drawback of adding nbactions.xml here? As long as it is not breaking other IDE's or CLI deployment, I think it would be a good addition -- but I might miss something?

johanvos avatar Apr 22 '21 09:04 johanvos