Skip to content

Build configuration of es-dashboards #9134

@heidivanparys

Description

@heidivanparys

Trying to run mvn install -Pkb-download

gives the following error:

[ERROR] Failed to execute goal com.googlecode.maven-download-plugin:download-maven-plugin:1.4.2:wget (download-kibana) on project gn-es-dashboards: IO Error: Error while expanding C:\Users\B004114\Documents\git\geonetwork\core-geonetwork\es\es-dashboards\kibana-8.14.3-windows-x86.zip: archive is not a ZIP archive -> [Help 1]

The URL is configured as https://artifacts.elastic.co/downloads/kibana/kibana-${es.version}-${kb.platform}.${kb.installer.extension}. The configuration:

<es.version>8.14.3</es.version>

core-geonetwork/pom.xml

Lines 1503 to 1517 in 86c8dc5

<profile>
<id>windows</id>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<properties>
<es.platform>windows-x86_64</es.platform>
<es.installer.extension>zip</es.installer.extension>
<kb.executable>kibana.bat</kb.executable>
<kb.platform>windows-x86</kb.platform>
<kb.installer.extension>zip</kb.installer.extension>
</properties>
</profile>

When checking https://www.elastic.co/downloads/past-releases/kibana-8-14-3, it seems that kb.platform should be set to windows-x86_64 instead of windows-x86.

After fixing that, I tried to run mvn exec:exec -Dkb-start, but go the following error:

mvn exec:exec -Dkb-start
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< org.geonetwork-opensource:gn-es-dashboards >-------------
[INFO] Building GeoNetwork dashboard app based on Kibana 4.4.10-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec:3.5.0:exec (default-cli) @ gn-es-dashboards ---
[ERROR] Command execution failed.
java.io.IOException: Cannot run program "kibana-8.14.3-windows-x86_64\bin\kibana" (in directory "C:\Users\B004114\Documents\git\geonetwork\core-geonetwork\es\es-dashboards"): CreateProcess error=2, The system cannot find the file specified

The executable configured on Windows should be kibana-8.14.3\bin\kibana.bat instead of kibana-8.14.3-windows-x86_64\bin\kibana.

To Reproduce
Follow the instructions on https://github.com/geonetwork/core-geonetwork/blob/86c8dc5eb5e1a272e13144fb644f80384d5c7797/es/es-dashboards/pom.xml

Expected behavior
I expect the build to succeed and Kibana to be downloaded, unpacked and run correctly.

Screenshots

Image

Log file
N/A

Desktop

  • GeoNetwork Version 4.4.10-SNAPSHOT, commit 86c8dc5.
  • OS: Windows

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions