-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BuildMojo should require dependencies resolutions
Default dependencies resolutions for Mojo is NONE. When Mojo doesn't explicit required dependencies resolutions - plugins executed before can have impact on build. Eg. maven-enforcer-plugin only requires dependencies collections. If we have only m-enforcer-p like in pom packaging, resolved artifacts are not downloaded. It can cause NPE in m-assembly-p for missing files. Fix #1146 Signed-off-by: Slawomir Jaranowski <[email protected]>
- Loading branch information
1 parent
83cae7e
commit be517e1
Showing
4 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>io.fabric8.dmp.itests</groupId> | ||
<artifactId>dmp-it-parent</artifactId> | ||
<version>0.41-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>dmp-it-build-pom-packaging</artifactId> | ||
<version>0.41-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<description>Docker Maven Plugin Integration Test - pom packaging and plugin which use dependencies collections</description> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>jakarta.xml.bind</groupId> | ||
<artifactId>jakarta.xml.bind-api</artifactId> | ||
<version>2.3.2</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.fabric8</groupId> | ||
<artifactId>docker-maven-plugin</artifactId> | ||
<configuration> | ||
<verbose>true</verbose> | ||
<images> | ||
<image> | ||
<name>dmp-pom-packaging</name> | ||
<build> | ||
<from>fabric8/java-centos-openjdk8-jdk:1.5.6</from> | ||
<assemblies> | ||
<assembly> | ||
<descriptorRef>dependencies</descriptorRef> | ||
</assembly> | ||
</assemblies> | ||
</build> | ||
</image> | ||
</images> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>docker-build</id> | ||
<goals> | ||
<goal>build</goal> | ||
</goals> | ||
<phase>package</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<!-- m-enforcer-p requires dependencies collections only - artifacts files are not downloaded --> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-enforcer-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters