|
Building Projects: Learn to Set Up A Maven2 Repository |
|
|
build process, uniform
building system, quality
project management
information (such as change
Log, cross-reference, mailing
lists, dependencies, unit test
reports, test coverage
reports and many more),
guidelines for best practices
and transparent migration to
new features. To achieve to
this goal Maven attempts to
deal with several areas like:
• It makes the build
process easy
• Provides a uniform
building system
• Provides quality related
Poject information
• Provides guidelines
related to development
to meet the best goal.
• Allows transparent
migration to new
features.
Maven repository Types:
• Public remote
external
repository: This public
external repository exists
at ibiblio.org and maven
synchronizes with this
repository.
• Private remote
internal
repository:
We set up
this repository and make
changes in the maven's
pom.xml or settings.xml
file to use this repository.
• Local repository:
This
repository is maintained
by the developer and
stays on the developer's
machine. It is |
|
synchronous to the maven
repository defined in the
settings.xml file that exists in
the .m2 directory at its
standard location i.e.
C:\Documents and
Settings\Administrator. If
no private internal repository
is setup and not listed in the
pom.xml or in the setting.xml
then the local repository exists
on the developer's machine is
synchronized with the public
maven repository at ibiblio.org.
Advantages of having an
internal private repository :
• Reduces conflicts among
likelihood versions.
• To build first time it requires
less manual intervention.
• Rather than having several
separate independent
libraries it provides a single
central reference repository
for all the dependent
software libraries.
• It quickly builds the project
while using an internal
repository as maven artifacts
are retrieved from the
intranet server rather than
retrieving from the server on
internet.
Internal private repository
of an organisation:
|
|
Use cases for maven
repository:
• It creates two subrepository
inside the
internal repository.
• Downloads ibiblio-cache
from ibiblio for artifacts
and make it available
publically. This
synchronizes with
external repository from
ibiblio.
• internal-maven repository
:
used for
internal artifacts of an
organization. It contains
unique artifacts for the
organization and is not
synchronized with any
repository.
• Alternatively, another
sub-repository that is
not at ibiblio can be
created for artifacts. This
does not synchronize
with any external
repository.
• Browse the remote
repository by using a
web browser.
• Search the artifacts in
the repository.
• Download code from
version control and
make changes in
settings.xml to point to
the internal repository
and build without any
manual intervention.
• Install new version of the
artifacts. |
|
Sept 2007 | Java Jazz Up |25 |
|
|
|
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79, Download PDF |
|
|
|
|
|
|
|
|
|