Vendorlib file constantly being added/deleted

0
Hi there,Whenever I open my project in Studio Pro, vendorlib jar fles are deleted and added in the changes tab. Makes it annoying when tracking actual changes. Committing the changes just results in the issue happening again the next time the project is opened in Studio Pro. The project used the GenAI starter template.Anyone have any ideas on how to stop this from happening?Thanks,Liam
asked
2 answers
1

This is expected behavior with the GenAI starter template.


GenAI auto-manages Java dependencies, so Studio Pro re-resolves JARs and regenerates vendorlib on every startup. That’s why JARs appear deleted and added again. Committing them does not stop this, and you should not manage vendorlib manually.


A practical fix is to close the project, delete local vendorlib (and userlib if needed), reopen the project, let Studio Pro re-download the JARs, and commit once. If the JARs are not re-downloaded, re-download or reinstall the related Marketplace modules directly so Studio Pro can restore the required libraries.


Bottom line: Studio Pro does this by design to keep dependencies consistent; these JAR changes are mostly noise.


answered
0

hi,


This is expected behavior and it’s caused by the GenAI Starter template managing vendor libraries automatically.

The GenAI starter uses managed dependencies, and when you open the project, Studio Pro checks and re-aligns the vendored JAR versions (for example upgrading from 2.40.x to 2.41.x). Because these JARs are stored under vendorlib, Studio Pro treats the version alignment as file deletes/adds every time the project is opened.

That’s why:

  • You see JARs deleted and re-added on every open
  • Committing doesn’t help
  • It happens again next time you open Studio Pro

This is not a Git issue and not something you’re doing wrong.

What you can do

Option 1 (recommended):

Ignore vendorlib changes when reviewing commits. These files are effectively generated artifacts for this template.

Option 2 (if it really bothers you):

Remove the GenAI starter dependency and manage those JARs yourself — but you’ll lose the benefit of automatic dependency alignment.

answered