Is there are way to install maven dependencies before maven attempts to resolve them?

后端 未结 4 813
孤街浪徒
孤街浪徒 2020-12-10 11:06

I have to unpack some dependencies from a remote location and install them locally.

I successfully get them (using the antrun plugin) and install them (using the ins

4条回答
  •  时光说笑
    2020-12-10 11:45

    I ended up doing it in two phases:

    • setup the antrun and install executions to run on clean
    • when package is chosen, the build would fail if it hasn't been cleaned at least once

    The solution introduces a bit of complexity though.

提交回复
热议问题