Magazine
 
Building Projects: Learn to Set Up A Maven2 Repository

<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>
</remoteRepository>
</remoteRepositories>
</config>

 

The directory ‘<ARTIFACTORY_INSTALLATION _FOLDER>/backups’ contains the backups. The local repository on the developer's machine and the backups both have the same format. It allow us the repository contents to migrate easily to another implementation of maven repository.

Other features:

• Use the web UI to delete the artifacts
• Use the web UI to search for artifacts.
• Bulk import/export all artifacts in repository.
• If tomcat is not required then we can use the included jetty web server.

Conclusion: The overall conclusion is that an internal maven repository helps us to avoid conflicts due to different versions of libraries and it also speeds up the build process. Artifactory seems the better product among the 4 common maven repository. It has all the features that a good maven repository should have. The rganization will not be locked into this tool since migration of the repository to another implementation is rather easy. A web UI simplifies the use of the repository even for the peoples who don't know the working of the repository.

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