• Feb
    • 21
    • 2013

JavaFX Maven Plugin 1.5

Posted by In JavaFX

I’ve released version 1.5 of the JavaFX Maven Plugin:

The two big fixes in this one are:

  • The ‘app name’ is now being set correctly. Previously this was causing the build to fail when generating native bundles for Mac.
  • ‘src/main/deploy’ is now included in the classpath for the build tool, meaning you can add anything in there that the JFX packaging tools need. Among other things, this allows you to provide your own custom icons for native bundles (see the JFX deployment tools for details on how to do this).

Thanks to everyone who made contributions for version 1.4 and 1.5 – most of these fixes have come from the community or as  a result of community feedback and input.

As I mentioned in my last post, I’m off travelling for a couple of months and won’t be doing anything on this plugin during that time. I am intending to integrate it with the work the JavaFX deployment guys are doing when I get back though. So keep raising issues and requests and we’ll see what we can do with them in a few months time.

I’ll be blogging my travels a little bit too, so if you’re after a distraction check out:

http://lifefirsthand.com

Enjoy

10 Comments

  • Luis Daniel
    March 20, 2013

    Hey my friend!!! Nice Job the plug-in is surprised, but I have a little problem with a library. I download from this page:

    https://code.google.com/p/javafx-filterable-table-columns/

    After that I install manually the library but at the moment to create the jar executable and my dependency is the following:

    org.google.jhsheets.filtered
    FilterableTableColumns
    0.9-SNAPSHOT

    When I execute with eclipse is working right but at the moment to create the JAR executable with the command mvn jfx:build-jar. The command doesn´t copy the file filterableTableColumns.css in the package google.jhsheets.filtered. I don´t know if this for the bad structure of the library or the plugin doesn´t copy correctly this kind of file (.css). In this moment I do manually, but It will correct that yours can check for future problems with another libraries

  • Marion
    March 26, 2013

    I am still having issues creating a executable jar. I have javafx in one package and have the build information in the parent pom and receive this issue:Failed to execute goal com.zenjava:javafx-maven-plugin:1.5:build-jar (default-cli) on project Parent: The parameters ‘vendor’ for goal com.zenjava:javafx-maven-plugin:1.5:build-jar are missing or invalid -> [Help 1]
    [ERROR]

  • zonski Author
    March 26, 2013

    Still travelling guys so response is brief…

    @Luis probably it is something in the code that rebuilds the jar that is not bringing across all files. Can you file a bug for it (not likely to be fixed any time soon though, sorry).

    @Marion some commands need a ‘vendor’. This is not well documented. Add this to your project’s POM and see if it fixes your problem:

    <organization>
    <name>Your Organisation</name>
    </organization>

    I’ve updated the main page wiki page with a brief mention of this.

  • Hallyson
    April 24, 2013

    I’m trying to build an application using the new feature reported to add custom icon, but unfortunately even reading the documentation of JFX deploying tools still can’t make it work. Could you put an example with this feature working?

  • Ian
    April 29, 2013

    Hi, Zonzki,

    Is there any way to prevent css files from being compiled into bss files when creating an executable jar? I found that some of my styles (gradient backgrounds in particular) failed to work in the executable jar, but when I opened the jar file and replaced the bss file with my original css, everything worked fine. I’d prefer to just leave those files as css in the first place if it’s possible.

  • zonski Author
    April 30, 2013

    Have you tried setting the css2bin parameter to false? This should get passed through to the jfx packaging tools.

  • Ian
    April 30, 2013

    Thanks. I’m sure it’s a dumb question, but could you tell me or point me to how I can do that through the plugin’s settings in my pom file?

    • zonski Author
      April 30, 2013

      It should be a case of just adding it to the configuration section of the POM:

      <plugin>
        <groupId>com.zenjava</groupId>
        <artifactId>javafx-maven-plugin</artifactId>
        <version>1.5</version>
        <configuration>
          <mainClass>[put your application main class here]</mainClass>
          <css2bin>false</css2bin>
        </configuration>
      </plugin>

      Let me know how you get on.

      • Gael
        May 8, 2013

        Ahh, thank you, I was looking for exactly this!
        Didn’t find it in the documentation and actually looked in the code…

        Looks like you’re having a great vacation! I did almost the identical route 3 years ago. Loved it!

Leave a Comment