CruiseControlException:未知插件:<users> </users>

时间:2012-04-30 18:54:26

标签: cruisecontrol

我正在尝试在Cruise Control中设置一些群组电子邮件通知,我一直在遵循我发现的许多示例模式:

<htmlemail mailhost="${mail.host}" subjectprefix="${mail.subject.prefix}" returnaddress="${mail.address.return}"
                    buildresultsurl="${build.url}/${project.name}" css="${css.location}" xsldir="${xsl.dir}"
                    xslfilelist="header.xsl,buildresults.xsl" returnname="${return.name}" skipusers="false" spamwhilebroken="false"
                    username="${cc.mail.username}" password="${cc.mail.password}" usessl="true" mailport="465" >
    <users>
        <user name="svnUser" group="buildmaster" address="${mail.address.buildmanager}"/>
    </users>
    <groups>
        <group name="buildmaster" >
            <notifications>
                <notificationType>Always</notificationType>
            </notifications>
        </group>                
    </groups>       
</htmlemail>

当我启动CC时,我得到以下异常:

....
Caused by: net.sourceforge.cruisecontrol.CruiseControlException: Unknown plugin for: <users>
    at net.sourceforge.cruisecontrol.ProjectXMLHelper.configurePlugin(ProjectXMLHelper.java:106)
....

我认为去年有人遇到了同样的问题,但错误无法解决:

Setting up email notifications on cruise control

这似乎是一件很简单的事情吗?有没有人能够了解为什么会发生这种异常?

1 个答案:

答案 0 :(得分:0)

您必须使用<email />

的地图子元素

像:

<map alias="mag82" adress="mail@test.com"/>

其中别名是svn用户名。