Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

maven-metadata

How does Maven plugin prefix resolution work? Why is it resolving “findbugs” but not “jetty”?

July 23, 2023 by Tarik

What is a prefix and why do we need it? You just encountered the Plugin Prefix Resolution of Maven. This is a feature which enables the user to invoke goals of a specific Maven plugin, by using its prefix. When you invoke directly a goal on the command-line, you could use the fully-featured form of: … Read more

Categories java Tags java, maven, maven-metadata Leave a comment

Why is Maven downloading the maven-metadata.xml every time?

November 29, 2022 by Tarik

Look in your settings.xml (or, possibly your project’s parent or corporate parent POM) for the <repositories> element. It will look something like the below. <repositories> <repository> <id>central</id> <url>http://gotoNexus</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> <releases> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> </releases> </repository> </repositories> Note the <updatePolicy> element. The example tells Maven to contact the remote repo (Nexus in my case, … Read more

Categories java Tags java, maven, maven-3, maven-metadata Leave a comment

How do I tell Maven to use the latest version of a dependency?

September 7, 2022 by Tarik

NOTE: The mentioned LATEST and RELEASE metaversions have been dropped for plugin dependencies in Maven 3 “for the sake of reproducible builds”, over 6 years ago. (They still work perfectly fine for regular dependencies.) For plugin dependencies please refer to this Maven 3 compliant solution. If you always want to use the newest version, Maven … Read more

Categories java Tags dependencies, java, maven, maven-2, maven-metadata Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa