Magazine
 

Building Projects: Learn to Set Up A Maven2 Repository

 

itself. There is another approach, that is, setup the connection to the derby database using jdbc and configure artifactory in the web application (by including artifactory.config.xml in the web application). We can use the environment variable to specify the location of the artifactory installation folder. In case of Windows, we can add it to Tomcat startup options and Configure Tomcat by specifying the installation folder to the Java Options. -Dartifactory.home=<artifactory-installdirectory>
e.g. -artifactory.home= D:\artifactory- 1.2.2\ artifactory-1.2.2

III. Setting up the maven repositories: First create three repositories or we can say sub-repositories given in the following list in our maven repository.

• Private-internal-repository: The artifacts which are used only within the organization are contained in this repository. The developer uploads them manually. Since the artifacts in this repository (sub-repository) are private tothe organization, this repository does not synchronize with the remote repository with ibiblio.

• Ibiblio-cache:
This repository is the
cache of the artifacts from ibiblio and synchronized with ibiblio.

 

• 3rd party: Publicly available artifacts are contained in this repository but not in ibiblio repository. Since ibiblio does
not have these jar files therefore this repository is not synchronized with ibiblio This is configured in the
<ARTIFACTORY_INSTALLATION _FOLDER>/etc/artifactory .config.xml’. The configuration to setup these 3 repositories is shown below:

<config xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance"
xmlns="http://artifactory.jfrog.org/xsd/
1.0.0" xsi:schemaLocation="http://
artifactory.jfrog.org/xsd/1.0.0
http://www.jfrog.org/xsd/artifactoryv1_
0_0.xsd">
<!-- Backup every 12 hours -->
<!--<backupCronExp>0 0 /12 * * ?</
backupCronExp>-->
<localRepositories>
<localRepository>
<key>private-internal-repository</key>
<description>Private internal repository</
description>
<handleReleases>true</handleReleases>
<handleSnapshots>true
</handleSnapshots>
</localRepository>
<localRepository>
<key>3rd-party</key>
<description>3rd party jars added
manually</description>
<handleReleases>true</handleReleases>
<handleSnapshots>false

Sept 2007 | Java Jazz Up |29
 
previous
index
next
 
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