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

versions:display-dependency-updates goal need to have excludes and includes property #318

Closed
JithuPaul24 opened this issue Oct 29, 2018 · 3 comments · Fixed by #602
Closed

Comments

@JithuPaul24
Copy link

At present, if the following command is executed:
mvn versions:display-dependency-updates

    <groupId>org.codehaus.mojo</groupId>
    <artifactId>versions-maven-plugin</artifactId>
    <inherited>false</inherited>
    <configuration>
    <allowSnapshots>false</allowSnapshots>
    <outputFile>build/outdated-dependencies.txt</outputFile>
    <rulesUri>file:///C:rules.xml</rulesUri>
    <processDependencyManagement>false</processDependencyManagement> 
    <processPluginDependencies>false</processPluginDependencies>  
    </configuration>
    </plugin>

The plugin currently scans for latest updates for all the dependencies listed in the pom file.
In certain cases, we might need to scan the updates to a limited dependency or a particular classifier or scope.
The display-dependency-updates doesn't currently allow this to be done.
But, other goals like versions:use-latest-versions allows me to have the excludes and includes property in them.

@markkolich
Copy link

markkolich commented Mar 24, 2019

+1 this would be tremendously helpful in cases where a stack is pegged at a specific version of an artifact (as required by other upstream dependencies), and can't be upgraded until all upstream dependencies upgrade in parallel.

E.g., javax.servlet:javax.servlet-api. My application stack can't migrate forward to version 4.x of the Servlet API until Jetty does, so I want to be able to explicitly tell the versions-maven-plugin to ignore this artifact.

@HonoluluHenk
Copy link

Implemented PR #350 with a possible fix

ctasada pushed a commit to ctasada/versions-maven-plugin that referenced this issue Oct 2, 2019
 o Added support to filter dependencies while doing `display-dependency-updates`

 Now you can do something like
 ```
 mvn versions:display-dependency-updates -Dincludes=org.springframework.boot
 ```
 Supports both `includes` and `excludes` options. Code is refactored to avoid duplications
ctasada pushed a commit to ctasada/versions-maven-plugin that referenced this issue Aug 26, 2020
 o Added support to filter dependencies while doing `display-dependency-updates`

 Now you can do something like
 ```
 mvn versions:display-dependency-updates -Dincludes=org.springframework.boot
 ```
 Supports both `includes` and `excludes` options. Code is refactored to avoid duplications
@github-actions github-actions bot added the Stale label Sep 29, 2021
@github-actions github-actions bot closed this as completed Oct 6, 2021
@slachiewicz slachiewicz removed the Stale label Oct 6, 2021
@slachiewicz slachiewicz reopened this Oct 6, 2021
@ymartin59
Copy link

Yes, I am interested in scanning only compile and test scopes, ignoring provided ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants