Magazine
 

Building Projects: Learn to Set Up A Maven2 Repository

3 Create repository configuration file artifactory.config.xml into <artifactor yinstall- directory>/etc/ directory
and paste the following content in the artifactory.config.xml file:

<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
</ handleSnapshots>
</localRepository>
</localRepositories>
<remoteRepositories>
<remoteRepository>
<key>ibiblio</key>
<handleReleases>true
</handleReleases>
<handleSnapshots>false
</ handleSnapshots>
<excludesPattern>
org/artifactory/**,org/
jfrog/**</excludesPattern>

 

<url>http://repo1.maven.org/maven2
</url>
<proxyRef>proxy1</proxyRef>
</remoteRepository>
<remoteRepository>
<key>ibiblio.org</key>
<description>ibiblio.org</description>
<handleReleases>true
</handleReleases>
<handleSnapshots>false</
handleSnapshots>
<excludesPattern>
org/artifactory/**
</excludesPattern>
<url>http://www.ibiblio.org/maven2
</ url>
<proxyRef>proxy1</proxyRef>
</remoteRepository>
<remoteRepository>
<key>java.net</key>
<description>java.net</description>
<handleReleases>true
</handleReleases>
<handleSnapshots>false</
handleSnapshots>
<excludesPattern>
org/artifactory/**,org/
jfrog/**</excludesPattern>
<url>
http://download.java.net/maven/
2</url>
<proxyRef>proxy1</proxyRef>
</remoteRepository>
</remoteRepositories>
<proxies>
<proxy>
<key>proxy1</key>
<host>192.168.10.80</host>
<port>9090</port>
<username></username>
<password></password>
<domain>192.168.10.80
</domain>
</proxy>
</proxies>
</config>

At our end we are using squid proxy server to connect with the internet. Our artifactory repository server will connect to internet through squid proxy server

Sept 2007 | Java Jazz Up | 27
 
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