if you need finer grain control over repositories you may want to consider repo-manager:
nexus, cloudera, artifactory
From: lorenzo <[hidden email]>
Sent: Friday, August 24, 2018 12:51 PM
To: [hidden email] Subject: Confused about resolution of test-jar to WorkspaceRepository
I'm working on a Maven plugin that interacts with the maven plugin
The problem I'm encountering is that of these two dependencies, the
former is resolved as a belonging to a RemoteRepository, whereas the
latter (the test-jar) to a WorkspaceRepository.
I don't understand why that is. Both are hosted on a remote Maven repo.
Is there something intrinsic in the test-jar type, or the test scope,
that causes the ArtifactDescriptorResult.getRepository() method to
return objects of different classes?