Apache Maven is a software project management tool based on the concept of a project object model (POM). You can use the Maven plug-in provided by the Liberty profile to manage the server and applications.
<project>
...
<pluginRepositories>
<!-- Configure WASdev repository -->
<pluginRepository>
<id>WASdev</id>
<name>WASdev Repository</name>
<url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
...
<build>
<plugins>
<!-- Enable liberty-maven-plugin -->
<plugin>
<groupId>com.ibm.websphere.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>1.0</version>
<!-- Specify configuration, executions for liberty-maven-plugin -->
...
</plugin>
</plugins>
</build>
...
</project>
...
<plugin>
<groupId>com.ibm.websphere.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<serverHome>/opt/ibm/wlp</serverHome>
</configuration>
</plugin>
...
...
<plugin>
<groupId>com.ibm.websphere.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<assemblyArchive>/opt/ibm/wlp.zip</assemblyArchive>
</configuration>
</plugin>
...
...
<plugin>
<groupId>com.ibm.websphere.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<assemblyArtifact>
<groupId>com.ibm.ws.liberty.test</groupId>
<artifactId>liberty-test-server</artifactId>
<version>1.0</version>
<type>zip</type>
</assemblyArtifact>
</configuration>
</plugin>
...
For more information on installing Liberty profile server
as a Maven artifact, see Liberty profile: Installation as a Maven artifact. You can use the provided Maven plug-in to create, start, stop, and package a Liberty profile server, and test your application on the Liberty profile. Each task is represented by a specific goal in Maven.