Skip to content

Commit e121d64

Browse files
BananeweizenCalixte
authored andcommitted
ci: fix warnings in maven console
Fix the warnings `[WARNING] artifact foo:bar:p2metadata:10.3.3-SNAPSHOT already attached, replace previous instance` by disabling the default metadata generation. Unfortunately this extra step is necessary when creating source features, since the attaching of metadata needs to be delayed then.
1 parent ebb25a1 commit e121d64

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@
233233
<version>${tycho-version}</version>
234234
<executions>
235235
<execution>
236+
<!-- this execution is bound via default lifecycle bindings of the tycho-p2-plugin -->
237+
<id>default-p2-metadata-default</id>
238+
<configuration>
239+
<!-- disable the default metadata generation since that conflicts with source feature generation -->
240+
<attachP2Metadata>false</attachP2Metadata>
241+
</configuration>
242+
</execution>
243+
<execution>
244+
<!-- explicitly attach metadata later via this custom execution -->
236245
<id>attach-p2-metadata</id>
237246
<phase>package</phase>
238247
<goals>

0 commit comments

Comments
 (0)