Skip to content

Commit a457567

Browse files
committed
Fix failing build when not executing up to package
metafacture-runner attempted to unpack the metamorph artifact in the `generate-resources` phase. However, if Maven was invoked with a lifecycle phase before the the `package` phase, the metamorph artifact does not exist in the reactor and the build fails. This commit moves the unpacking of the metamorph artifact into the package phase to solve the problem.
1 parent 7d07e91 commit a457567

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

metafacture-runner/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,19 @@
257257
</executions>
258258
</plugin>
259259

260+
<!-- The maven-dependency-plugin must appear before the
261+
maven-assembly-plugin in the pom to ensure its unpack goal is
262+
executed before building the assembly.
263+
264+
Maven executes goals bound to the same phase in the order in
265+
which the plugins are listed in the pom. -->
260266
<plugin>
261267
<artifactId>maven-dependency-plugin</artifactId>
262268
<version>2.10</version>
263269
<executions>
264270
<execution>
265-
<id>unpack-schemata</id>
266-
<phase>generate-resources</phase>
271+
<id>add-xsd-schemas</id>
272+
<phase>package</phase>
267273
<goals>
268274
<goal>unpack</goal>
269275
</goals>

0 commit comments

Comments
 (0)