奇怪的常春藤错误消息

时间:2010-01-04 16:51:25

标签: ant ivy

我正在使用ant和maven来构建一个多模块项目。到目前为止一切正常,但现在常春藤抱怨它发现了一个“坏模块”。

java.text.ParseException: inconsistent module descriptor file found 
in 'XYZ.ivy.xml': bad module found in XYZ.ivy.xml: expected='true' found='null';

我不知道常春藤想用这个消息告诉我什么,也许其他人可以吗? 常春藤xml:

<?xml version="1.0" encoding="UTF-8"?>
    <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:e="http://ant.apache.org/ivy/extra" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">

    <info organisation="xyz" module="ebusiness-core" revision="1.0" status="integration" publication="20100104174318" e:package="jar"/>

    <configurations>
                <conf name="default" visibility="public" extends="runtime,master"/>
                <conf name="master" visibility="public" />
                <conf name="compile" visibility="public" />
                <conf name="provided" visibility="public" />
                <conf name="runtime" visibility="public" extends="compile"/>
                <conf name="test" visibility="private extends="runtime"/>
                <conf name="system" visibility="public" />
                <conf name="sources" visibility="public"/>
                <conf name="javadoc" visibility="public" "/>
                <conf name="optional" visibility="public"/>
    </configurations> 

    <publications>
        <artifact conf="sources" ext="jar" type="source"/>
        <artifact conf="javadoc" ext="jar" type="javadoc"/>
        <artifact conf="default" ext="jar"/>
    </publications>

    <dependencies defaultconf="compile->default">
        <dependency org="junit" name="junit" rev="4.5"/>

        <dependency org="zak-components" name="zak-components" rev="1.0"/>

        <dependency org="commons-collections" name="commons-collections" rev="3.2.1"/>

        <dependency org="net.sf.dozer" name="dozer" rev="3.4"/>

        <dependency org="org.springframework" name="spring" rev="2.0.2" transitive="false">
            <exclude module="jsf-api "/>
        </dependency>

        <dependency name="velocity" org="velocity" rev="1.4"/>

        <dependency name="mail" org="javax.mail" rev="1.4" conf="provided->default"/>

        <dependency org="org.mortbay.jetty" name="servlet-api-2.5" rev="6.1.14" conf="provided->default"/>

        <dependency org="org.acegisecurity" name="acegi-security" rev="1.0.1">
            <exclude org="org.springframework"/>
            <exclude org="tomcat"/>
        </dependency>

        <dependency org="dom4j" name="dom4j" rev="1.6.1"/>
        <dependency org="xalan" name="xalan" rev="2.5.1"/>
        <dependency org="log4j" name="log4j" rev="1.2.14"/>

        <dependency org="org.hibernate" name="hibernate" rev="3.2.6.ga">
            <exclude org="javax.transaction"/>
        </dependency>

        <dependency name="myfaces-api" org="org.apache.myfaces.core" rev="1.1.5">
            <exclude org="javax.mail"/>
            <exclude org="javax.resource"/>
        </dependency>


        <dependency org="commons-logging" name="commons-logging" rev="1.1.1"/>

        <exclude org="javax.ejb"/>
        <exclude org="javax.jms"/>
        <exclude org="com.bea"/>
        <exclude org="com.oracle"/>
        <exclude org="javax.activation"/>
        <exclude org="javax.ejb"/>
        <exclude module="commonj-twm"/>
        <exclude module="asm-util"/>
        <exclude module="commons-attributes-compiler"/>
        <exclude org="com.oracle"/>
        <exclude org="org.apache.geronimo.specs"/>
        <exclude org="openejb"/>
        <exclude org="javax.portlet"/>
        <exclude org="geronimo-spec"/>      
        <!-- exclude org=" javax.faces" module="jsf-api"/-->
    </dependencies>
</ivy-module>

1 个答案:

答案 0 :(得分:0)

我的愚蠢。它是第二个存储库中的旧ivy.xml; - )