Maven check for updated dependencies in repository

Is there a Maven plugin that allows you to check if there are newer versions of dependencies available in the repository? Say, you are using dependency X with version 1.2. Now a new version of X is released with version 1.3. I’d like to know, based on the dependencies used in my project, which dependencies … Read more

maven command line how to point to a specific settings.xml for a single command?

Is it possible to point to a specific settings file in order to override the default settings.xml being used by maven for a single command? Example: mvn clean install -Dparam # -> pass specific settings file path as param to override default “home/.m2/settings.xml” 2 Answers 2

Spring Boot – parent pom when you already have a parent pom

Is there a specific recommended approach to the inclusion of the spring-boot parent pom into projects that already have a required parent POM? What do you recommend for projects that need to extend from an organizational parent (this is extremely common and even something many/most projects published to Maven central depending on the feeder repos … Read more

Best practices for copying files with Maven

I have config files and various documents that I want to copy from the dev environment to the dev-server directory using Maven2. Strangely, Maven does not seem strong at this task. Some of the options: Simple use a copy task in Maven <copy file=”src/main/resources/config.properties” tofile=”${project.server.config}/config.properties”/> Use the Ant plugin to execute copy from Ant. Construct … Read more

disable maven download progress indication

In our company in the CI machines maven local repository is purged before every build. As result my build logs always have a bunch of noise like this Downloading: http://…/artifactory/repo/com/codahale/metrics/metrics-core/3.0.1/metrics-core-3.0.1.jar 4/2122 KB 8/2122 KB 12/2122 KB 16/2122 KB 18/2122 KB 18/2122 KB 4/480 KB 18/2122 KB 8/480 KB 18/2122 KB 12/480 KB 18/2122 KB 16/480 … Read more