To use this plugin, do the following steps:
When the Netbeans project for your Maven project is opened, you have access to the project view that shows:
With a right click on the project name in the project view to call the basic goals. By default:
Then some custom goals are visible:
Configure the pom.xml file as follow if needed :
Note: none of the following property configuration is required. Even the plugin configuration may be omitted.
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>netbeans-freeform-maven-plugin</artifactId>
<configuration>
<outputDirectory>/path/to/output/directory</outputDirectory>
<additionalGoals>plugin:xdoc site:site, projecthelp:active-profiles</additionalGoals>
<additionalFiles>src/main/mdo/FreeformProject.mdo</additionalFiles>
<additionalFolders>src/test/projects, src/site, target</additionalFolders>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>
As an alternative and if all your projects have common goals files or folders, you can add the following in your settings.xml:
<settings>
...
<profiles>
...
<profile>
<id>freeform-commons</id>
<properties>
<freeform.outputDirectory>/path/to/output/directory</freeform.outputDirectory>
<freeform.additionalGoals>plugin:xdoc site:site, projecthelp:active-profiles</freeform.additionalGoals>
<freeform.additionalFiles>src/main/mdo/FreeformProject.mdo</freeform.additionalFiles>
<freeform.additionalFolders>src/test/projects, src/site, target</freeform.additionalFolders>
</properties>
</profile>
...
</profiles>
...
<activeProfiles>
...
<activeProfile>freeform-commons</activeProfile>
...
</activeProfiles>
...
</settings>
The explaination of the configuration or properties is: