Maven offline - problem with mvn-plugins

前端 未结 6 1888
滥情空心
滥情空心 2021-01-12 06:49

I\'m using maven in my project and I need to run the build in a non-internet-access machine.

When I test my project build everything is working, bu

6条回答
  •  孤城傲影
    2021-01-12 07:21

    Before you go offline run the following:

    mvn dependency:go-offline
    

    That will download all your dependencies and plugins that you need to build your project into ~/.m2/repository.

    Once you've run that you can now build your project offline using the '-o' flag:

    mvn install -o
    

提交回复
热议问题