Skip to content

Commit 2cb4bd9

Browse files
committed
Another attempt at CI fix
1 parent 97cab31 commit 2cb4bd9

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

afterburner-tests/pom.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,22 @@ never published.</description>
6262
</configuration>
6363
</plugin>
6464
<!-- Sonatype Central publishing plugin is bound as a build extension in
65-
the parent chain and replaces maven-deploy for releases. Skipping
66-
maven-deploy alone is not enough: the `injected-central-publishing`
65+
the parent chain and replaces maven-deploy for releases/snapshots.
66+
Skipping maven-deploy is not enough: the `injected-central-publishing`
6767
execution still runs and fails with "packaging did not assign a file
68-
to the build artifact" because default-jar is unbound above. -->
68+
to the build artifact" because default-jar is unbound above. The
69+
plugin's own `skipPublishing` flag is checked too late — the mojo
70+
validates the artifact file before honoring it — so we unbind the
71+
execution phase entirely instead. -->
6972
<plugin>
7073
<groupId>org.sonatype.central</groupId>
7174
<artifactId>central-publishing-maven-plugin</artifactId>
72-
<configuration>
73-
<skipPublishing>true</skipPublishing>
74-
</configuration>
75+
<executions>
76+
<execution>
77+
<id>injected-central-publishing</id>
78+
<phase>none</phase>
79+
</execution>
80+
</executions>
7581
</plugin>
7682
<!-- Felix bundle plugin: the parent POM binds two explicit executions
7783
(`bundle-manifest` and `default-install`) so we override both by id. -->

blackbird-tests/pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ and is never published.</description>
7171
<plugin>
7272
<groupId>org.sonatype.central</groupId>
7373
<artifactId>central-publishing-maven-plugin</artifactId>
74-
<configuration>
75-
<skipPublishing>true</skipPublishing>
76-
</configuration>
74+
<executions>
75+
<execution>
76+
<id>injected-central-publishing</id>
77+
<phase>none</phase>
78+
</execution>
79+
</executions>
7780
</plugin>
7881
<plugin>
7982
<groupId>org.apache.felix</groupId>

0 commit comments

Comments
 (0)