Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

NetBeans 6.9 RC 1 Even Improves Maven Support!

DZone's Guide to

NetBeans 6.9 RC 1 Even Improves Maven Support!

· Java Zone
Free Resource

Learn how our document data model can map directly to how you program your app, and native database features like secondary indexes, geospatial and text search give you full access to your data. Brought to you in partnership with MongoDB.

While about once a week I hear people asking for more info about how to use Maven with Eclipse, because they're puzzled about something, or being forced to periodically run some update task from the command line, I've been enjoying for about a year the simple, out-of-the-box, integration between NetBeans and Maven. You just open a project containing a "pom.xml" in its root and... you're done.

Of course, sometimes there are bugs. For instance, as I recently started working with Maven and Android, I needed to play, for the first time, with the dependency replacement facility of Maven; it allows you to replace an existing transitive dependency with something else:

<dependencies>
....

<dependency>
<groupId>it.tidalwave.thesefoolishthings</groupId>
<artifactId>it-tidalwave-android-org-openide-util</artifactId>
</dependency>
<dependency>
<groupId>it.tidalwave.bluebill</groupId>
<artifactId>it-tidalwave-bluebill-observation</artifactId>
<exclusions>
<exclusion>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>it.tidalwave.bluebill</groupId>
<artifactId>it-tidalwave-bluebill-observation-simple</artifactId>
<exclusions>
<exclusion>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>it.tidalwave.geo</groupId>
<artifactId>it-tidalwave-geo</artifactId>
<exclusions>
<exclusion>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util</artifactId>
</exclusion>
</exclusions>
</dependency>

...

</dependencies>

In this specific case, I'm replacing a NetBeans Platform module with a patched version that I've adapted to work under Android. This section of the pom seemed to make the NetBeans editor crazy, as it failed to find the replaced dependency and notified a bunch of false syntax errors. I was still in the process of isolating the problem and file an issue, but I've just found that NetBeans 6.9 RC 1 works perfectly fine with it. Good job, NetBeans guys!

 

Discover when your data grows or your application performance demands increase, MongoDB Atlas allows you to scale out your deployment with an automated sharding process that ensures zero application downtime. Brought to you in partnership with MongoDB.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}