Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.4
-
Fix Version/s: None
-
Component/s: go-offline
-
Labels:None
-
Environment:Maven 3.0.4, Java 6u33, Windows 7 x64
-
Number of attachments :
Description
I expected go-offline to download the parent (and all transitive parents) of the module it is executed for, but it doesn't do so.
AFAIK there is no workaround, as the copy goal does not retain the repository layout (there is no useRepositoryLayout).
copy-dependencies does retain the repository layout (see useRepositoryLayout) but it does not find the parent(s).
This patch fixes the problem when running the copy-dependencies goal.
There is an extra parameter added called copyParentPom which defaults to false so as to keep the plugin backwards compatible. If you set that to true, it will recursively get all parent poms for all project dependencies.