How to CREATE an EXECUTABLE JAR With Dependencies Using Maven

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 12

  • @zxtqwwr0
    @zxtqwwr0 Месяц назад

    You don't how much head banging I did, because of these settings. Gladly thank you, very well explained.

    • @beginsecure
      @beginsecure  Месяц назад +1

      Glad it saved you from some head banging! 😅 Trust me, I’ve been there too - Maven settings can be a real pain. But hey, that’s what this channel is here for! Thanks for the kind words, and happy coding! 💻 If you’ve got any more questions, feel free to drop them!

  • @JerryBuffington-ny8eg
    @JerryBuffington-ny8eg 7 месяцев назад +1

    Extremely well done. Clear, easy to follow and understand. Just what this beginner needed. Thank you!!!

    • @beginsecure
      @beginsecure  7 месяцев назад

      Glad it was helpful! Thanks for your kind words and for watching!!

  • @jean-lucburot
    @jean-lucburot 5 месяцев назад +1

    Very well done! Clear and concise!

    • @beginsecure
      @beginsecure  5 месяцев назад

      Glad it was helpful! Thanks for watching!

  • @xtremefusion123
    @xtremefusion123 4 месяца назад +1

    Wow! Crisp and clear! Thank you!

    • @beginsecure
      @beginsecure  4 месяца назад

      Thank you, and thanks for watching!!

  • @NPCBALANZAS
    @NPCBALANZAS 8 месяцев назад +1

    Thanks a lot man, this was the only tutorial that worked for me.

    • @beginsecure
      @beginsecure  8 месяцев назад +1

      Glad it helped. Thanks for watching!!

  • @andreaquiles387
    @andreaquiles387 6 месяцев назад +1

    Thanks, but my project generated jar only with mvn install , not clean package.

    • @beginsecure
      @beginsecure  6 месяцев назад

      Thanks for your feedback! If your JAR is only being generated with mvn install and not mvn clean package, it could be due to a configuration issue in your pom.xml or differences in the build lifecycle. Here are a few things to check: 1) Verify pom.xml configuration: Ensure that the maven-jar-plugin and any other relevant plugins are properly configured in your pom.xml. 2) Build Lifecycle: mvn clean package should compile your code and package it into a JAR. Make sure there are no profiles or additional configurations that might be affecting this process. 3) Check for Errors: Look for any errors or warnings in the console output when running mvn clean package. These can provide clues about what might be going wrong. 4)Running mvn clean before mvn package ensures a clean state, removing any previously compiled files and generated artifacts, which might resolve the issue.