Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ideally you would want to set up Jenkins to deploy to your testing server as part of your CI build.</p> <p>Alternatively, if you want to manually run a script on the server you are deploying to, you could set up a specific <code>pom.xml</code> to perform this task. First setup the dependency plugin to download your war:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt; &lt;version&gt;2.3&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;artifactItems&gt; &lt;artifactItem&gt; &lt;groupId&gt;my-group&lt;/groupId&gt; &lt;artifactId&gt;my-web-archive&lt;/artifactId&gt; &lt;version&gt;my-vesion&lt;/version&gt; &lt;type&gt;war&lt;/type&gt; &lt;destFileName&gt;my-web-archive.war&lt;/destFileName&gt; &lt;/artifactItem&gt; &lt;/artifactItems&gt; &lt;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>Substituting the group ID, artifact ID and version for the respective properties of your WAR file. Next configure the JBoss plugin to deploy the downloaded WAR:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;jboss-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.5.0&lt;/version&gt; &lt;configuration&gt; &lt;jbossHome&gt;/opt/jboss-6&lt;/jbossHome&gt; &lt;serverName&gt;all&lt;/serverName&gt; &lt;fileName&gt;${project.build.directory}/my-web-archive.war&lt;/fileName&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>You should then be able to download the artifact from your internal repository and deploy it in the locally running JBoss container with the following command:</p> <pre><code>mvn package jboss:hard-deploy </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload