Skip to content

Commit

Permalink
Write generated features to target; add feature gen as a step for lib…
Browse files Browse the repository at this point in the history
…erty-assembly
  • Loading branch information
TrevCraw committed Sep 8, 2022
1 parent 98c7615 commit 6462f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private void generateFeatures() throws MojoExecutionException, PluginExecutionEx
}
log.debug("Features detected by binary scanner which are not in server.xml" + missingLibertyFeatures);

File newServerXmlSrc = new File(configDirectory, GENERATED_FEATURES_FILE_PATH);
File newServerXmlSrc = new File("target/liberty/wlp/usr/servers/defaultServer/", GENERATED_FEATURES_FILE_PATH);
File serverXml = findConfigFile("server.xml", serverXmlFile);
ServerConfigXmlDocument doc = getServerXmlDocFromConfig(serverXml);
log.debug("Xml document we'll try to update after generate features doc=" + doc + " file=" + serverXml);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<prepare-package>
:liberty-maven-plugin:install-server,
io.openliberty.tools:liberty-maven-plugin:create,
io.openliberty.tools:liberty-maven-plugin:generate-features,
io.openliberty.tools:liberty-maven-plugin:install-feature,
</prepare-package>
<package>
Expand Down Expand Up @@ -86,4 +87,3 @@

</components>
</component-set>

0 comments on commit 6462f70

Please sign in to comment.