we have a large ant-based project that is presently just referencing a shared 
directory for it's dependencies. we'd like use ivy to better manage those 
dependencies.

some of our dependencies are already in standard repos, but some of them 
aren't. we just have a JAR file that we did not build and cannot build. so i 
was looking for something like "mvn install:install-file ..." to "publish" the 
JAR into the ivy local cache. eventually these dependencies will be in a 
well-defined maven repo, but that is a lot of overhead just to do a proof of 
concept w/ ivy ...

i've tried quite a few variations on this and i can't seem to find anything in 
ivy that will let me do this easily. i've attached two files, publish.xml and 
dsame-ivy.xml that are supposed to be doing the task. when i run it, i get:

publish:
[ivy:configure] Loading 
jar:file:/home/jtb/.ivy/jars/ivy.jar!/fr/jayasoft/ivy/ivy.properties
[ivy:configure] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/ ::
[ivy:configure] :: configuring :: file = 
/home/jtb/src/ps.trunk/buildutil/dsame-ivy.xml
[ivy:publish] :: publishing :: [ com.sun.dsame | sdk ]

BUILD FAILED
/home/jtb/src/ps.trunk/buildutil/publish.xml:16: impossible to publish 
artifacts for [ com.sun.dsame | sdk | 7.0 ]: 
java.lang.IllegalArgumentException: unknown resolver local

any ideas?

        
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  
<project default="publish" xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
    <import file="common.xml"/>
    <import file="PSExternalDependencies.xml"/>
    
    <target name="publish" depends="init-ivy">
        <tstamp>
            <format property="pubdate" pattern="yyyyMMddHHmmss"/>
        </tstamp>
        <ivy:configure file="dsame-ivy.xml"/>
        <ivy:publish resolver="local"
                     organisation="com.sun.dsame"
                     module="sdk"
                     revision="7.0"
                     pubdate="${pubdate}"
                     status="integration"
        >
            <artifacts pattern="${dsame}/am_sdk.jar" />
        </ivy:publish> 
    </target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="1.3">
    <info 
        organisation="com.sun.dsame"
        module="sdk"
        revision="7.0"
        status="integration"/>
    <publications>
        <artifact name="am_sdk" type="jar"/>
    </publications>
</ivy-module>

Reply via email to