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

Build vs Buy a Data Quality Solution: Which is Best for You? Gain insights on a hybrid approach. Download white paper now!

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!

 

Build vs Buy a Data Quality Solution: Which is Best for You? Maintaining high quality data is essential for operational efficiency, meaningful analytics and good long-term customer relationships. But, when dealing with multiple sources of data, data quality becomes complex, so you need to know when you should build a custom data quality tools effort over canned solutions. Download our whitepaper for more insights into a hybrid approach.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}