Automatically Detect Dependency Version Updates with Maven

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 19

  • @kappaj01
    @kappaj01 4 ปีที่แล้ว +2

    Excellent info that very few nows about! Thank you!

  • @DeepakKumar-uv5by
    @DeepakKumar-uv5by ปีที่แล้ว +1

    very useful, i was looking for same

  • @Anbu_Sampath
    @Anbu_Sampath 4 ปีที่แล้ว +3

    Wow..This is really cool plugin. I usually do mvnsearch for deps upgrade. @2:06 noticed that it suggested spring boot from 2.2.5 to 2.4.0-M1, usually spring publishes GA releases to maven central. Just wondering how this plugin identified milestone releases. is it looking at custom repos as well other than maven central?

    • @rieckpil
      @rieckpil  4 ปีที่แล้ว

      Hey Anbu, good catch! I configured the Spring Snapshot repository inside the project, that's why it detects the M1 release: github.com/rieckpil/blog-tutorials/blob/master/dependency-version-update-plugin/pom.xml#L97.
      If you are excluding this, it won't find any milestone or snapshot releases as they are not on Maven central.

  • @papacobbold
    @papacobbold 2 ปีที่แล้ว +1

    Hi thanks for the video.I run my project on my local and not in a version control environment.What is the name of the plugin for these dependency and plugin updates?

    • @rieckpil
      @rieckpil  2 ปีที่แล้ว +1

      The plugin is called Versions Maven Plugin: www.mojohaus.org/versions-maven-plugin/ - you can include it in any Maven project with/without version control.

    • @papacobbold
      @papacobbold 2 ปีที่แล้ว +1

      @@rieckpil Thanks

  • @aadyaarha7756
    @aadyaarha7756 2 ปีที่แล้ว +1

    Is there any similar plugin available for gradle to detect latest dependencies?

    • @rieckpil
      @rieckpil  2 ปีที่แล้ว +1

      Yes, there is github.com/ben-manes/gradle-versions-plugin

    • @aadyaarha7756
      @aadyaarha7756 2 ปีที่แล้ว

      @@rieckpil Thank you

  • @nishthatandon9475
    @nishthatandon9475 2 ปีที่แล้ว +1

    Is there any way we can generate reports of the dependency? I checked out the property-updates-report goal but it doesn't work. Can you suggest how can reporting be done with this?

    • @rieckpil
      @rieckpil  2 ปีที่แล้ว

      Can you try mvn dependency:analyze-report? You can find and overview of all available goals and their usae case here: maven.apache.org/plugins/maven-dependency-plugin/

  • @PremanandJiKeertan
    @PremanandJiKeertan ปีที่แล้ว

    How can I excludes some packages while running mvn versions:display-dependency-updates. Could you please share an example ?
    I tried but not worked for me.

  • @KrishnaMurali-jx6ww
    @KrishnaMurali-jx6ww ปีที่แล้ว

    Is there any Automated Scripts Pipeline to check a particular dependency is included in Maven File?

    • @rieckpil
      @rieckpil  ปีที่แล้ว

      I'm not aware of that

  • @quant-mind9539
    @quant-mind9539 3 ปีที่แล้ว

    thanks for your tutorial, how to configure automatic updates to select only stable version (not RC , not beta, alpha etc..) only the stable version for dependencies and plugins ? thanks..

    • @rieckpil
      @rieckpil  3 ปีที่แล้ว

      For automatic dependency updates I can recommend Dependabot: dependabot.com/

  • @harishsamudrala
    @harishsamudrala 4 ปีที่แล้ว

    i am able to update the version for dependencies locally with use-latest-release, how can make it happen on the version control(git repo) and update POM files??

    • @rieckpil
      @rieckpil  4 ปีที่แล้ว

      you can use GitHub actions (or any CI server like Jenkins/Travis CI) for this but then would have to commit back to your repository the changed pom.xml file