1
回答
Site[oschina] loading plugins fail
【寻找人气王】邀新用户免费体验华为云服务,百元话费等你拿!   

@自风 你好,想跟你请教个问题:

使用下载的源码编译,跑下面这个配置文件,是从你的文档里面拷贝的,但是报Site[oschina] loading plugins fail错误是什么原因呢 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project spiderman-sample: There are test failures.

<?xmlversion="1.0"encoding="UTF-8"?>
<beans>
    <sitename="oschina"url="http://www.oschina.net/question"reqDelay="1s"enable="1"charset="utf-8"schedule="1h"thread="2"waitQueue="10s">
        <queueRulespolicy="and">
            <ruletype="!regex"value="^.*\.(jpg|png|gif).*$"/>
        </queueRules>
        <targets>
            <targetname="deal">
                <urlspolicy="and">
                    <ruletype="regex"value="http://www\.oschina\.net/question/\d+_\d+"/>
                </urls>
                <model>
                    <fieldname="title">
                        <parserxpath="//div[@class='QTitle']/h1/text()"/>
                    </field>
                    <fieldname="content">
                        <parserxpath="//div[@class='Content']//div[@class='detail']"exp="$Tags.xml($output($this)).rm('div').Attrs().rm('style').ok()"/>
                    </field>
                    <fieldname="author">
                        <parserxpath="//div[@class='stat']//a[@target='_blank']/text()"/>
                    </field>
                    <fieldname="tags"isArray="1">
                        <parserxpath="//div[@class='Tags']//a/text()"/>
                    </field>
                    <fieldname="answers"isArray="1">
                        <parserxpath="//li[@class='Answer']//div[@class='detail']/text()"/>
                    </field>
                </model>
            </target>
        </targets>
        <plugins>
            <pluginenable="1"name="spider_plugin"version="0.0.1"desc="这是一个官方实现的默认插件,实现了所有扩展点。">
                <extensions>
                    <extensionpoint="task_poll">
                        <impltype=""value="spiderman.plugin.impl.TaskPollPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="begin">
                        <impltype=""value="spiderman.plugin.impl.BeginPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="fetch">
                        <impltype=""value="spiderman.plugin.impl.FetchPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="dig">
                        <impltype=""value="spiderman.plugin.impl.DigPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="dup_removal">
                        <impltype=""value="spiderman.plugin.impl.DupRemovalPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="task_sort">
                        <impltype=""value="spiderman.plugin.impl.TaskSortPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="task_push">
                        <impltype=""value="spiderman.plugin.impl.TaskPushPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="target">
                        <impltype=""value="spiderman.plugin.impl.TargetPointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="parse">
                        <impltype=""value="spiderman.plugin.impl.ParsePointImpl"sort="0"/>
                    </extension>
                    <extensionpoint="end">
                        <impltype=""value="spiderman.plugin.impl.EndPointImpl"sort="0"/>
                    </extension>
                </extensions>
                <providers>
                    <provider>
                        <orgnizationname=""website=""desc="">
                            <authorname="weiwei"website=""email="l.weiwei@163.com"weibo="http://weibo.com/weiweimiss"desc="一个喜欢自由、音乐、绘画的IT老男孩"/>
                        </orgnization>
                    </provider>
                </providers>
            </plugin>
        </plugins>
    </site>
</beans>

举报
lixiaolongwd
发帖于3年前 1回/179阅
顶部