AppFuse: Generate NetBeans project files

Using mvn netbeans:netbeans to generate a NetBeans project from AppFuse failed with the following build error:

The plugin ‘org.apache.maven.plugins:maven-netbeans-plugin’ does not exist or no valid version could be found

Apprently it cannot find the netbeans plugin. To fix this, open the pom.xml of the project and add a new plugin repository:

    <pluginRepositories>

        ... keep the existing one ...

        <pluginRepository>
          <id>agilejava</id>
          <name>Agilejava</name>
          <url>http://agilejava.com/maven/</url>
        </pluginRepository>
    </pluginRepositories>

That’s it.