title: How to deploy to WebSphere Liberty apps directory from WebSphere Liberty Maven plugin?
body: <p>I have a application running in WebSphere liberty. Through <strong>mvn install</strong> command I need to deploy my application to liberty <strong>apps</strong> directory as I am not using <strong>dropins</strong> directory.</p>
  
  <p>Bellow is the working maven plugin code from which I can deploy to <strong>dropins</strong> directory.</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;net.wasdev.wlp.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;liberty-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;start-server&lt;/id&gt;
                      &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;start-server&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;verifyTimeout&gt;60&lt;/verifyTimeout&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;deploy&lt;/id&gt;
                      &lt;phase&gt;install&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;deploy&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;serverHome&gt;${wlp.dir}&lt;/serverHome&gt;
                  &lt;serverName&gt;${server}&lt;/serverName&gt;
                  &lt;appArtifact&gt;
                      &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
                      &lt;artifactId&gt;${project.artifactId}&lt;/artifactId&gt;
                      &lt;version&gt;${project.version}&lt;/version&gt;
                      &lt;type&gt;${project.packaging}&lt;/type&gt;
                  &lt;/appArtifact&gt;
                  &lt;appDeployName&gt;${project.artifactId}.${project.packaging}&lt;/appDeployName&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>I couldn't find anywhere what configuration need to be added/change to deploy application directly to apps directory. Can someone please let me know what is missing here?  </p>