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

Java-based (JDBC) data connectivity to SaaS, NoSQL, and Big Data. Download 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!

 

Connect any Java based application to your SaaS data.  Over 100+ Java-based data source connectors.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}