FEST’s JavaFX Compiler Maven Plug-in 1.0b1

by Алекс Руис on May 19, 2010

I’m proud to announce the release of FEST’s JavaFX Compiler Maven plug-in 1.0b1!

This plug-in compiles JavaFX source and test files.

Features

  • Compiles JavaFX source and test files
  • Does not require JavaFX distribution to be in a Maven repository (according to its license, only Oracle can distribute JavaFX)
  • Does not require to list all JavaFX libraries as dependencies in your pom.xml

Example

<build>
  <plugins>
    <plugin>
      <groupId>org.easytesting</groupId>
      <artifactId>javafxc-maven-plugin</artifactId>
      <version>1.0b1</version>
      <executions>
        <execution>
          <id>compile</id>
          <phase>compile</phase>
          <goals>
            <goal>compile</goal>
          </goals>
        </execution>
        <execution>
          <id>test-compile</id>
          <phase>test-compile</phase>
          <goals>
            <goal>testCompile</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

The listing above will:

  1. call the “compile” goal in the standard Maven “compile” phase.
  2. call the “testCompile” goal in the standard Maven “test-compile” phase.

As a result, if we execute “mvn test” both JavaFX sources and test sources will compiled automatically.

Release Notes

New Feature

  • [FEST-314] – Create test-compile goal for JavaFX Maven plugin.

Improvements

  • Change JDK version to 1.6.
  • Renamed artifactId to javafxc-maven-plugin.

The FEST JavaFX Maven plugin can be obtained from our Maven Repository.

Links

Feedback is always appreciated :)

{ 3 comments… read them below or add one }

thomas July 4, 2010 at 11:48 am

Hi,

i use your javafx maven plugin. Unfortunately I can’t get NetBeans to recognize sources under src/main/javafx. Do you know about any workaround?

Thanks

Thomas

Reply

Alex Ruiz July 4, 2010 at 8:31 pm

Hi Thomas,

That is how the Netbeans plugin currently works. We can have either a JavaFX project or a Maven project but not a single project including both technologies.

Unfortunately, I haven’t found a workaround. I might be able to find some more info. I’ll keep you posted if I find anything useful :)

Cheers,

Reply

Antoine Mischler August 5, 2010 at 1:39 am

Hi,

The get both the javafx and the maven nature in a Netbeans project you can use the following workaround:
* create a JavaFX project
* update your build.xml to add the maven dependencies to the project libraries with the maven ant task (as explained here: http://www.intermedia.uio.no/pages/viewpage.action?pageId=43516820)
Note: this will not update the source path configuration of the netbeans project, you will still have to do it manually.

Cheers,

Reply

Leave a Comment

{ 4 trackbacks }

Previous post:

Next post: