Before I want to deploy my WAR to Jboss, I want maven to generate the WAR
first. Normally when I only enter: mvn -e install   all dependent jars are
created, and finally the WAR is created. So each java change is taken into
the new WAR.

Now I just want to add the 'jboss:deploy' command in order to deploy the
fresh WAR to Jboss.
The good part is that deploying to JBoss is working, but is always deploying
to JBoss first (so using the old generated WAR) and after that the jars and
WAR are generated again.

I would assume that the following command:

mvn -e install jboss:deploy


>> first the 'install' would have taken place.
This is a piece of my pom regarding the maven jboss plugin:

<plugin>
                                        <groupId>org.codehaus.mojo</groupId>
                                        
<artifactId>jboss-maven-plugin</artifactId>
                                        <configuration>
                                        
<deployUrlPath><![CDATA[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=]]></deployUrlPath>
                                                
<jbossHome>${jboss.deploy.dir}</jbossHome>
                                                <serverName>jboss</serverName>
                                                <hostName>localhost</hostName>
                                                <port>9090</port>
                                                
<fileName>${output.war.dir}/PV_Web.war</fileName>
                                        </configuration>
                                        <executions>
                                                <execution>
                                                        <id>jboss-deploy</id>
                                                        
<phase>post-integration-test</phase>
                                                        <goals>
                                                                
<goal>deploy</goal>
                                                        </goals>
                                                </execution>
                                                <execution>
                                                        <id>jboss-undeploy</id>
                                                        
<phase>post-integration-test</phase>
                                                        <goals>
                                                                
<goal>undeploy</goal>
                                                        </goals>
                                                </execution>
                                        </executions>
                                </plugin>

Does somebody know which command to use in order to first INSTALL and after
that deploy to Jboss?
-- 
View this message in context: 
http://www.nabble.com/Install-phase-ignore-in-command%3A-mvn--e-install-jboss%3Adeploy-tp22516603p22516603.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to