Delay cyclonedx-maven-plugin 97/102097/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 16 Aug 2022 18:43:58 +0000 (20:43 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 16 Aug 2022 18:50:02 +0000 (20:50 +0200)
We really should execute as the last plugin in package phase, but that
may not work due to configuration inheritence and other plugins butting
in.

We really would like to execute before install or deploy runs, which
would seem to indicate 'verify', but that's not exactly true, as
'verify' step should be looking at the BOMs we produced and make sure
we capture everything that ends up installed/deployed.

The best option for developer convenience is post-integration-test, we
will not be executed if integration tests fail.

Change-Id: I181e564b7ecf287140aea731f74a16eba8b5bf35
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
odlparent-lite/pom.xml

index 9e03a5a4306620e3ea25a84726110f66ae2ffcbd..680b01392a2452c06df1a027cd5404a6e540c6f8 100644 (file)
         <artifactId>cyclonedx-maven-plugin</artifactId>
         <executions>
           <execution>
-            <phase>package</phase>
+            <!--
+              Run after 'package' but before 'verify' phases.
+
+              FIXME: We really want to say 'run as last package-phase execution.
+            -->
+            <phase>post-integration-test</phase>
             <goals>
               <goal>makeBom</goal>
             </goals>