首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven -部署Cobertura报告到Confluence Wiki

Maven -部署Cobertura报告到Confluence Wiki
EN

Stack Overflow用户
提问于 2014-10-07 09:58:51
回答 1查看 441关注 0票数 0

我正在使用名为maven- Confluence -reporting-plugin的插件,以便将我的文档直接部署到Confluence Wiki上。这是很好的工作,它已经正确地映射/链接到默认站点阶段。基本上,我跟踪了这些指令

现在我想整合一份科伯图拉报告,也有它在汇合处,或至少我想有一个链接到从汇合处获得的Cobertura报告。

有人已经这么做了吗?

基本上,现在我可以:

  • 要么创建一个集成了Cobertura报告的标准Maven站点。
  • 要么把我的网站部署在汇合处,但没有科伯图拉报告。

我想:

  • 可从汇合处获得Cobertura报告。

目前,我的pom.xml中有这样的内容:

代码语言:javascript
复制
            <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
            <version>3.0</version>
            <configuration>
                <reportPlugins>
                    <plugin>
                        <groupId>org.bsc.maven</groupId>
                        <artifactId>maven-confluence-reporting-plugin</artifactId>
                        <version>3.3.0-beta3</version>
                        <reportSets>
                            <reportSet>
                                <id>confluence</id>
                                <configuration>
                                    <endPoint>http://localhost:8090/rpc/xmlrpc</endPoint>
                                    <spaceKey>REP</spaceKey>
                                    <parentPageTitle>Home</parentPageTitle>
                                    <title>myFirstTest</title>
                                    <labels>
                                        <label>test</label>
                                        <label>confluence</label>
                                    </labels>
                                    <templateWiki>${basedir}/src/site/confluence/template.confluence</templateWiki>
                                    <wikiFilesExt>.confluence</wikiFilesExt>
                                    <serverId>confluence</serverId>
                                    <properties>
                                        <prop>the_text_value</prop><!-- SIMPLE TEXT -->
                                        <prop1>classpath:plugin-report.properties</prop1><!-- FROM CLASSPATH -->
                                        <prop2>file://${basedir}/confluence.html</prop2><!-- FROM FILE 
                                            SYSTEM -->
                                    </properties>
                                </configuration>
                                <reports>
                                    <report>confluence-summary</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>

我不知道如何在上面添加Cobertura插件。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-14 21:22:46

首先,我建议您遵循文档这里,因为从4.x开始,插件可以不用连接到站点阶段就可以使用(我必须更新codehaus )

第二,请记住,这个插件部署到汇合,页面已经以wiki格式,所以我认为更好的方式是

  1. 生成和部署cobertura报告
  2. 放入您的wiki页面链接到这样的网站。
  3. 使用目标汇合点部署到汇合处-报告:部署
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26233377

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档