PROJECT第一天

本文介绍了如何在项目中采用Artifactory作为Maven的代理服务器,以提升构建速度。通过下载并运行Artifactory,可以在Windows和Linux环境下搭建本地仓库,并在配置文件artifactory.config.xml中添加所需依赖,包括Hibernate和JUnit等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

target:
    搭建环境maven+subversion;
    部署基本的框架
    基本文档
1、搭建环境:
  • 项目使用maven进行源码构建,为了节省等待时间,决定使用代理服务器artifactory
  • 下载http://www.jfrog.org/sites/artifactory/1.2/
  • windows解压直接运行bin中的artifactory.bat就可以在浏览其中直接用admin/password访问localhost:8081/artifactory
  • 注意在linux底下必须使用root用户运行
  • 添加respositories
    • 打开etc底下的artifactory.config.xml文件
    • 在 添加
      • < dependency >
                    
        < groupId > org.hibernate </ groupId >
                    
        < artifactId > hibernate </ artifactId >
                    
        < version > 3.2.5.ga </ version >
                    
        < scope > compile </ scope >
                
        </ dependency >
                
        < dependency >
                    
        < groupId > org.hibernate </ groupId >
                    
        < artifactId > hibernate-annotations </ artifactId >
                    
        < version > 3.3.0.ga </ version >
                    
        < scope > compile </ scope >
                
        </ dependency >
                
        < dependency >
                    
        < groupId > org.hibernate </ groupId >
                    
        < artifactId > hibernate-commons-annotations </ artifactId >
                    
        < version > 3.3.0.ga </ version >
                    
        < scope > compile </ scope >
                
        </ dependency >
                
        < dependency >
                    
        < groupId > org.hibernate </ groupId >
                    
        < artifactId > hibernate-entitymanager </ artifactId >
                    
        < version > 3.3.1.ga </ version >
                    
        < scope > compile </ scope >
                
        </ dependency >
                
        < dependency >
                    
        < groupId > junit </ groupId >
                    
        < artifactId > junit </ artifactId >
                    
        < version > 4.0 </ version >
                    
        < scope > test </ scope >
                
        </ dependency >
                
        < dependency >
                    
        < groupId > org.jboss.seam </ groupId >
                    
        < artifactId > jboss-seam-ui </ artifactId >
                    
        < version > 2.0.0.GA </ version >
                    
        < scope > compile </ scope >
                
        </ dependency >
                
        < dependency >
                    
        < groupId > org.jboss.seam </ groupId >
                    
        < artifactId > jboss-el </ artifactId >
                    
        < version > 2.0.0.GA </ version >
                    
        < scope > compile </ scope >
                
        </ dependency >

2、在命令行中输入:mvn install,一大会以后,可以开始工作了
   


Powered by ScribeFire.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值