Maven versions ignored includesList
Asked Answered
G

1

6

When running versions:use-latest-versions, it seems to ignore my includesList sepecified on the commandline and attempts to update all depdencies.

mvn versions:use-latest-versions -DincludesList=com.mycompay.common:\* -DexcludeReactor=false  -DallowSnapshots=true -DallowMinorUpdates=true

Everything I can find in the documentation leads me to believe that specifying includes implies the exclusion of all else. Am I not picking this up correctly?

Galleon answered 26/7, 2013 at 10:36 Comment(1)
Just to clarify the source of the confusion and reason for the question - according to this page the "includesList" is "Designed to allow specifing the set of includes from the command line." The accepted answer below is still correct in that using "includes" on the command line will work correctly.Affer
A
8

The parameter is includes not includesList so try this: (according doc here)

mvn versions:use-latest-versions -Dincludes=com.mycompay.common:* -DexcludeReactor=false  -DallowSnapshots=true -DallowMinorUpdates=true
Aldaaldan answered 26/7, 2013 at 10:46 Comment(1)
One may need to also add -DprocessParent=true to upgrade POM parent dependencies. Otherwise parent references in POM are left unchanged.Haftarah

© 2022 - 2024 — McMap. All rights reserved.