can't get this to work somehow...this is my scenario:
I publish the eb_common_server.jar with the following ivy.xml

<ivy-module version="1.0">
        <info organisation="rtc" module="eb_common_server"
revision="0.1" />
        <configurations>
        <conf name="with-deps" description="necessary for runtime"/>
        <conf name="no-deps" />
        <conf name="test" />
    </configurations>
        <publications>
                <artifact name="eb_common_server" type="jar" />
        </publications>
        
        <dependencies>
                <dependency org="javax.xml" name="jaxb-impl" rev="2.1"
conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-api" rev="2.1"
conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-xjc" rev="2.1"
conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-resolver"
rev="2.1" conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-serializer"
rev="2.1" conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-xalan" rev="2.1"
conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-xercesImpl"
rev="2.1" conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-xml-apis"
rev="2.1" conf="with-deps->default"/>
                <dependency org="javax.xml" name="jaxb-xsltc" rev="2.1"
conf="with-deps->default"/>
                <dependency org="javax.xml" name="stream" rev="1.0"
conf="with-deps->default"/>
                <dependency org="jdepend" name="jdepend" rev="2.9"
conf="with-deps->default"/>
                <dependency org="javax.activation" name="activation"
rev="1.1" conf="with-deps->default"/>
                <dependency org="org.springframework" name="spring"
rev="2.0.6" conf="with-deps->default"/>
                <dependency org="org.springframework" name="spring-mock"
                        rev="2.0.6" conf="with-deps->default"/>
        </dependencies>

</ivy-module>

that works alright, it seems...but when I reference the dependency like
this:

<ivy-module version="1.0">
        <info organisation="rtc" module="eb_webclient" revision="1.0"/>
        <dependencies>
                <dependency name="eb_common_server"  rev="0.1"
conf="default->with-deps"/>
        </dependencies>
</ivy-module>

it gives me this error


[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: [ rtc | eb_common_server | 0.1 ]: configuration(s) not
found in [ rtc | eb_common_server | 0.1 ]: with-deps. It was required
from [ rtc | eb_webclient | 1.0 ] default

if ommit the conf part like this:

<ivy-module version="1.0">
        <info organisation="rtc" module="eb_webclient" revision="1.0"/>
        <dependencies>
                <dependency name="eb_common_server"  rev="0.1" />
        </dependencies>
</ivy-module>

then I only get the eb_common_server-0.1.jar file

I publish with this ant task:

<target name="publishJar" depends="clean,jar">
                <ivy:publish overwrite="true" update="true"
resolver="internal" organisation="${module.organisation}"
module="${module.name}" revision="${module.revision}">
                        <artifacts pattern="../target/[artifact].[ext]"
/>
                </ivy:publish>
        </target>

and I use this ivy-settings.xml:

<ivysettings>
        <settings defaultCache="../target/ivy-cache"
defaultResolver="build-repository"
                checkUpToDate="false" />
        <resolvers>
                <chain name="build-repository" returnFirst="false">
                        <filesystem name="internal"
checkmodified="true">
                                <artifact
        
pattern="../../eb_common/repository/[organisation]/[module]/jars/[module
]-[revision].[ext]" />
                        </filesystem>
                        <filesystem name="localMaven"
m2compatible="true" checkmodified="true">
                                <artifact
        
pattern="${ivy.default.ivy.user.dir}/../.m2/repository/[organisation]/[m
odule]/[revision]/[module]-[revision].[ext]" />
                        </filesystem>
                </chain>
        </resolvers>
</ivysettings>

another thing that is worth mentioning is that I'm working behind a
restrictive firewall, so use only local repos.
Any suggestions?

Reply via email to