Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT. Clean local repository

Tags:

scala

sbt

How I can delete my project from local repository? I previously published it using publish-local SBT command.

I want to clean all compiled and cached stuff because I don't see any changes in my project after recompiling it and redeploying on server.

like image 273
WelcomeTo Avatar asked May 13 '13 15:05

WelcomeTo


People also ask

How do I clear my sbt cache?

You can use Pretty Clean to clean the all of dev tools caches including SBT. PrettyClean also cleans the SBT project's target folder.

Where is sbt local repository?

The publishLocal action is used to publish your project to your Ivy local file repository, which is usually located at $HOME/. ivy2/local/ . You can then use this project from other projects on the same machine.

What is Ivy in sbt?

Apache Ivy is a transitive package manager. It is a sub-project of the Apache Ant project, with which Ivy works to resolve project dependencies. An external XML file defines project dependencies and lists the resources necessary to build a project.


2 Answers

If you want to retry sbt publishLocal, add your module version x.x.x-SNAPSHOT.

like image 122
giiita Avatar answered Sep 19 '22 13:09

giiita


Run publishLocal again and note where it writes the published jars to. For me, it was ~/.ivy2/local. Removing this directory cleared the locally published repository.

like image 23
Travis Andelin Avatar answered Sep 20 '22 13:09

Travis Andelin