This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252387

Summary: Generate maven plugin for WildFly application server
Product: serverplugins Reporter: arungupta <arungupta>
Component: WildFlyAssignee: ehsavoie <ehsavoie>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description arungupta 2015-05-13 16:38:32 UTC
If WildFly is chosen as an application server for a Java EE maven project, then WildFly maven plugin should be included in the generated pom.xml. The fragment would look like:

<project>
    ...
    <build>
        ...
        <plugins>
            ...
            <plugin>
                <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-maven-plugin</artifactId>
                <version>1.1.0.Alpha1</version>
            </plugin>
            ...
        </plugins>
        ...
    </build>
...
</project>

Its explained at: http://docs.jboss.org/wildfly/plugins/maven/latest/examples/deployment-example.html
Comment 1 ehsavoie 2015-05-15 16:43:26 UTC
I'm not sure about that as :
 1/ Getting the "right" version of the maven plugin is error prone
 2/ What's the use of the Maven plugin as it may mess things with the current netbeans plugin
Comment 2 arungupta 2015-05-15 17:18:08 UTC
Pick the latest version of WildFLy plugin at the time of NetBeans plugin release.

Adding to NetBeans project will allow me to run the project outside NetBeans easily as well.