Skip to Main Content
Spotfire Ideas Portal
Status Implemented
Created by Guest
Created on Apr 19, 2018

Better handling of Maven in Studio

Currently if you manage dependencies using Maven, the sbd-studio.sbconf is automatically generated when the pom.xml is updated. This works great except the path to the .m2 repository is hardcoded to the full path.

This makes it hard to handle CI/CD and multiple developers environment. We could have this section moved to a sbd-common.sbconf, but it's easier to get Studio to manage the dependencies with Maven.

Currenlty, once we update the pom.xml and update the project, we need to manually untick "Automaticall manage/maintain server configuration files" and replace all hardcoded path to ${HOME}/.m2

 

Interestingly enough, even Studio shows warnings on those lines saying "don't hardcode full path".

Ben

  • Attach files