以前用svn只是在服务上发布一个工程,今天需求来了,要求部署两个,以前没有发布两个,只有现琢磨了,不过最后还是成功了,看下文:

为了方便首先切换到svn的bin目录下,我的是这个

  1. D:\Program Files\Subversion\bin>

依次在cmd中执行下列命令

  1. mkdir d:\myproject1
  2. svnadmin create d:\myproject1\project1
  3. svnserve -d -r d:\myproject1

在输入完第二条命令时,修改下D:\myproject1\project1\conf下的三个文件的内容(只显示修改过的部分)

authz

  1. [groups]
  2. # harryharry_and_sally = harry,sally
  3. # harryharry_sally_and_joe = harry,sally,&joe
  4. [/]
  5. * = rw
  6. ql = rw

passwd

  1. [users]
  2. # harry = harryssecret
  3. # sally = sallyssecret
  4. ql = ql

svnserve.conf

  1. [general]
  2. ### These options control access to the repository for unauthenticated
  3. ### and authenticated users.  Valid values are "write", "read",
  4. ### and "none".  The sample settings below are the defaults.
  5. anon-access = read
  6. auth-access = write
  7. ### The password-db option controls the location of the password
  8. ### database file.  Unless you specify a path starting with a /,
  9. ### the file's location is relative to the directory containing
  10. ### this configuration file.
  11. ### If SASL is enabled (see below), this file will NOT be used.
  12. ### Uncomment the line below to use the default password file.
  13. password-db = passwd
  14. ### The authz-db option controls the location of the authorization
  15. ### rules for path-based access control.  Unless you specify a path
  16. ### starting with a /, the file's location is relative to the the
  17. ### directory containing this file.  If you don't specify an
  18. ### authz-db, no path-based access control is done.
  19. ### Uncomment the line below to use the default authorization file.
  20. authzauthz-db = authz
  21. ### This option specifies the authentication realm of the repository.
  22. ### If two repositories have the same authentication realm, they should
  23. ### have the same password database, and vice versa.  The default realm
  24. ### is repository's uuid.
  25. # realm = My First Repository

修改完三个文件后,再执行

  1. svnserve -d -r d:\myproject1

用同样的方法,在myproject1中建立project2,完成后,打开myeclipse,在svn中新建刚才的两个工程svn url为

  1. svn://localhost/project1
  2. svn://localhost/project2

提示输入用户名和密码后,给每个工程添加一个项目,成功后如图

这样以来,在一个svn中就成功的创建了两个或者多个工程了。

本文转自sucre03 51CTO博客,原文链接:http://blog.51cto.com/sucre/392617,如需转载请自行联系原作者

在svn中发布多个工程相关推荐

  1. 正确导入svn拉取的工程

    为什么要写这篇博文?主要是记录摸着石头过黄河的过程.之前在eclipse装了svn插件,拉取远程工程,在eclipse显示的工程,并不会分开显示模块工程,反而 是以总工程的姿态呈现.或许你觉得不管分模 ...

  2. 从SVN检出Maven工程只有父工程的解决办法

    当我们从一根svn项目里checkout一个工程时发现怎么做都是只有一个父工程,但是子工程没有和他分离不容易让人编程,那该怎么办呢? 其实上一步没有做错 , (1)必须从SVN里先导入到项目里面, ( ...

  3. 同时在一个WebService服务中发布多个普通Java类

    package service; public class MyService{     public String getGreeting(String name){         return  ...

  4. svn服务安装和配置 以及搭配Eclips插件使用(总结)

    1.获取 Subversion 服务器程序 2.获取 TortoiseSVN 客户端程序 3.建立版本库(Repository) 4.首先建立 e:\svn 空文件夹作为所有版本库的根目录.然后,进入 ...

  5. Eclipse使用SVN

    http://www.blogjava.net/mose2006/archive/2008/01/05/173070.html Eclipse使用SVN[转] 1.下载所需软件     1.1SVN服 ...

  6. centos7.0搭建svn服务器

    ---恢复内容开始--- 在windows上搭建SVN很简单,但是效能却不高,这当然是和linux相比了.然而在linux上搭建SVN却非常繁琐,这篇文章就来一步一步教您如何在Centos上搭建SVN ...

  7. jenkins+svn+maven+ssh 部署配置详细记录

    2019独角兽企业重金招聘Python工程师标准>>> 先简单记录一下,后面再慢慢完善. 1.环境 jdk 1.7.0_45 maven 3.1.1 jenkins 2.3.21 j ...

  8. Eclipse使用SVN操作说明

    1.下载所需软件 1.1SVN服务端(svn-1.4.3-setup.exe) http://subversion.tigris.org/project_packages.html 1.2把SVN设置 ...

  9. MyEclipse6.5安装SVN插件的三种方法

    2019独角兽企业重金招聘Python工程师标准>>> 一.安装方法: 方法一.如果可以上网可在线安装 1. 打开Myeclipse,在菜单栏中选择Help→Software Upd ...

最新文章

  1. c2c网站开店的流程图_shopee开店入驻?Shopee选品为什么这么重要
  2. C++ operator两种用法【转】
  3. mysql 通过sock来登陆
  4. 李宏毅深度学习——Tips for Deep Learning
  5. 【复杂系统迁移 .NET Core平台系列】之迁移项目工程
  6. git中文件的三种状态
  7. C++程序设计(第2版)课后习题答案--第11章
  8. mysql 走索引 很慢_MySQL优化:为什么SQL走索引还那么慢?
  9. 如何灵活使用OSS监控数据动态调整OSS服务参数
  10. win11网络怎么优化 Windows11优化网速的步骤教程
  11. Source Insight 的使用
  12. Mac新手比较容易犯的一些错误
  13. 软萌硬核科普必读《大圣陪你学AI》
  14. 量子密码(二)——经典的希特勒密码、紫色密码、乘数密码以及量子密码、量子纠缠初探
  15. PERL 连接FTP实现文件上传下载
  16. Docker学习之docker重启参数--restart=always的作用
  17. 23模式--建造者模式
  18. ElasticSearch 在 Spring 项目中的实践
  19. SuperMap 产品安全白皮书
  20. 华为自带计算机怎么添加桌面,如何在华为手机的桌面上设置天气和时间

热门文章

  1. go语言打印日期_go语言基础:流程控制(4)-多重循环跳转控制
  2. python和数据库_python与数据库操作
  3. mysql每天1点执行存储过程_一天一点MySQL复习——存储过程
  4. Mixed Content: The page at ‘xxx‘ was loaded over HTTPS, but requested an insecure resource ‘xxx‘.
  5. bmklocationmanager方法没有回调_SystemVerilog中的callback(回调)
  6. [Spring Boot核心功能]1. SpringApplication 启动引导类(1)
  7. 软考的一些心得分享, 写在信息系统项目管理师通过之后
  8. [设计模式-行为型]迭代器模式(Iterator)
  9. ant 时 --java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils 解决方法
  10. zynq无法识别sd卡_百度米尔携手推出FZ3深度学习计算卡!