二.修改D:\jira\atlassian-jira-enterprise-4.2.4\conf\server.xml
再 <Host name="localhost" 里面追加
- <Context path="/wiki" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
- <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
- <Manager pathname="" />
- </Context>
至此app集成完成
三.MySql的集成
在wiki的context
里加入
- <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
- username="root"
- password="0"
- driverClassName="com.mysql.jdbc.Driver"
- url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/>
参考资料http://confluence.atlassian.com/display/CONF34/Delegate+user+management+to+use+JIRA+logins
找到/confluence/WEB-INF/classes下的 osuser.xml 文件
注释掉 一下代码
- <provider class="bucket.user.providers.CachingCredentialsProvider">
- <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateCredentialsProvider</property>
- <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property>
- </provider>
- <provider class="bucket.user.providers.CachingAccessProvider">
- <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateAccessProvider</property>
- <property name="chain.configuration.provider.class">bucketuser.BucketHibernateConfigProvider</property>
- </provider>
- <provider class="bucket.user.providers.CachingProfileProvider">
- <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateProfileProvider</property>
- <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property>
- </provider>
反注释 以下代码块
- <provider class="bucket.user.providers.CachingCredentialsProvider">
- <property name="chain.classname">com.atlassian.confluence.user.providers.jira.JiraJdbcCredentialsProvider</property>
- <property name="chain.datasource">java:comp/env/jdbc/JiraDS</property>
- </provider>
- <provider class="bucket.user.providers.CachingAccessProvider">
- <property name="chain.classname">com.atlassian.confluence.user.providers.jira.JiraJdbcAccessProvider</property>
- <property name="chain.datasource">java:comp/env/jdbc/JiraDS</property>
- </provider>
- <provider class="bucket.user.providers.CachingProfileProvider">
- <property name="chain.classname">com.atlassian.confluence.user.providers.jira.JiraJdbcProfileProvider</property>
- <property name="chain.datasource">java:comp/env/jdbc/JiraDS</property>
- <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property>
- </provider>
JiraDS 是在 Confluence里面 JIRA 的 datasource
修改 D:\jira\atlassian-jira-enterprise-4.2.4\confluence\WEB-INF\classes\atlassian-user.xml
注释掉以下代码
- <hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/>
同时加入
- <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切忌不能有中文