Deploy webapp with maven-wildfly plugin, deploy war in deployment directory

I am using wildfly-maven-plugin to deploy webapp in Wildfly 8.1 . Using target wildfly:deploy

, a webapp will deploy somewhere in the wildfly directory. Below are my pom.xml and server.log.

<build>
        <plugins>             
            <plugin>
                <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-maven-plugin</artifactId>
                <version>1.0.2.Final</version> // Also tried latest one.
                <configuration>
                    <jbossHome>/home/me/jboss/</jbossHome>
                    <server-args>
                        <server-arg>-Djboss.server.base.dir=/home/me/jboss/standalone/</server-arg>
                        <server-arg>-b=0.0.0.0</server-arg>
                    </server-args>
                </configuration>
            </plugin>
        </plugins>
</build>

      

My little server.log part is

13:55:22,418 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "MyApp-1.0-SNAPSHOT.war" (runtime-name : "MyApp-1.0-SNAPSHOT.war")
13:55:22,671 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
13:55:22,672 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
13:55:22,672 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 60324ms - Started 668 of 722 services (93 services are lazy, passive or on-demand)

      

But my directory is /standalone/deployment/

empty, there are no hidden files either. So where will this thing be deployed! And also removed all military files from the target and .m2 directory.

Webapp entry in standalone.xml

<deployments>
    <deployment name="MyApp-1.0-SNAPSHOT.war" runtime-name="MyApp-1.0-SNAPSHOT.war">
            <content sha1="c9f1534c910dacdf6789ed585ae17cef73cfbe44"/>
    </deployment>
</deployments>

      

So I need to deploy the war file to the directory /standalone/deployments/

.

+3


source to share


1 answer


The Maven WildFly plugin deploys the application through the admin interface (runs on port 9990 by default). The deployment always goes into the standalone / tmp directory.



An alternative to deploy to / standalone / deploymentments / directory is to copy the war with the app directly to it.

+2


source







All Articles