ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: configuration(s) not found
Date Tue, 06 Nov 2007 21:14:06 GMT
What you are missing is configuration mapping. By default when you declare a
dependency with conf="common", this is exactly the same as if you declared
conf="common->common", in other words you say that the depender common conf
depends on the dependee common conf. But the dependee does not define such a
configuration. What you probably need is something like
conf="common->default" as configuration mapping (depender 'common' conf
depends on dependee 'default' conf). To easily migrate you whole ivy file
you can change the default conf mapping by adding
defaultconfmapping="*->default" on your dependencies element. Then the new
default when you don't specify the right operand of a configuration mapping
will be to use the dependee 'default' conf.

HTH,

Xavier

On 11/6/07, Edward Sumerfield <esumerfd@bitbashers.org> wrote:
>
> New to Ivy but having lots of success. Great product.
>
> My problem is that I must not understand the concept of configurations.
>
> My primary goal is to generate an application.xml file and somehow got
> the idea that configurations would allow me to "tag" my dependent jars
> so that I could xsl the ivy report into the xml file.
>
> I first converted my build over to retrieving all its jars from ivy
> which works fine. When I added the conf tag to the dependencies I got
> the following errors which I don't understand.
>
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]          :: [ javax.security | jaas | 1.0.01 ]:
> configuration(s) not found in [ javax.security | jaas | 1.0.01 ]:
> common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ jdom | jdom | 1.0 ]: configuration(s) not
> found
> in [ jdom | jdom | 1.0 ]: common. It was required from [ com.raytheon
> | IDMSCodeDrop | working@L71058570 ] common
> [ivy:retrieve]          :: [ org.springframework | spring-core | 2.0.7 ]:
> configuration(s) not found in [ org.springframework | spring-core |
> 2.0.7 ]: common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ javax.jws | jsr181-api | 1.0 ]:
> configuration(s)
> not found in [ javax.jws | jsr181-api | 1.0 ]: common. It was required
> from [ com.raytheon | IDMSCodeDrop | working@L71058570 ] common
> [ivy:retrieve]          :: [ commons-logging | commons-logging | 1.0.4 ]:
> configuration(s) not found in [ commons-logging | commons-logging |
> 1.0.4 ]: common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ com.hp.systinet | wasp | 0.0.0 ]:
> configuration(s) not found in [ com.hp.systinet | wasp | 0.0.0 ]:
> common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ ognl | ognl | 2.7.1 ]: configuration(s) not
> found in [ ognl | ognl | 2.7.1 ]: web. It was required from [
> com.raytheon | IDMSCodeDrop | working@L71058570 ] web
> [ivy:retrieve]          :: [ com.bbn | openmap | 4.6.3 ]: configuration(s)
> not found in [ com.bbn | openmap | 4.6.3 ]: web. It was required from
> [ com.raytheon | IDMSCodeDrop | working@L71058570 ] web
> [ivy:retrieve]          :: [ javax.persistence | persistence-api | 1.0 ]:
> configuration(s) not found in [ javax.persistence | persistence-api |
> 1.0 ]: common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ activation | activation | 1.0.2 ]:
> configuration(s) not found in [ activation | activation | 1.0.2 ]:
> common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ org.hibernate | hibernate | 3.2.5.ga ]:
> configuration(s) not found in [ org.hibernate | hibernate | 3.2.5.ga
> ]: common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ com.oracle | ojdbc14 | 10.2.0.1.0XE ]:
> configuration(s) not found in [ com.oracle | ojdbc14 | 10.2.0.1.0XE ]:
> common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ junit | junit | 4.4 ]: configuration(s) not
> found in [ junit | junit | 4.4 ]: common. It was required from [
> com.raytheon | IDMSCodeDrop | working@L71058570 ] common
> [ivy:retrieve]          :: [ groovy | groovy-all | 1.1-rc-1 ]:
> configuration(s) not found in [ groovy | groovy-all | 1.1-rc-1 ]:
> common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ org.easymock | easymock | 2.3 ]:
> configuration(s) not found in [ org.easymock | easymock | 2.3 ]:
> common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ org.springframework | spring-aop | 1.2.6 ]:
> configuration(s) not found in [ org.springframework | spring-aop |
> 1.2.6 ]: common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ servletapi | servletapi | 2.4 ]:
> configuration(s) not found in [ servletapi | servletapi | 2.4 ]: web.
> It was required from [ com.raytheon | IDMSCodeDrop | working@L71058570
> ] web
> [ivy:retrieve]          :: [ org.apache.struts | struts2-core | 2.0.9 ]:
> configuration(s) not found in [ org.apache.struts | struts2-core |
> 2.0.9 ]: web. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] web
> [ivy:retrieve]          :: [ java3d | vecmath | 1.3.1 ]: configuration(s)
> not
> found in [ java3d | vecmath | 1.3.1 ]: web. It was required from [
> com.raytheon | IDMSCodeDrop | working@L71058570 ] web
> [ivy:retrieve]          :: [ commons-httpclient | commons-httpclient | 3.1]:
> configuration(s) not found in [ commons-httpclient |
> commons-httpclient | 3.1 ]: web. It was required from [ com.raytheon |
> IDMSCodeDrop | working@L71058570 ] web
> [ivy:retrieve]          :: [ com.bitbashers | bitbashers-commons | 1.0.0]:
> configuration(s) not found in [ com.bitbashers | bitbashers-commons |
> 1.0.0 ]: common. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] common
> [ivy:retrieve]          :: [ org.jboss | jboss-ejb3x | 4.2.1.GA ]:
> configuration(s) not found in [ org.jboss | jboss-ejb3x | 4.2.1.GA ]:
> ejb. It was required from [ com.raytheon | IDMSCodeDrop |
> working@L71058570 ] ejb
> [ivy:retrieve]          :: [ hsqldb | hsqldb | 1.8.0.7 ]: configuration(s)
> not found in [ hsqldb | hsqldb | 1.8.0.7 ]: common. It was required
> from [ com.raytheon | IDMSCodeDrop | working@L71058570 ] common
> [ivy:retrieve]          :: [ org.hibernate | hibernate-annotations |
> 3.3.0.ga
> ]: configuration(s) not found in [ org.hibernate |
> hibernate-annotations | 3.3.0.ga ]: common. It was required from [
> com.raytheon | IDMSCodeDrop | working@L71058570 ] common
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
>
> IVY file
>
> <ivy-module version="2.0">
>     <info organisation="org.acme" module="MyProject"/>
>
>     <configurations>
>         <conf name="web" description="web layer" />
>         <conf name="common" description="web and ejb layers" />
>         <conf name="ejb" description="ejb layers" />
>     </configurations>
>
>     <dependencies>
>
>         <!--
>           ## Public libraries
>           -->
>         <dependency org="commons-logging" name="commons-logging"
> rev="1.0.4" conf="common"/>
>         <dependency org="ognl" name="ognl" rev="2.7.1" conf="web"/>
>         <dependency org="java3d" name="vecmath" rev="1.3.1" conf="web"/>
>         <dependency org="commons-httpclient" name="commons-httpclient"
> rev="3.1" conf="web"/>
>         <dependency org="jdom" name="jdom" rev="1.0" conf="common"/>
>         <dependency org="org.hibernate" name="hibernate"
> rev="3.2.5.ga" conf="common"/>
>         <dependency org="org.hibernate" name="hibernate-annotations"
> rev="3.3.0.ga" conf="common"/>
>         <dependency org="javax.persistence" name="persistence-api"
> rev="1.0" conf="common"/>
>         <dependency org="servletapi" name="servletapi" rev="2.4"
> conf="web"/>
>         <dependency org="org.apache.struts" name="struts2-core"
> rev="2.0.9" conf="web"/>
>         <dependency org="com.oracle" name="ojdbc14" rev="10.2.0.1.0XE"
> conf="common"/>
>         <dependency org="groovy" name="groovy-all" rev="1.1-rc-1"
> conf="common"/>
>         <dependency org="hsqldb" name="hsqldb" rev="1.8.0.7"
> conf="common"/>
>         <dependency org="junit" name="junit" rev="4.4" conf="common"/>
>         <dependency org="org.springframework" name="spring-core"
> rev="2.0.7" conf="common"/>
>         <dependency org="org.springframework" name="spring-aop"
> rev="1.2.6" conf="common"/>
>         <dependency org="org.easymock" name="easymock" rev="2.3"
> conf="common"/>
>         <dependency org="javax.security" name="jaas" rev="1.0.01"
> conf="common"/>
>
>         <!--
>           ## 3rdParty shared libraries
>           -->
>         <dependency org="activation" name="activation" rev="1.0.2"
> conf="common"/>
>         <dependency org="com.bbn" name="openmap" rev="4.6.3" conf="web"/>
>         <dependency org="com.bitbashers" name="bitbashers-commons"
> rev="1.0.0" conf="common"/>
>         <dependency org="com.hp.systinet" name="wasp" rev="0.0.0"
> conf="common"/>
>         <dependency org="javax.jws" name="jsr181-api" rev="1.0"
> conf="common"/>
>         <dependency org="org.jboss" name="jboss-ejb3x" rev="4.2.1.GA"
> conf="ejb"/>
>
>     </dependencies>
> </ivy-module>
>
>
>
> --
> Ed
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

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