with updated jar dependencies?
The mvn clean install command uses old jar dependencies that are stored in .m2 folder in my own ubuntu os.
I have two jar module in an intellij named A,B so that B is depend on A.
I changed A module source code and updated its jar.
Now I want to update B.jar fat so that use new version of A.jar.
Also I did not changed A.jar version.
How do I have to do it with maven commands (not manually updating .m2 folder)?
-- removes the dependencies without downloading them again. mvn dependency:purge-local-repository -DreResolve=false -- purge local maven repository mvn dependency:purge-local-repository clean install -- update all dependencies and snapshots and skip the tests mvn clean install -U -DskipTests -- update only project's snapshot dependencies without install artifact: mvn dependency:resolve -U
Обсуждают сегодня