ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bourzeix, Hervé <>
Subject RE: (ivy 1.4) compiling fails while resolution is fine
Date Wed, 28 Mar 2007 07:10:36 GMT
Hello Cecile, 

as I am pretty sure you double check the javac source/classpath used, have you double check
the general.api jar is correct? (contains what it should contains). Last word, successful
resolution do not means it will compile...


-----Original Message-----
From: Cecile []
Sent: mercredi 28 mars 2007 06:27
Subject: (ivy 1.4) compiling fails while resolution is fine


I have an app.api project that depends on general.api.

My "app.api" ivy.xml file looks like this:

        <conf name="bundle" />
        <conf name="compile" />
        <conf name="localdir" />
        <conf name="private_compile" visibility="private" />
        <conf name="runtime" visibility="private" />
        <conf name="test" visibility="private" />

        <artifact name="app.api" type="jar" conf="bundle,compile" />

    <dependencies defaultconf="private_compile->compile">
        <dependency name="general.api" rev="latest.integration" />
        ... other dependencies ...

Note that if I type "ant resolve", everything is fine.
In my provide_compile directory, I do see general.api.jar being downloaded.

But when I run "ant compile" on "app.api", I get errors like:

    [javac] C:\_programs\workspace\app.api\src\java\app\api\
cannot find symbol
    [javac] symbol  : constructor DbStuff( int )
    [javac] location: general.api.DbStuff
    [javac]         return new DbStuff( int );

Note that general.api.jar exports DbStuff.

Any tips on how to debug this classpath issue ?

Merci à tous.

View raw message