Please note: The sources for NetBeans Maven support have been moved to netbeans.org. Any tutorials referenced from this site might be outdated and not reflecting the current UI and feature set in NetBeans 6.5 and beyond. See the ultimate source of information - Best Practices for Apache Maven in NetBeans 6.x article
There are a few magic properties that can be used to tweak NetBeans IDE. Some are set by the UI in the IDE as well.
Generally you want to set the property directly in your pom.xml file. See below for an example. If the property is settable by UI in the IDE, it will by default place the property at the same place. In case of multimodule projects you can also consider putting the properties into the parent POM file to configure multiple/all projects at once.
<project>
[.......]
<properties>
<netbeans.hint.useExternalMaven>true</netbeans.hint.useExternalMaven>
</properties>
</project>
Alternatively if you don't want to put any IDE specific settings into a shareable pom.xml file you can include the settings into profiles.xml as well. See snippet below. The netbeans-private profile is always activated when loading the project within NetBeans. Whenever the property location is overriden to be in profiles.xml, the UI shall respect that and update th value there, rather than editing your pom.xml.
<profilesXml>
<profiles>
<profile>
<id>netbeans-private</id>
<activation>
<property>
<name>netbeans.execution</name>
<value>true</value>
</property>
</activation>
<properties>
<netbeans.hint.useExternalMaven>true</netbeans.hint.useExternalMaven>
</properties>
</profile>
</profiles>
</profilesXml>
Current properties as of NetBeans 6.0 beta 2 are: