You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case a BOM is being imported, which contains a profile with a dependencyManagement section, this section is not being injected into the Maven build when flatten-maven-plugin is used and the plugin fails to create the effective POM model.
In case a Maven project imports this BOM and declares a dependency on one of these managed dependencies the flatten-maven-plugin fails to build the effective POM model.
Error message: [ERROR] 'dependencies.dependency.version' for org.infinispan:infinispan-marshaller-kryo:jar is missing.
Example project POM:
[...]
<dependencyManagement>
<dependencies>
<!-- This BOM contains a profile 'community-release' which is activated by default --><!-- This profile provides dependency management for the artifact 'org.infinispan:infinispan-marshaller-kryo' -->
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-bom</artifactId>
<version>13.0.11.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-marshaller-kryo</artifactId>
</dependency>
</dependencies>
[...]
The text was updated successfully, but these errors were encountered:
Syquel
added a commit
to Syquel/flatten-maven-plugin
that referenced
this issue
Oct 12, 2022
Description
In case a BOM is being imported, which contains a profile with a
dependencyManagement
section, this section is not being injected into the Maven build when flatten-maven-plugin is used and the plugin fails to create the effective POM model.Example
The BOM org.infinispan:infinispan-bom:13.0.11.Final defines a subset of its dependency management in a separate profile, which is activated by default:
In case a Maven project imports this BOM and declares a dependency on one of these managed dependencies the flatten-maven-plugin fails to build the effective POM model.
Error message:
[ERROR] 'dependencies.dependency.version' for org.infinispan:infinispan-marshaller-kryo:jar is missing.
Example project POM:
The text was updated successfully, but these errors were encountered: