Reputation: 2145
I got the following problem: the customer provided me with a copy of his maven repository to get access to internal libraries. I need to upload the relevant artifact and its dependencies to our (a different) artifactory repository. This is quite an elaborate dependency tree unfortunately.
I tried the maven deploy plugin, but that only uploads a single file and not the dependencies. Does anyone have an idea on how to get the artifact with all its dependencies into our repo?
Upvotes: 0
Views: 787
Reputation: 7765
You can create Maven profiles to pull from client's repository and to push to your own enterprise repository.
While running you maven goals, mention the profile using -P flag.
For example:- mvn clean install -P client-profile
Upvotes: 0
Reputation: 20386
There are multiple approaches you can take:
Upvotes: 1