Reputation: 31
Our group wanna reconstruct our old Spring project into Spring Cloud and several Spring Boot projects.
And what bothers us is that we cannot connect to Internet for some classified & security reasons. We can only download the dependencies at home and take them to our office (this process is very complicate and takes a long time).
I have read some maven document in apache website, and got the conclusion that we can't download the whole maven respository. It is almost impossible for us to download the jars on maven respository one-by-one because they are so many.
For now, we have setup a nexus server and spring boot initializr, all the problem for now is the maven repository.
Therefore, I wonder if this method is OK or not? Should we quit or is there any other ways?
If you've read this, Thanks.
—— An off-line old school programmer
Upvotes: 3
Views: 131
Reputation: 2228
You can download all spring framework jars as songle zip according to required spring release here
I would suggest you to then upload them to a private repository like Nexus/jfrog and configure all of your Maven/Gradle projects to use this as repository rather than the public repository, This way you don't need access to internet to download dependencies.
Upvotes: 1
Reputation: 844
You can download all maven dependencies on nexus server and you have to connect your maven repositories with nexus server for that you just have to provide the configuration in setting.xml(will consist of nexus url) file and have to put xml file in .m2 folder of maven and provide the path in eclipse maven user settings and when you will clean and install the project in eclipse it will automatically download all dependencies from nexus server.
please let me know for more details.
Upvotes: 0