I have a application running in WebSphere liberty. Through mvn install command I need to deploy my application to liberty apps directory as I am not using dropins directory.
Bellow is the working maven plugin code from which I can deploy to dropins directory.
<plugin>
<groupId>net.wasdev.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>start-server</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<verifyTimeout>60</verifyTimeout>
</configuration>
</execution>
<execution>
<id>deploy</id>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverHome>${wlp.dir}</serverHome>
<serverName>${server}</serverName>
<appArtifact>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</appArtifact>
<appDeployName>${project.artifactId}.${project.packaging}</appDeployName>
</configuration>
</plugin>
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?
Adding install-apps execution step instead deploy(deploy execution step will deploy application to dropins folder only) step will resolve the issue. Version had to be updated to 1.3 which is the latest as of now
Ref : https://github.com/WASdev/ci.maven/blob/master/docs/install-apps.md
Full maven plugin code will be as bellow