I have two separate projects: a java library and a java web app that uses the library as dependency. Both use maven.
In some cases I do changes on both at the same time, and I'd like to configure the java app to use my local version of the library, instead of fetching from maven repository.
My current workflow is the current:
- Do the changed on the library
- Compile and deploy the library to the local maven repository (
mvn clean install) - On the java app, set it offline and run a
mvn clean installto update the dependency.
This sounds cumbersome, can someone suggest a smarter approach?
thanks