Just overwrite that property from command line:

docker run -it --rm -v $HOME/.m2:/root/.m2 -v $PWD:/root/trellis-t3 -w
/root/trellis-t3 maven:latest mvn clean install -Derrorprone.version=2.3.4

BTW: That's one of the reasons to declare all versions with properties in POMs.

Am Mittwoch, 18. November 2020, 16:01:05 CET schrieb Chris Ward:


I see

 <errorprone.version>2.3.3</errorprone.version>

in file ~/.m2/repository/org/onosproject/onos-dependencies/2.2.7-b2/onos-
dependencies-2.2.7-b2.pom , but it's apparent that I'm not supposed to edit 
this file; it is
owned by root, and there is what looks like a sha1 of the file in the same 
directory as if
Maven is intending to detect changes.


So where is Maven getting this from into its cache ? That is, where do I find 
the original
<errorprone.version>2.3.3</errorprone.version> so that I can change it to 2.3.4 
?

On 2020/11/18 11:39:05, Maarten Mulders <[email protected]> wrote:
> Hello Chris,>
>
> By issuing mvn help:effective-pom -Dverbose=true, you can inspect the >
> "effective POM". It will show you where the version of the Error Prone >
> is selected:>
>
>      <errorprone.version>2.3.3</errorprone.version>>
>      <!-- org.onosproject:onos-dependencies:2.2.7-b2, line 37 -->>
>
> (you may need to scroll a bit, it's pretty much near the top of the output)>
>
> The version of Error Prone is selected from the parent module, >

*T J (Chris) Ward, IBM Research.
Scalable Data-Centric Computing - IBM Spectrum MPI
IBM United Kingdom Ltd., Hursley Park, Winchester, Hants, SO21 2JN
011-44-1962-818679
LinkedIn https://www.linkedin.com/in/tjcward/[1]
ResearchGate https://www.researchgate.net/profile/Thomas_Ward16[2]


IBM Research -- Data Centric Systems[3]
IBM Supercomputer Marketing[4]


IBM Branded Products[5] IBM Branded Swag[6] *
[7]


UNIX in the Cloud - Find A Place Where There's Room To Grow, with the original 
Open
Standard. Free Trial Here Today[8]
Protein Folding by Supercomputer - BlueMatter[9] Molecular Dynamics package.
Data Tables - In-memory key-value store[10] package.
Linux on Windows - Virtualisation[11] package. On the Lighthouse !


Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



--------
[1] https://www.linkedin.com/in/tjcward/
[2] https://www.researchgate.net/profile/Thomas_Ward16
[3] http://www.research.ibm.com/artificial-intelligence/hardware/
[4] https://www.ibm.com/it-infrastructure/power/scale-out
[5] https://www.ibm.com/products
[6] https://logostore-globalid.us/
[7] cid:_2_DDABDAF8DDABD54800527E0B80258624
[8] http://sdf.lonestar.org/index.cgi?telnet
[9] https://github.ibm.com/TJCW/BlueMatter
[10] https://github.ibm.com/TJCW/tx-cics-tables
[11] https://w3-03.ibm.com/services/lighthouse/documents/124087

Reply via email to