How to specify the JNLP output file when using javafx-maven-plugin for creating a javafx native installer?

前端 未结 1 1748
后悔当初
后悔当初 2020-12-21 18:19

I\'m using the maven plugin https://github.com/javafx-maven-plugin/javafx-maven-plugin to generate an installer for the javafx application. I could create a exe and run it

1条回答
  •  Happy的楠姐
    2020-12-21 19:18

    For having JNLP-files being generated, you have to adjust your configuration a bit:

    
        com.zenjava
        javafx-maven-plugin
        8.2.0
        
            com.zenjava.test.Main
            true
            YourAwesomeProject
            
                
                true
    
                
                
                
                YourAwesomeProject
            
        
    
    

    You need to call mvn jfx:native instead of mvn jfx:web because Oracle is moving the JNLP-generation to a new internal form, removing some com.sun.*-packages.

    To only have the JNLP being generated, you could reduce build-time by specifying jnlp inside the configuration.

    Disclaimer: I'm the maintainer of that maven-plugin.

    0 讨论(0)
提交回复
热议问题