You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating or importing a project which uses the Liberty Gradle plugin version 3.x, no prompt appears to create a runtime and server for the project.
The problem occurs because the gradle plugin no longer specifies a default location for the server.xml, it just defines a default folder containing config files. This results in the build/liberty-plugin-config.xml not having a liberty-plugin-config/servers/server/configFile element which the Open Liberty Tools are looking for.
This can be worked around by manually specifying the location of the server.xml in the build.gradle file like this:
liberty {
server {
serverXmlFile = file('src/main/liberty/config/server.xml')
}
}
The text was updated successfully, but these errors were encountered:
When creating or importing a project which uses the Liberty Gradle plugin version 3.x, no prompt appears to create a runtime and server for the project.
The problem occurs because the gradle plugin no longer specifies a default location for the server.xml, it just defines a default folder containing config files. This results in the
build/liberty-plugin-config.xml
not having aliberty-plugin-config/servers/server/configFile
element which the Open Liberty Tools are looking for.This can be worked around by manually specifying the location of the server.xml in the build.gradle file like this:
The text was updated successfully, but these errors were encountered: