Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use-latest-releases ignores import scoped BOM dependencies #346

Closed
asw56 opened this issue Apr 21, 2019 · 2 comments · Fixed by #814
Closed

use-latest-releases ignores import scoped BOM dependencies #346

asw56 opened this issue Apr 21, 2019 · 2 comments · Fixed by #814
Milestone

Comments

@asw56
Copy link

asw56 commented Apr 21, 2019

use-latest-releases ignores import scoped BOM dependencies

Apache Maven 3.6.0
versions-maven-plugin 2.7

example:

     <dependencyManagement>
         <dependencies>
             <dependency>
                 <groupId>org.springframework</groupId>
                 <artifactId>spring-framework-bom</artifactId>
                 <version>4.0.1.RELEASE</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
         </dependencies>
     </dependencyManagement>
 
     <dependencies>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-context</artifactId>
         </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>
         </dependency>
     </dependencies>

Expected result: spring-framework-bom managed version to be updated (5.1.6.RELEASE at time of writing)
Actual result: no change to pom.xml

asw56 added a commit to asw56/versions-maven-plugin that referenced this issue Apr 21, 2019
Support import scoped BOM dependencies in use-latest-releases.
frode-carlsen added a commit to frode-carlsen/versions-maven-plugin that referenced this issue Aug 2, 2021
@frode-carlsen
Copy link

The PomHelper.readImportedPOMsFromDependencyManagementSection only handles imported poms, not regular ones. I've created an updated PR here #476

agaengel pushed a commit to agaengel/versions-maven-plugin that referenced this issue Sep 3, 2021
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment