WAS v8.5 > Reference > Command-line utilitiesLiberty profile: Maven goal - liberty:create-server
If we install the Maven plug-in, we can use the liberty:create-server goal to create a Liberty profile server.
- Usage:
- This is the maven goal used to create a server.
mvn liberty:create-server -DserverHome=/path/to/server_home -DserverName=[worklightServer]
- Example: creating a server
- This is the code snippet that we can use in the pom.xml file of your project.
<plugin> <groupId>com.ibm.websphere.wlp.maven.plugins</groupId> <artifactId>liberty-maven-plugin</artifactId> <version>1.0</version> <executions> <execution> <id>create-liberty-server</id> <phase>pre-integration-test</phase> <goals> <goal>create-server</goal> </goals> <configuration> <serverHome>${project.build.directory}/wlp</serverHome> servertestcreate</serverName> </configuration> </execution> </executions> </plugin>
Parent topic: Use Maven to automate tasks for the Liberty profile
|