NetBeans: Maven + JavaFX project?

519 views
Skip to first unread message

Lars Bollen

unread,
Apr 15, 2009, 9:00:23 AM4/15/09
to The Java Posse
Hi all,

does anybody have experience with using NetBeans to work on a
mavenized JavaFX project? It seems to me that I can have either a
Maven project or a JavaFX project, but not both at a time.

For once, I would be glad if someone would prove me wrong. :-)

Regards,
Lars

Ryan Waterer

unread,
Apr 15, 2009, 10:52:09 AM4/15/09
to java...@googlegroups.com
I've been working with Netbeans and JavaFX recently.   It's still very early, so I wouldn't be surprised
if the two don't play very nice together.    To give you an example of how early --
code completion and code formatting barely work, and only if you're lucky.

Joe Data

unread,
Apr 16, 2009, 7:48:40 AM4/16/09
to The Java Posse
On Apr 15, 3:00 pm, Lars Bollen <larsbol...@gmail.com> wrote:
> Hi all,
>
> does anybody have experience with using NetBeans to work on a
> mavenized JavaFX project? It seems to me that I can have either a
> Maven project or a JavaFX project, but not both at a time.

You're right. Here's what Petr Hejl, the maintainer of the Groovy &
Grails plugin for Netbeans said on this topic on the Groovy & Grails
Netbeans mailing list about combining Maven with Grails: "Well the
trouble is that both maven and grails define project. So there are two
(among others) project types in NetBeans. In NetBeans there is
historically no way how to have one project observed as two project
types in the IDE. I can evaluate it together with Milos Kleint, but
I'm afraid there is nothing we can do in terms of 6.7 :(" 6.7 is the
upcoming Netbeans release in June 2009 (currently timed to release
just a few days before Eclipse 3.5 - what a coincidence!), so it seems
this restriction will be there for at least one more version.

Steven Herod

unread,
Apr 16, 2009, 7:37:22 PM4/16/09
to The Java Posse
For me, 'right click, fix imports' x2 is now muscle memory :o)

I'd be interested in how the mavenized JavaFX build works. I'm
building and running from inside Netbeans only.


On Apr 16, 12:52 am, Ryan Waterer <aguitadel...@gmail.com> wrote:
> I've been working with Netbeans and JavaFX recently.   It's still very
> early, so I wouldn't be surprised
> if the two don't play very nice together.    To give you an example of how
> early --
> code completion and code formatting barely work, and only if you're lucky.
>

Lars Bollen

unread,
Apr 17, 2009, 4:28:45 AM4/17/09
to The Java Posse
In the meantime, I found an elegant workaround: My project is still a
native JavaFX project, but I changed the build.xml according to this
instructions: http://wiki.netbeans.org/FaqMavenAntTasks. Whenever I´m
doing a build, now, the pom.xml is checked for updates and all
dependencies are added to the classpath in project.properties.
Reply all
Reply to author
Forward
0 new messages