Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Use default appsDirectory parm in deploy goal #389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,14 @@ private void installMissingFeatures() throws MojoExecutionException {
}

/**
* Invoke the liberty-maven-plugin to run the install-app goal.
* Invoke the liberty-maven-plugin to run the deploy goal.
*/
private void installApp(String installAppPackagesVal) throws MojoExecutionException {
private void installApp(String deployPackagesVal) throws MojoExecutionException {

Element deployPackages = element(name("deployPackages"), installAppPackagesVal);
Element deployPackages = element(name("deployPackages"), deployPackagesVal);
Element serverNameElement = element(name("serverName"), serverName);

Xpp3Dom configuration = configuration(deployPackages, serverNameElement, getRuntimeArtifactElement());
configuration.addChild(element(name("appsDirectory"), "apps").toDom());

executeMojo(getPlugin(), goal("deploy"), configuration, env);
}
Expand All @@ -284,7 +283,6 @@ private Element getRuntimeArtifactElement() {
private void createUberJar() throws MojoExecutionException {
executeMojo(getPlugin(), goal("package"),
configuration(element(name("isInstall"), "false"), element(name("include"), "minify"),
element(name("outputDirectory"), "target/liberty-alt-output-dir"),
element(name("packageType"), "jar"), element(name("serverName"), serverName)),
env);
}
Expand Down