Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.1-beta-2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Not of importance.
-
Number of attachments :
Description
As M2 is becoming better every day, I suppose more projects will start using M2 instead of M1. So the artifacts generated by these projects will be stored in an M2-style repository.
However, there will also be projects that want to continue using M1 for a while, but that have dependencies to artifacts created by M2 projects. So M1 should be able to retrieve artifacts from an M2 repository.
Remark that I do not want M1 to have all the functionalities of the M2 dependency management (transitive dependencies, POM retrieval, ...). I just want to retrieve the artifact from the M2 repository.
Qick and dirty hack to make DependencyVerifier download artifacts from an m2 repo. Since there is no way to tell the type of a repo, I'm looping over both possibilities. Maven 2 has the <layout> pom setting for that, so maybe we could add a property? However, you couldn't mix m1 and m2 type repos in maven.repo.remote then, which is possible now.
Note that plugin:download is done in the plugin plugin and artifact uploading in the artifact plugin, so that would have to be done separately.