ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Kuznetsov <heaven-se...@yandex.ru>
Subject How to prevent IvyDE from fetching javadocs and sources then they're blocked in ivy.xml?
Date Sat, 22 Dec 2012 08:00:08 GMT
Hi, guys.

I have sample ivy.xml from "hello-ivy" project:

<ivy-module version="2.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">

    <info organisation="org.apache" module="hello-ivy" />
    <dependencies>

        <dependency org="commons-lang" name="commons-lang" rev="2.0" />
        <dependency org="commons-cli" name="commons-cli" rev="1.0" />

        <exclude type="source" ext="*" conf="*" />
        <exclude type="javadoc" ext="*" conf="*" />
        <exclude type="license" ext="*" conf="*" />

    </dependencies>

</ivy-module>

Starting it with ant from command line, i'm getting only binary libs and 
no sources/javadocs downloaded into ivy cache. The console output looks 
like following(note that being-invoked-by-ant ivy downloads only the 
binary jars, prints report and STOPS after that):

    [ivy:retrieve] :: resolving dependencies ::
    org.apache#hello-ivy;working@Void
    [ivy:retrieve]     confs: [default]
    [ivy:retrieve]     found commons-lang#commons-lang;2.0 in public
    [ivy:retrieve]     found commons-cli#commons-cli;1.0 in public
    [ivy:retrieve]     found commons-logging#commons-logging;1.0 in public
    [ivy:retrieve] downloading
    http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0.jar
    ...
    [ivy:retrieve] ..................... (165kB)
    [ivy:retrieve] .. (0kB)
    [ivy:retrieve]     [SUCCESSFUL ]
    commons-lang#commons-lang;2.0!commons-lang.jar (611ms)
    [ivy:retrieve] downloading
    http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
    ...
    [ivy:retrieve] .... (29kB)
    [ivy:retrieve] .. (0kB)
    [ivy:retrieve]     [SUCCESSFUL ]
    commons-cli#commons-cli;1.0!commons-cli.jar (170ms)
    [ivy:retrieve] downloading
    http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0/commons-logging-1.0.jar
    ...
    [ivy:retrieve] .... (21kB)
    [ivy:retrieve] .. (0kB)
    [ivy:retrieve]     [SUCCESSFUL ]
    commons-logging#commons-logging;1.0!commons-logging.jar (100ms)
    [ivy:retrieve] :: resolution report :: resolve 2764ms :: artifacts
    dl 891ms
    [ivy:retrieve]     :: evicted modules:
    [ivy:retrieve]     commons-lang#commons-lang;1.0 by
    [commons-lang#commons-lang;2.0] in [default]
    ---------------------------------------------------------------------
         |                  |            modules            || artifacts   |
         |       conf       | number| search|dwnlded|evicted||
    number|dwnlded|
    ---------------------------------------------------------------------
         |      default     |   4   |   3   |   3   |   1   ||   3 |   3   |
    ---------------------------------------------------------------------
    [ivy:retrieve] :: retrieving :: org.apache#hello-ivy
    [ivy:retrieve]     confs: [default]
    [ivy:retrieve]     0 artifacts copied, 3 already retrieved (0kB/80ms)

    run:
          [java] standard message : hello ivy !

But things strongly differ when i invoke ivy through IvyDE. In spite 
retrieving javadoc and source packs is EXPLICITLY BLOCKED in ivy.xml, 
ivy downloads them IGNORING those user settings(ivy console output):

    :: resolving dependencies :: KDV#PricinatorV1;working@Void
         confs: [runtime]
         found commons-lang#commons-lang;2.0 in public
         found commons-cli#commons-cli;1.0 in public
         found commons-logging#commons-logging;1.0 in public
    downloading
    http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0.jar
    ...
         [SUCCESSFUL ] commons-lang#commons-lang;2.0!commons-lang.jar
    (250ms)
    downloading
    http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
    ...
         [SUCCESSFUL ] commons-cli#commons-cli;1.0!commons-cli.jar (91ms)
    downloading
    http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0/commons-logging-1.0.jar
    ...
         [SUCCESSFUL ]
    commons-logging#commons-logging;1.0!commons-logging.jar (70ms)
    :: resolution report :: resolve 340ms :: artifacts dl 431ms
         :: evicted modules:
         commons-lang#commons-lang;1.0 by
    [commons-lang#commons-lang;2.0] in [runtime]
    ---------------------------------------------------------------------
         |                  |            modules            || artifacts   |
         |       conf       | number| search|dwnlded|evicted||
    number|dwnlded|
    ---------------------------------------------------------------------
         |      runtime     |   4   |   3   |   3   |   1   ||   3 |   3   |
    ---------------------------------------------------------------------
    downloading
    http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-sources.jar
    ...
         [SUCCESSFUL ]
    commons-lang#commons-lang;2.0!commons-lang.jar(source) (380ms)
    downloading
    http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-javadoc.jar
    ...
         [SUCCESSFUL ]
    commons-lang#commons-lang;2.0!commons-lang.jar(javadoc) (581ms)
    downloading
    http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0-sources.jar
    ...
         [SUCCESSFUL ]
    commons-cli#commons-cli;1.0!commons-cli.jar(source) (90ms)
    downloading
    http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0-javadoc.jar
    ...
         [SUCCESSFUL ]
    commons-cli#commons-cli;1.0!commons-cli.jar(javadoc) (160ms)
    downloading
    http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0/commons-logging-1.0-javadoc.jar
    ...
         [SUCCESSFUL ]
    commons-logging#commons-logging;1.0!commons-logging.jar(javadoc) (121ms)

Obviously, IvyDE should process ivy.xml-s in exactly the same way, as 
standalone ivy does.
But it doesn't...

So how can i force the default behavior in IvyDE?

Thanks,
Dmitriy.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message