Reputation: 348
normally, if I need to add new 3rd party dependency in maven project (which is not there in maven remote repo) , we use mvn install command manually to install 3rd party as maven coordinates. how can we automate this process ... we want mvn install command to execute at runtime every time build is made ?
thanks
Upvotes: 0
Views: 153
Reputation: 11247
I'll suggest you to use a repository manager (Nexus, Artifactory, ...) to host your 3rd party dependencies.
Forcing developers to build 3rd party dependencies and install them to their local repositories (mvn install
) before building the main project can be very tedious. You'll definitively don't want to automate that process, but rather use a repository manager to simplify it. You can find the benefits on Maven documentation about repository management.
Upvotes: 1