avatar
Maven's newbie question# Java - 爪哇娇娃
d*k
1
Just start learning Maven. Every time when I try to create a Maven project,
seems IDE need to download something from maven's central repository by
internet. Is that mean if one day that maven's central repository down, or
my network down, then the whole project is not going to work? Thanks a lot
in advance.
avatar
o*1
2
maven goes to central repository if the dependencies cannot be found in your
local repository.
if everything is downloaded, you are fine even if internet is down.

,

【在 d**k 的大作中提到】
: Just start learning Maven. Every time when I try to create a Maven project,
: seems IDE need to download something from maven's central repository by
: internet. Is that mean if one day that maven's central repository down, or
: my network down, then the whole project is not going to work? Thanks a lot
: in advance.

avatar
m*t
3

,
If you are working on a serious project, usually you'll want to set up
a local repository using nexus or archiva. The public central repository
is not only unreliable, but also slow most of the time.

【在 d**k 的大作中提到】
: Just start learning Maven. Every time when I try to create a Maven project,
: seems IDE need to download something from maven's central repository by
: internet. Is that mean if one day that maven's central repository down, or
: my network down, then the whole project is not going to work? Thanks a lot
: in advance.

avatar
d*k
4
Thanks a lot, dude.

your

【在 o**1 的大作中提到】
: maven goes to central repository if the dependencies cannot be found in your
: local repository.
: if everything is downloaded, you are fine even if internet is down.
:
: ,

avatar
d*k
5
Thanks, man! Let me google what the hack it nexus or archiva. Are those easy
to use?

【在 m******t 的大作中提到】
:
: ,
: If you are working on a serious project, usually you'll want to set up
: a local repository using nexus or archiva. The public central repository
: is not only unreliable, but also slow most of the time.

avatar
m*t
6

easy
They are maven repository servers. You can host your own
repositories, and/or set up proxies for the public ones so
that artifacts can be cached.
I recently switched from nexus to archiva only because
the admin UI is cooler (web 2.0 baby!), but both are fairly
straightforward to set up and manage.

【在 d**k 的大作中提到】
: Thanks, man! Let me google what the hack it nexus or archiva. Are those easy
: to use?

avatar
o*1
7
another choice: artifactory.

【在 m******t 的大作中提到】
:
: easy
: They are maven repository servers. You can host your own
: repositories, and/or set up proxies for the public ones so
: that artifacts can be cached.
: I recently switched from nexus to archiva only because
: the admin UI is cooler (web 2.0 baby!), but both are fairly
: straightforward to set up and manage.

avatar
d*k
8
those are all look very cool. But currently I am using an IDE kind of like
eclipse, and it has built in Maven support. That is not very cool but seems
integrate with IDE pretty well. I think in eclipse it uses nexus. I am not
sure if it is possible to integrate artifactory or archiva with eclipse.
avatar
m*t
9

Somebody suggested artifactory to me before, but I didn't
quite like their idea of using a database as backend.
But I'm interested in hearing it if you have some first-hand
experience with it.

【在 o**1 的大作中提到】
: another choice: artifactory.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。