cuba-platform / cuba-sdk

Software development kit for CUBA Platform
Apache License 2.0
4 stars 3 forks source link

IllegalStateException occurs after trying to export the selected addon #45

Closed MikhailSilk closed 4 years ago

MikhailSilk commented 4 years ago

Environment

Description of the bug or enhancement

  1. Run CUBA CLI
  2. Resolve a new addon (for example com.haulmont.addon.dashboard:dashboard-global:3.2.2 )
  3. Run the sdk export addon command with the name and version of the added addon (for example sdk export addon dashboard:3.2.2)
  4. Do not resolve additional components (if asked)

AR: Selected resolved SDK component was not exported and IllegalStateException occurred

Stacktrace

java.lang.IllegalStateException: sdkProperties.getProperty(property) must not be null
        at com.haulmont.cuba.cli.plugin.sdk/com.haulmont.cuba.cli.plugin.sdk.services.SdkSettingsHolderImpl.getProperty(SdkSettingsHolderImpl.kt:102)
        at com.haulmont.cuba.cli.plugin.sdk/com.haulmont.cuba.cli.plugin.sdk.services.SdkSettingsHolder$DefaultImpls.get(SdkSettingsHolder.kt:43)
        at com.haulmont.cuba.cli.plugin.sdk/com.haulmont.cuba.cli.plugin.sdk.services.SdkSettingsHolderImpl.get(SdkSettingsHolderImpl.kt:32)
        at com.haulmont.cuba.cli.plugin.sdk/com.haulmont.cuba.cli.plugin.sdk.services.ImportExportServiceImpl.export(ImportExportServiceImpl.kt:59)
        at com.haulmont.cuba.cli.plugin.sdk/com.haulmont.cuba.cli.plugin.sdk.commands.artifacts.AbstractExportCommand.run(AbstractExportCommand.kt:38)
        at com.haulmont.cuba.cli.plugin.sdk/com.haulmont.cuba.cli.plugin.sdk.commands.artifacts.AbstractComponentExportCommand.run(AbstractComponentExportCommand.kt:68)
        at com.haulmont.cuba.cli/com.haulmont.cuba.cli.commands.AbstractCommand.execute(AbstractCommand.kt:52)
        at com.haulmont.cuba.cli/com.haulmont.cuba.cli.ShellCli.evalCommand(ShellCli.kt:135)
        at com.haulmont.cuba.cli/com.haulmont.cuba.cli.ShellCli.run(ShellCli.kt:118)
        at com.haulmont.cuba.cli/com.haulmont.cuba.cli.EntryPointKt.main(EntryPoint.kt:114)