Open scottkurz opened 5 years ago
top level failure during a mvn boost package will look like:
[INFO] CWWKM2001I: Invoke command is ["C:\BoostRepo\systemtestToolsRepo\system-test\sample-apps\maven-app\target\liberty\wlp\bin\server.bat", create, BoostServer].
[INFO] Server BoostServer created.
[INFO] CWWKM2129I: Server BoostServer has been created at C:\BoostRepo\systemtestToolsRepo\system-test\sample-apps\maven-app\target\liberty\wlp\usr\servers\BoostServer.
FATAL ERROR: 'java.lang.NullPointerException'
:null
[INFO] CWWKM2102I: Using installDirectory : C:\BoostRepo\systemtestToolsRepo\system-test\sample-apps\maven-app\target\liberty\wlp.
[INFO] CWWKM2102I: Using serverName : BoostServer.
[INFO] CWWKM2102I: Using serverDirectory : C:\BoostRepo\systemtestToolsRepo\system-test\sample-apps\maven-app\target\liberty\wlp\usr\servers\BoostServer.
Downloading from central: https://repo.maven.apache.org/maven2/io/openliberty/features/install-map/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/io/openliberty/features/install-map/maven-metadata.xml (350 B at 1.4 kB/s)
[Fatal Error] :-1:-1: Premature end of file.
[WARNING] The server file C:\BoostRepo\systemtestToolsRepo\system-test\sample-apps\maven-app\target\liberty\wlp\usr\servers\BoostServer\server.xml cannot be parsed. Skipping its features.
By the time we get to:
boost.runtimes.openliberty.LibertyRuntime.generateLibertyServerConfig(List<AbstractBoosterConfig>)
we're only callingconfigurator.getFeature()
for the select configurators w/ corresponding boosters as dependencies in this project.So instead of falling through and returning 'null':
we should probably fail fast with a clear error message.