Commit db2bb19
fix(Maven): Handle automatically wrapped p2 dependencies
The dependency resolution logic failed to process dependencies that
were automatically converted from Maven to p2 by Tycho.
When using the `missingManifest="generate"` feature, Tycho creates a
p2 bundle for a Maven artifact that lacks an OSGi manifest. This
process involves adding a "wrapped." prefix to the artifact's ID.
Update the resolution mechanism to detect and strip this "wrapped."
prefix. This allows the Tycho package manager to correctly map the
generated p2 dependency back to its original Maven coordinates,
fixing the resolution failure.
Fixes #11174.
Signed-off-by: klw1imb <[email protected]>1 parent 65dbe30 commit db2bb19
File tree
2 files changed
+16
-2
lines changed- plugins/package-managers/maven/src
- main/kotlin/tycho
- test/assets
2 files changed
+16
-2
lines changedLines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| 131 | + | |
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
0 commit comments