ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rod Mackenzie <rod.n.macken...@googlemail.com>
Subject Re: IvyDE - Is it possible to have it download sources & javadocs?
Date Tue, 03 Mar 2009 23:06:23 GMT
Hi Kent,

I got this working by adding the following configurations

        <conf name="sources"/>
        <conf name="javadoc"/>

Then added configuration mappings to the dependencies, I'm still
learning about Ivy so I don't know if there is a better way.
        <dependency org="junit" name="junit" rev="${junit.version}"

conf="test->default;sources->sources;javadoc->javadoc"/>

One other thing I had to do was clean the Ivy cache. The source and
javadocs configurations weren't  in the version of junit ivy file in
the cache. IvyDE wasn't much help resolving this as it only gave a
parse error when reading the Ivy file I had look at the Ant output to
see the problem.

This should hopefully work but only for sources I think there is a
known bug with javadocs.

regards,
Rod


2009/3/3 Kent Larsson <kent.larsson@gmail.com>:
> Hi,
>
> My question really is in the subject. I tried posting earlier about
> this issue, that time with screenshots of my settings, but I didn't
> have any luck in getting a response. So I'm trying again. :-)
>
> My follow up question is how do I get it to integrate sources and
> javadocs in Eclipse?
>
> Here is my ivy.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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="net.mycompany"
>          module="webcookie"
>          status="integration"/>
>        <configurations>
>                <conf name="runtime" description="" />
>                <conf name="compile" extends="runtime" description="" />
>        </configurations>
>        <dependencies>
>                <dependency org="org.apache.wicket" name="wicket" rev="1.3.5"
> conf="runtime->runtime">
>                        <exclude org="org.apache.portals.bridges" module="portals-bridges-common"/>
>                        <exclude org="javax.portlet" module="portlet-api"/>
>                </dependency>
>                <dependency org="org.apache.wicket" name="wicket-spring-annot"
> rev="1.3.5" conf="runtime->default"/>
>                <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.5.6"
> conf="runtime->default"/>
>                <dependency org="org.slf4j" name="jcl-over-slf4j" rev="1.5.6"
> conf="runtime->default"/>
>                <dependency org="javax.servlet" name="servlet-api" rev="2.5"
> conf="compile->provided"/>
>                <dependency org="org.springframework" name="spring" rev="2.5.6"
> conf="runtime->runtime"/>
>                <dependency org="mysql" name="mysql-connector-java" rev="5.1.6"
> conf="runtime->default"/>
>                <dependency org="org.hibernate" name="hibernate-core" rev="3.3.1.GA"
> conf="runtime->runtime,optional"/>
>                <dependency org="org.hibernate" name="hibernate-annotations"
> rev="3.4.0.GA" conf="runtime->default"/>
>                <exclude module="commons-logging"/>
>        </dependencies>
> </ivy-module>
>
> I don't use any ivysettings.xml and I use the default settings for
> IvyDE. Still no Javadoc or sources and I would really like to enable
> them. :-/
>
> Best regards, Kent
>

Mime
View raw message