(1) Login to a server where DSpace 1.5.x has been previously installed (and therefore all the DSpace maven modules will have been cached in your ~/.m2/ local repository)
(2) Do a fresh install or an upgrade. In both cases, it recommends to run "mvn package"
However, running "mvn package" will give an error similar to:
Couldn't find a version in [18.104.22.168, 22.214.171.124, 126.96.36.199] to match range [188.8.131.52,184.108.40.206) org.dspace:dspace-api-lang:jar:null .
The problem seems to be that Maven by default doesn't go out to the web to look for the latest version of "dspace-api-lang" or "dspace-xmlui-lang". Instead, it looks only in your ~/.m2/ directory, and only finds 1.5.x versions there.
The fix seems to be to recommend running "mvn -U package". The -U option forces Maven to check for updates out on the web.
Does anyone have a better/cleaner solution, or should we change our Install/Upgrade docs to say "mvn -U pcakge"?