Build a Custom Maven Plugin

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 26

  • @agrawal97siddharth
    @agrawal97siddharth 4 роки тому +3

    Very easy to follow and implement, thanks a lot for such a great video!

  • @MatthiasBloch
    @MatthiasBloch 5 років тому +4

    Step by Step, perfect guide! Helped me a lot, thank you!

  • @kannansnair7353
    @kannansnair7353 3 роки тому +1

    Really a helpful tutorial. Could understand end to end in maven plugin creation.

  • @wazeeharaa8100
    @wazeeharaa8100 2 роки тому

    Awesome! Slow and Steady! Understandable mode! Clarity! Interesting.......

  • @stanislavmogylei8350
    @stanislavmogylei8350 4 роки тому +2

    Nice guide. Thank you a lot. Can you share how called plugin, which gives ready maven markup templates using shortcuts?

  • @oneany367
    @oneany367 2 роки тому

    Really helpful, we need more advance maven plugin tutorial

  • @Damathematician
    @Damathematician Рік тому

    This was great. Thank you!

  • @Atino828
    @Atino828 4 роки тому +2

    Nice job! Very helpful.

  • @terminator9565
    @terminator9565 2 роки тому +1

    Hello! I don't understand where this ${exampleVersion} coming from in echo plugin. I may have overlooked but I don't see it defined anywhere in the codebase. Btw I am new to the maven world. Any explanation here would be appreciated.

  • @anilkinikar
    @anilkinikar 4 роки тому +1

    Very nice tutorial 👍

  • @tllvllp
    @tllvllp 4 роки тому +1

    Great tutorial, thank you! :)

  • @hyderyadwad442
    @hyderyadwad442 2 роки тому

    Hi Quick question can we create custom maven plugin that start java-swing code

  • @BudBreaker
    @BudBreaker 4 роки тому +2

    hello, how did you manage to generate the plugin dependencies by typing mvn-plugin-deps ? My Idea does not do that.

    • @OktaDev
      @OktaDev  4 роки тому +1

      Hey BudBreaker,
      IntelliJ (or any of the related IDEs) have a "Live Templates" feature, it's the same feature that can complete for loops if you type `for` or `fori`.
      Here is a quick screenshot of mine: gist.github.com/bdemers/61f68e8ff64a1df13bf706958bedb8f4

    • @BudBreaker
      @BudBreaker 4 роки тому +1

      @@OktaDev oh okay, so it's a custom one. I use live templates regularly, most often for sout and soutv (System.out.println) but yours didn't come up so I was a little confused of why and how do one import them. Thanks ! :)

  • @jinxblaze
    @jinxblaze 4 роки тому +2

    Can i fail a maven build using custom plug in if any class name does not follow certain lex rules?

    • @bdemers
      @bdemers 4 роки тому

      Sure! There might already be a plugin that fits your needs. Take a look at the Checksyle plugin, if that doesn't work for you, it would be a good starting point.

  • @torgammelgard4467
    @torgammelgard4467 3 роки тому

    Excellent video! Well done

  • @maple.everything
    @maple.everything 3 роки тому

    Fantastic! Thank you.

  • @zhaolinzhang6518
    @zhaolinzhang6518 2 роки тому

    Very nice!

  • @lisafox9026
    @lisafox9026 4 роки тому +1

    it is doesn't compile together... maven-plugin
    org.apache.maven.plugins
    Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-plugin-plugin:3.6.0:descriptor

  • @wazeeharaa8100
    @wazeeharaa8100 2 роки тому

    Subscribed dude!

  • @sudheergurram4527
    @sudheergurram4527 3 роки тому

    I couldn't extend the class as AbstractMojo..Could any one help me

    • @sudheergurram4527
      @sudheergurram4527 3 роки тому

      @oktadev??

    • @bdemers
      @bdemers 3 роки тому

      @@sudheergurram4527 What error were you seeing? Do you have the correct imports? They should look something like this: github.com/oktadev/example-maven-plugin/blob/simple-plugin/src/main/java/com/okta/example/maven/GitVersionMojo.java#L3-L21
      There is also a text version of this post here: developer.okta.com/blog/2019/09/23/tutorial-build-a-maven-plugin (which will make it a little easier to copy/paste) or directly from GitHub of course!