• 集成confluence与jira


    一.按照我前两个文章已经安装好了 confluence与 jira,现在 将D:\confluence\confluence-3.4.5目录下的 confluence复制到 D:\jira\atlassian-jira-enterprise-4.2.4目录下 

    二.修改D:\jira\atlassian-jira-enterprise-4.2.4\conf\server.xml 

    再 <Host name="localhost"  里面追加 

    Xml代码  收藏代码
    1. <Context path="/wiki" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">  
    2.                     <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->  
    3.                     <Manager pathname="" />  
    4.             </Context>  


    至此app集成完成 

    三.MySql的集成 


    在wiki的context 
    里加入
    Xml代码  收藏代码
    1. <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"  
    2.                                  username="root"  
    3.                                  password="0"  
    4.                                  driverClassName="com.mysql.jdbc.Driver"  
    5.                                  url="jdbc:mysql://localhost/jiradb?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8"/>  


    参考资料http://confluence.atlassian.com/display/CONF34/Delegate+user+management+to+use+JIRA+logins 



    找到/confluence/WEB-INF/classes下的 osuser.xml 文件 

    注释掉 一下代码 

    Xml代码  收藏代码
    1. <provider class="bucket.user.providers.CachingCredentialsProvider">  
    2.         <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateCredentialsProvider</property>  
    3.         <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property>  
    4.     </provider>  
    5.     <provider class="bucket.user.providers.CachingAccessProvider">  
    6.         <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateAccessProvider</property>  
    7.         <property name="chain.configuration.provider.class">bucketuser.BucketHibernateConfigProvider</property>  
    8.     </provider>  
    9.     <provider class="bucket.user.providers.CachingProfileProvider">  
    10.         <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateProfileProvider</property>  
    11.         <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property>  
    12.     </provider>  



    反注释 以下代码块 

    Xml代码  收藏代码
    1. <provider class="bucket.user.providers.CachingCredentialsProvider">  
    2.         <property name="chain.classname">com.atlassian.confluence.user.providers.jira.JiraJdbcCredentialsProvider</property>  
    3.         <property name="chain.datasource">java:comp/env/jdbc/JiraDS</property>  
    4.     </provider>  
    5.     <provider class="bucket.user.providers.CachingAccessProvider">  
    6.         <property name="chain.classname">com.atlassian.confluence.user.providers.jira.JiraJdbcAccessProvider</property>  
    7.         <property name="chain.datasource">java:comp/env/jdbc/JiraDS</property>  
    8.     </provider>  
    9.     <provider class="bucket.user.providers.CachingProfileProvider">  
    10.         <property name="chain.classname">com.atlassian.confluence.user.providers.jira.JiraJdbcProfileProvider</property>  
    11.         <property name="chain.datasource">java:comp/env/jdbc/JiraDS</property>  
    12.         <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property>  
    13.     </provider>  



    JiraDS 是在 Confluence里面 JIRA 的 datasource 


    修改  D:\jira\atlassian-jira-enterprise-4.2.4\confluence\WEB-INF\classes\atlassian-user.xml 

    注释掉以下代码 


    Xml代码  收藏代码
    1. <hibernate name="Hibernate Repository" key="hibernateRepository"  description="Hibernate Repository" cache="true"/>  



    同时加入 
    Xml代码  收藏代码
    1. <osuser name="OSUser Repository" key="osuserRepository"/>  







    在JIRA里创建confluence-users 和 confluence-administrators组, 把你自己放在这两个组里, 
    为了集成,这里有两个选择 
    (1).手动编辑里面的JIRA这些用户组的成员给他们 一个或两个 onfluence组 
    (2). Start up Confluence. Log in using your JIRA account and go to Administration and then Global Permissions. Now assign the 'can use' permission to your desired JIRA groups 



    Activating External User Management 

    Since user management is now conducted in JIRA and outside of Confluence, you will need to switch external user management on. 


    Activating external user management will remove user and group management options from Confluence. 
    Your users will also no longer be able to edit their full name or email address inside Confluence. (If they want to, they would have to do so in JIRA). 
    To switch external user management on: 

    Log into Confluence using your JIRA account. 
    Go to the Confluence 'Administration Console'. To do this: 
    Open the 'Browse' menu and select 'Confluence Admin'. The 'Administrator Access' login screen will be displayed. 
    Enter your password and click 'Confirm'. You will be temporarily logged into a secure session to access the 'Administration Console'. 
    Select 'Security Configuration' in the left-hand panel. 
    In the 'Security Configuration' screen, click 'Edit'. 
    Check the 'External user management' checkbox. 
    Click 'Save'. 


    XML切忌不能有中文 
  • 相关阅读:
    Elasticsearch聚合 之 Date Histogram聚合
    Elasticsearch聚合 之 Terms
    Elasticsearch分析聚合
    mysql-聚合函数
    flask学习笔记(-操作数据库)
    在VS中调试javascript脚本
    jquery获取设置input值
    jquery后加Dom绑定事件
    Juicer——a fast template engine
    ASP.NET 一般处理程序
  • 原文地址:https://www.cnblogs.com/iapp/p/3631744.html
Copyright © 2020-2023  润新知