cuba-platform / cuba-sdk

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

SDK should check if the artifact already exists in the repository #101

Open konyashkina opened 1 year ago

konyashkina commented 1 year ago

SDK trying to deploy an artifact when the artifact is already exist in repository. One premium jmix-addon installed successfully, but next one is failed.

Tested with archive jmix-dependencies-1.3.5.zip and cuba-sdk-1.2.8

Steps to reproduce:

  1. Follow the instruction https://docs.jmix.ru/jmix/isolated-network.html
  2. Set Deployment policy = Disable redeploy for your repository.
  3. Import zip-archive, set your license key and install one of premium jmix-addons (e.g. Maps as in the instruction). (One premium addon installed successfully.)
  4. Then try to install another premium jmix-addon (BPM, WebDAV or Notifications).

ER: All premium addons installed successfully.

AR: FAILURE: Command execution failed with an exception.

logback-classic

Second jmix addon is resolved, but not installed. (You can use a command list jmix-addonto check it).

NB: If I change the Deployment policy to Allow redeploy, all premium addons installed successfully.

I believe that SDK should check if there artifact in repository and shouldn't try to deploy it when the artifact is already exist in the repo.