Re: Differences in retrieve pattern between Ivy 2.5.0/2.5.1 & 2.5.2?
Thanks for this guidance Stefan :) I was able to get a patch together at https://github.com/apache/nutch/pull/803 Hopefully this helps others who may be confused as I was. Thank you lewsmc On 2024/03/12 18:57:51 Stefan Bodewig wrote: > On 2024-03-11, lewis john mcgibbney wrote: > > > I am working on upgrading Ivy to latest over in the Apache Nutch project. > > The build works just fine with 2.5.0 and 2.5.1 but with 2.5.2 the CI > > fails with the following complaint > > > /home/runner/work/nutch/nutch/src/plugin/build-plugin.xml:234: > > impossible to ivy retrieve: java.lang.RuntimeException: problem during > > retrieve of org.apache.nutch#lib-htmlunit: java.lang.RuntimeException: > > Multiple artifacts of the module > > io.netty#netty-transport-native-kqueue;4.1.84.Final are retrieved to > > the same file! Update the retrieve pattern to fix this error. > > Ivy 2.5.2 fixes a bug[1] when dealing with dependencies that have > multiple Maven artifacts with different Maven classifiers. Prior to > 2.5.2 Ivy would think they'd all be the same and just pick one. > > io.netty#netty-transport-native-kqueue has several artifacts, at least > this is what the repo looks like. I completely fail to understand the > POM :-) > > Your pattern probably needs a [classifier] to make sure two artifacts > that differ by Maven classifier also target different file names. > > Something like > > pattern="${local-maven2-dir}/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" > > Stefan > > [1] https://issues.apache.org/jira/browse/IVY-1642 >
Differences in retrieve pattern between Ivy 2.5.0/2.5.1 & 2.5.2?
Hi ivy-user@, I am working on upgrading Ivy to latest over in the Apache Nutch project. The build works just fine with 2.5.0 and 2.5.1 but with 2.5.2 the CI fails with the following complaint /home/runner/work/nutch/nutch/src/plugin/build-plugin.xml:234: impossible to ivy retrieve: java.lang.RuntimeException: problem during retrieve of org.apache.nutch#lib-htmlunit: java.lang.RuntimeException: Multiple artifacts of the module io.netty#netty-transport-native-kqueue;4.1.84.Final are retrieved to the same file! Update the retrieve pattern to fix this error. I’m not sure what to do here… any ideas would be appreciated. The Nutch ivysettings.xml van be found at https://github.com/apache/nutch/blob/master/ivy/ivysettings.xml Thanks for any assistance. lewismc -- http://home.apache.org/~lewismc/ http://people.apache.org/keys/committer/lewismc
Re: Working with SNAPSHOT's
Hi Christoph, Can you verify your ivysettings.xml for me please? I am keen to find if my settings are incorrect. Thank you very m uch for reply. Best Lewis On Mon, Oct 20, 2014 at 1:47 AM, Christoph John christoph.j...@macd.com wrote: Hi, we are using ivy 2.3.0 with SNAPSHOT dependencies and also use it the way you said, i.e. rev=x.y-SNAPSHOT and changing=true. Cheers, Chris. On 17/10/14 20:20, Lewis John Mcgibbney wrote: Hi Folks, Does anyone work with Maven SNAPSHOT within Ivy configuration? Thank you Lewis On Sat, Oct 11, 2014 at 4:24 PM, Lewis John Mcgibbney lewis.mcgibb...@gmail.com wrote: Hi Folks, I have been attempting to work with maven SNAPSHOT's [0] in my Ivy settings [1]. I 'thought' [2] that this was resolved, but it would appear that it is no longer working! I have added a note that in order to use the Maven SNAPSHOT's [3] I should replace the 'rev' with the 0.X-SNAPSHOT version then add change=true... this is just now working and I am stumped having poured hours into this one. Can anyone please help me out? I am VERY keen to add further documentation on how we can get Ivy working better with Maven SNAPSHOT's. I am using Ivy 2.2.0. Thank you very much in advance for any help here. Best Lewis [0] https://github.com/apache/nutch/blob/2.x/ivy/ivy.xml#L103 [1] https://github.com/apache/nutch/blob/2.x/ivy/ivysettings.xml#L35 [2] https://issues.apache.org/jira/browse/NUTCH-1696 [3] https://repository.apache.org/content/repositories/ snapshots/org/apache/gora/ -- *Lewis* -- Christoph John Development Support Direct: +49 241 557080-28 Mailto:christoph.j...@macd.com http://www.macd.com http://www.macd.com/ MACD GmbH Oppenhoffallee 103 D-52066 Aachen Tel: +49 241 557080-0 | Fax: +49 241 557080-10 Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald take care of the environment - print only if necessary -- *Lewis*
Re: Working with SNAPSHOT's
Fantastic, I will scope this out, try it and get back to you with exactly what it was the made this work. Thank you Lewis On Mon, Oct 20, 2014 at 7:30 AM, Christoph John christoph.j...@macd.com wrote: Hi Lewis, I think the interesting part is the resolvers: --- ivysettings properties file=macd.properties / caches name=m2-cache defaultCacheDir=${ivy.defaultCacheDir} / settings defaultResolver=macd-nexus / resolvers ibiblio name=macd-nexus m2compatible=true root=${ivy.macd.nexus.url} changingMatcher=regexp changingPattern=.*SNAPSHOT.* checkmodified=true / filesystem name=m2-local-repository m2compatible=true local=true changingMatcher=regexp changingPattern=.*SNAPSHOT.* checkmodified=true artifact pattern=${ivy.m2.local.dir}/[organisation]/[module]/[revision]/[module]-[revision].[ext] / ivy pattern=${ivy.m2.local.dir}/[organisation]/[module]/[revision]/[module]-[revision].pom / /filesystem chain name=macd-local-nexus resolver ref=m2-local-repository / resolver ref=macd-nexus / /chain /resolvers /ivysettings --- Hope that helps. Cheers, Chris. On 20/10/14 16:06, Lewis John Mcgibbney wrote: Hi Christoph, Can you verify your ivysettings.xml for me please? I am keen to find if my settings are incorrect. Thank you very m uch for reply. Best Lewis On Mon, Oct 20, 2014 at 1:47 AM, Christoph John christoph.j...@macd.com wrote: Hi, we are using ivy 2.3.0 with SNAPSHOT dependencies and also use it the way you said, i.e. rev=x.y-SNAPSHOT and changing=true. Cheers, Chris. On 17/10/14 20:20, Lewis John Mcgibbney wrote: Hi Folks, Does anyone work with Maven SNAPSHOT within Ivy configuration? Thank you Lewis On Sat, Oct 11, 2014 at 4:24 PM, Lewis John Mcgibbney lewis.mcgibb...@gmail.com wrote: Hi Folks, I have been attempting to work with maven SNAPSHOT's [0] in my Ivy settings [1]. I 'thought' [2] that this was resolved, but it would appear that it is no longer working! I have added a note that in order to use the Maven SNAPSHOT's [3] I should replace the 'rev' with the 0.X-SNAPSHOT version then add change=true... this is just now working and I am stumped having poured hours into this one. Can anyone please help me out? I am VERY keen to add further documentation on how we can get Ivy working better with Maven SNAPSHOT's. I am using Ivy 2.2.0. Thank you very much in advance for any help here. Best Lewis [0] https://github.com/apache/nutch/blob/2.x/ivy/ivy.xml#L103 [1] https://github.com/apache/nutch/blob/2.x/ivy/ivysettings.xml#L35 [2] https://issues.apache.org/jira/browse/NUTCH-1696 [3] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/ -- *Lewis* -- Christoph John Development Support Direct: +49 241 557080-28 Mailto:christoph.j...@macd.com http://www.macd.com http://www.macd.com/ MACD GmbH Oppenhoffallee 103 D-52066 Aachen Tel: +49 241 557080-0 | Fax: +49 241 557080-10 Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald take care of the environment - print only if necessary -- *Lewis* -- Christoph John Development Support Direct: +49 241 557080-28 Mailto:christoph.j...@macd.com http://www.macd.com -- -- MACD GmbH Oppenhoffallee 103 D-52066 Aachen Tel: +49 241 557080-0 | Fax: +49 241 557080-10 Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald -- -- take care of the environment - print only if necessary -- *Lewis*
Re: Working with SNAPSHOT's
This works a dream. It looks like it was my resolver that was off. Thank you for reply. Very much appreciated. best Lewis On Mon, Oct 20, 2014 at 7:32 AM, Lewis John Mcgibbney lewis.mcgibb...@gmail.com wrote: Fantastic, I will scope this out, try it and get back to you with exactly what it was the made this work. Thank you Lewis On Mon, Oct 20, 2014 at 7:30 AM, Christoph John christoph.j...@macd.com wrote: Hi Lewis, I think the interesting part is the resolvers: --- ivysettings properties file=macd.properties / caches name=m2-cache defaultCacheDir=${ivy.defaultCacheDir} / settings defaultResolver=macd-nexus / resolvers ibiblio name=macd-nexus m2compatible=true root=${ivy.macd.nexus.url} changingMatcher=regexp changingPattern=.*SNAPSHOT.* checkmodified=true / filesystem name=m2-local-repository m2compatible=true local=true changingMatcher=regexp changingPattern=.*SNAPSHOT.* checkmodified=true artifact pattern=${ivy.m2.local.dir}/[organisation]/[module]/[revision]/[module]-[revision].[ext] / ivy pattern=${ivy.m2.local.dir}/[organisation]/[module]/[revision]/[module]-[revision].pom / /filesystem chain name=macd-local-nexus resolver ref=m2-local-repository / resolver ref=macd-nexus / /chain /resolvers /ivysettings --- Hope that helps. Cheers, Chris. On 20/10/14 16:06, Lewis John Mcgibbney wrote: Hi Christoph, Can you verify your ivysettings.xml for me please? I am keen to find if my settings are incorrect. Thank you very m uch for reply. Best Lewis On Mon, Oct 20, 2014 at 1:47 AM, Christoph John christoph.j...@macd.com wrote: Hi, we are using ivy 2.3.0 with SNAPSHOT dependencies and also use it the way you said, i.e. rev=x.y-SNAPSHOT and changing=true. Cheers, Chris. On 17/10/14 20:20, Lewis John Mcgibbney wrote: Hi Folks, Does anyone work with Maven SNAPSHOT within Ivy configuration? Thank you Lewis On Sat, Oct 11, 2014 at 4:24 PM, Lewis John Mcgibbney lewis.mcgibb...@gmail.com wrote: Hi Folks, I have been attempting to work with maven SNAPSHOT's [0] in my Ivy settings [1]. I 'thought' [2] that this was resolved, but it would appear that it is no longer working! I have added a note that in order to use the Maven SNAPSHOT's [3] I should replace the 'rev' with the 0.X-SNAPSHOT version then add change=true... this is just now working and I am stumped having poured hours into this one. Can anyone please help me out? I am VERY keen to add further documentation on how we can get Ivy working better with Maven SNAPSHOT's. I am using Ivy 2.2.0. Thank you very much in advance for any help here. Best Lewis [0] https://github.com/apache/nutch/blob/2.x/ivy/ivy.xml#L103 [1] https://github.com/apache/nutch/blob/2.x/ivy/ivysettings.xml#L35 [2] https://issues.apache.org/jira/browse/NUTCH-1696 [3] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/ -- *Lewis* -- Christoph John Development Support Direct: +49 241 557080-28 Mailto:christoph.j...@macd.com http://www.macd.com http://www.macd.com/ MACD GmbH Oppenhoffallee 103 D-52066 Aachen Tel: +49 241 557080-0 | Fax: +49 241 557080-10 Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald take care of the environment - print only if necessary -- *Lewis* -- Christoph John Development Support Direct: +49 241 557080-28 Mailto:christoph.j...@macd.com http://www.macd.com -- -- MACD GmbH Oppenhoffallee 103 D-52066 Aachen Tel: +49 241 557080-0 | Fax: +49 241 557080-10 Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald -- -- take care of the environment - print only if necessary -- *Lewis* -- *Lewis*
Working with SNAPSHOT's
Hi Folks, I have been attempting to work with maven SNAPSHOT's [0] in my Ivy settings [1]. I 'thought' [2] that this was resolved, but it would appear that it is no longer working! I have added a note that in order to use the Maven SNAPSHOT's [3] I should replace the 'rev' with the 0.X-SNAPSHOT version then add change=true... this is just now working and I am stumped having poured hours into this one. Can anyone please help me out? I am VERY keen to add further documentation on how we can get Ivy working better with Maven SNAPSHOT's. I am using Ivy 2.2.0. Thank you very much in advance for any help here. Best Lewis [0] https://github.com/apache/nutch/blob/2.x/ivy/ivy.xml#L103 [1] https://github.com/apache/nutch/blob/2.x/ivy/ivysettings.xml#L35 [2] https://issues.apache.org/jira/browse/NUTCH-1696 [3] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/ -- *Lewis*
rev=latest.integration not new enough
Hi Everyone, I have an issue where I wish to use the most recent snapshot from here [0] when sourcing the dependencies for another project. If you look at [0] you'll see that there are various SNAPSHOT's available. I wish to pull the 'very' latest one e.g. an irtifact which looks like this gora-cassandra-0.3-20130222.081353-236.jarhttps://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.3-SNAPSHOT/gora-cassandra-0.3-20130222.081353-236.jar Simply put, these are nightly build artifacts and are the result of work we are doing elsewhere. We wish to use these in the upstream application. I've therefore configured the following *ivysettings.xml* -- property name=snapshot.apache.org value=https://repository.apache.org/content/repositories/snapshots/; override=false/ property name=maven2.pattern value=[organisation]/[module]/[revision]/[module]-[revision]/ property name=maven2.pattern.ext value=${maven2.pattern}.[ext]/ ... resolvers ibiblio name=maven2 root=${repo.maven.org} pattern=${maven2.pattern.ext} m2compatible=true / ibiblio name=apache-snapshot root=${snapshot.apache.org} pattern=${maven2.pattern.ext} m2compatible=true / ... chain name=external-and-snapshots resolver ref=maven2/ resolver ref=apache-snapshot/ resolver ref=sonatype/ /chain ... module organisation=org.apache.gora name=.* resolver=external-and-snapshots/ *ivy.xml* - dependency org=org.apache.gora name=gora-cassandra rev=latest.integration conf=*-default / *PROBLEMS* 1) My first problem is that when I look at the latest.integration version of the above SNAPSHOT in my ~/.ivy2/cache, I see that it is actually not the latest.integration revision as the artifact pattern does not reflect the latest one. I observe the artifact info organisation=org.apache.gora module=gora-cassandra revision=0.3-SNAPSHOT status=integration publication=20120723224854 when what I want is info organisation=org.apache.gora module=gora-cassandra revision=0.3-SNAPSHOT-20130222.081353-236 status=integration publication=${yesterday_evening} Does this therefore suggest that I need to change the pattern value for Ivy to specifically fetch the most recent SNAPSHOT as desired? 2) I get the following rather unsavoury output when I try to compile [ivy:resolve] WARNINGS [ivy:resolve] module not found: me.prettyprint#hector-core;working@CEE279Law3-Linux [ivy:resolve] local: tried [ivy:resolve] /home/law/.ivy2/local/me.prettyprint/hector-core/working@CEE279Law3-Linux /ivys/ivy.xml [ivy:resolve] -- artifact me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar: [ivy:resolve] /home/law/.ivy2/local/me.prettyprint/hector-core/working@CEE279Law3-Linux /jars/hector-core.jar [ivy:resolve] maven2: tried [ivy:resolve] http://repo1.maven.org/maven2/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.pom [ivy:resolve] -- artifact me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar: [ivy:resolve] http://repo1.maven.org/maven2/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.jar [ivy:resolve] sonatype: tried [ivy:resolve] http://oss.sonatype.org/content/repositories/releases/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.pom [ivy:resolve] -- artifact me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar: [ivy:resolve] http://oss.sonatype.org/content/repositories/releases/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.jar [ivy:resolve] :: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :: [ivy:resolve] :: me.prettyprint#hector-core;working@CEE279Law3-Linux: not found [ivy:resolve] :: [ivy:resolve] [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS Can someone therefore advise if my ivy.xml conf value is appropriate in order to fetch all of the depedencies for the SNAPSHOT which I grab above? [0] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.3-SNAPSHOT/ Thank you so much to anyone able to give me a hand on this one. It os greatly appreciated. Looking forward to meeting with anyone heading to ApacheCon in Portland next week... Oh and I'll certainly be up for buying beers for anyone who can help me out ;) Best Lewis -- *Lewis*
Re: rev=latest.integration not new enough
Hi, With regards to 2) below, please ignore. It appears that the particular dependency me.prettyprint#hector-core for SNAPSHOT's without the trailing revision=0.3-SNAPSHOT-*20130222.081353-236* are now in version conflict, meaning that although the modules are consistent the versioning is not. I'm positive I can resolve 2 if I can resolve 1 first. Thanks again. Lewis On Fri, Feb 22, 2013 at 1:56 PM, Lewis John Mcgibbney lewis.mcgibb...@gmail.com wrote: Hi Everyone, I have an issue where I wish to use the most recent snapshot from here [0] when sourcing the dependencies for another project. If you look at [0] you'll see that there are various SNAPSHOT's available. I wish to pull the 'very' latest one e.g. an irtifact which looks like this gora-cassandra-0.3-20130222.081353-236.jarhttps://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.3-SNAPSHOT/gora-cassandra-0.3-20130222.081353-236.jar Simply put, these are nightly build artifacts and are the result of work we are doing elsewhere. We wish to use these in the upstream application. I've therefore configured the following *ivysettings.xml* -- property name=snapshot.apache.org value=https://repository.apache.org/content/repositories/snapshots/; override=false/ property name=maven2.pattern value=[organisation]/[module]/[revision]/[module]-[revision]/ property name=maven2.pattern.ext value=${maven2.pattern}.[ext]/ ... resolvers ibiblio name=maven2 root=${repo.maven.org} pattern=${maven2.pattern.ext} m2compatible=true / ibiblio name=apache-snapshot root=${snapshot.apache.org} pattern=${maven2.pattern.ext} m2compatible=true / ... chain name=external-and-snapshots resolver ref=maven2/ resolver ref=apache-snapshot/ resolver ref=sonatype/ /chain ... module organisation=org.apache.gora name=.* resolver=external-and-snapshots/ *ivy.xml* - dependency org=org.apache.gora name=gora-cassandra rev=latest.integration conf=*-default / *PROBLEMS* 1) My first problem is that when I look at the latest.integration version of the above SNAPSHOT in my ~/.ivy2/cache, I see that it is actually not the latest.integration revision as the artifact pattern does not reflect the latest one. I observe the artifact info organisation=org.apache.gora module=gora-cassandra revision=0.3-SNAPSHOT status=integration publication=20120723224854 when what I want is info organisation=org.apache.gora module=gora-cassandra revision=0.3-SNAPSHOT-20130222.081353-236 status=integration publication=${yesterday_evening} Does this therefore suggest that I need to change the pattern value for Ivy to specifically fetch the most recent SNAPSHOT as desired? 2) I get the following rather unsavoury output when I try to compile [ivy:resolve] WARNINGS [ivy:resolve] module not found: me.prettyprint#hector-core;working@CEE279Law3-Linux [ivy:resolve] local: tried [ivy:resolve] /home/law/.ivy2/local/me.prettyprint/hector-core/working@CEE279Law3-Linux /ivys/ivy.xml [ivy:resolve] -- artifact me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar: [ivy:resolve] /home/law/.ivy2/local/me.prettyprint/hector-core/working@CEE279Law3-Linux /jars/hector-core.jar [ivy:resolve] maven2: tried [ivy:resolve] http://repo1.maven.org/maven2/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.pom [ivy:resolve] -- artifact me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar: [ivy:resolve] http://repo1.maven.org/maven2/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.jar [ivy:resolve] sonatype: tried [ivy:resolve] http://oss.sonatype.org/content/repositories/releases/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.pom [ivy:resolve] -- artifact me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar: [ivy:resolve] http://oss.sonatype.org/content/repositories/releases/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-work...@cee279law3-linux.jar [ivy:resolve] :: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :: [ivy:resolve] :: me.prettyprint#hector-core;working@CEE279Law3-Linux: not found [ivy:resolve] :: [ivy:resolve] [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS Can someone therefore advise if my ivy.xml conf value is appropriate in order to fetch all of the depedencies for the SNAPSHOT which I grab above? [0] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.3-SNAPSHOT/ Thank you so
Unknown fetching configuration for Ivy 2.2.0
Hi, Since last posting I have now 'correctly' configured the resolvers in ivysettings.xml to fetch Gora SNAPSHOT's from here [0]. However now I am experiencing a really weird problme that left me scratching my head in a confused state! In my ivy.xml I have !--Gora artifacts: -- dependency org=org.apache.gora name=gora-core rev=0.2-SNAPSHOT conf=*-master changing=true/ dependency org=org.apache.gora name=gora-sql rev=0.2-SNAPSHOT conf=*-default changing=true/ dependency org=org.apache.gora name=gora-hbase rev=0.2-SNAPSHOT conf=*-default changing=true / dependency org=org.apache.gora name=gora-cassandra rev=0.2-SNAPSHOT conf=*-default changing=true / I get 3 out of 4 dependencies (gora-core being the problem). Unknown to me, instead of picking up the actual gora-core-0.2-SNAPSHOT.jar [1] I somehow pull the test jar [2] but it appears in my application /build/lib directory packaged as gora-core-0.2-SNAPSHOT!!! When I look inside the jar, it is the test jar, but the jar is named gora-core-0.2-SNAPSHOT.jar... Additionally, and I think this is a separate issue altogether, when I try to compile my application code, I get the following javac warnings [javac] Compiling 170 source files to /home/lewis/ASF/nutchgora/build/classes [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/apache-cassandra-clientutil-1.0.2.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/apache-cassandra-thrift-1.0.2.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/bcel.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/dom4j-full.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/findbugs.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/plastic.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/jaxb-api.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/activation.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/jsr173_1.0_api.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/jaxb1-impl.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/xercesImpl.jar: no such file or directory [javac] warning: [path] bad path element /home/lewis/ASF/nutchgora/build/lib/xml-apis.jar: no such file or directory [javac] /home/lewis/ASF/nutchgora/src/java/org/apache/nutch/api/DbReader.java:30: package org.apache.gora.query does not exist [javac] import org.apache.gora.query.Query; ... etc... I think this is a separate issue so maybe I can solve this later on :0| Any advice guys? I'm really quite stumped on this one. Thank you Lewis [0] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/ [1] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-core/0.2-SNAPSHOT/gora-core-0.2-SNAPSHOT.jar [2] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-core/0.2-SNAPSHOT/gora-core-0.2-SNAPSHOT-tests.jar -- *Lewis*
Re: Configuration problem when pulling Gora SNAPSHOT's
Hi Maarten, Thanks for the heads up, unfortunately this is not working. I wonder if you can help he with some clarification... what does the .[ext] represent? To clarify is this an extension such as .pom, .jar, .war etc? The annoying thing is that the jar I wish to fetch has the regex [organisation]/[module]/[revision]/[module]-[revision].jar, and this actually seems to be the pom that is being tried, however the artifact gora-cassandra.jar doesn't exist... instead it is gora-cassandra-0.2-SNAPSHOT.jar that exists! Thanks again for any direction or experiences you can share. Lewis [ivy:resolve] module not found: org.apache.gora#gora- cassandra;0.2-SNAPSHOT [ivy:resolve] apache-repository: tried [ivy:resolve] http://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.2-SNAPSHOT/gora-cassandra-0.2-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.gora#gora-cassandra;0.2-SNAPSHOT!gora-cassandra.jar: [ivy:resolve] http://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.2-SNAPSHOT/gora-cassandra-0.2-SNAPSHOT.jar On Sat, Feb 4, 2012 at 6:55 AM, Maarten Coene maarten_co...@yahoo.comwrote: I'm not sure it will help, but could you try with the following pattern: [organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext] Maarten
Configuration problem when pulling Gora SNAPSHOT's
Hi Ivy Community, I've been working on publishing Apache Gora SNAPSHOT's [1] to repository.apache.org and have been trying to pull them using Ivy 2.2.0 using the following in ivy.xml dependency org=org.apache.gora name=gora-core rev=0.2-SNAPSHOT conf=*-compile/ dependency org=org.apache.gora name=gora-cassandra rev=0.2-SNAPSHOT conf=*-compile / My ivysettings.xml specifies the following property name=repo.maven.org value=http://repo1.maven.org/maven2/; override=false/ property name=repository.apache.org value=http://repository.apache.org/content/repositories/snapshots/; override=false/ property name=maven2.pattern value=[organisation]/[module]/[revision]/[module]-[revision]/ property name=maven2.pattern.ext value=${maven2.pattern}.[ext]/ !-- pull in the local repository -- include url=${ivy.default.conf.dir}/ivyconf-local.xml/ settings defaultResolver=default/ resolvers ibiblio name=maven2 root=${repo.maven.org} pattern=${maven2.pattern.ext} m2compatible=true / ibiblio name=apache-repository root=${repository.apache.org} pattern=${maven2.pattern.ext} m2compatible=true / ... chain name=default dual=true resolver ref=local/ resolver ref=maven2/ resolver ref=apache-repository/ /chain When I'm executing 'ant runtime' from the terminal I'm getting the following failures. [ivy:resolve] WARNINGS [ivy:resolve] module not found: org.apache.gora#gora-core;0.2-SNAPSHOT [ivy:resolve] apache-repository: tried [ivy:resolve] http://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-core/0.2-SNAPSHOT/gora-core-0.2-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.gora#gora-core;0.2-SNAPSHOT!gora-core.jar: [ivy:resolve] http://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-core/0.2-SNAPSHOT/gora-core-0.2-SNAPSHOT.jar [ivy:resolve] module not found: org.apache.gora#gora-cassandra;0.2-SNAPSHOT [ivy:resolve] apache-repository: tried [ivy:resolve] http://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.2-SNAPSHOT/gora-cassandra-0.2-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.gora#gora-cassandra;0.2-SNAPSHOT!gora-cassandra.jar: [ivy:resolve] http://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.2-SNAPSHOT/gora-cassandra-0.2-SNAPSHOT.jar N.B. I've added the 's above myself to indicate that there is no such .jar at either [2] or [3]. I've spent a good while trying to chop and change ivysettings and the ivy.xml dependency conf= but to no avail... Any suggestions would be greatly appreciated. Kind Regards and thanks in advance for any suggestions. Lewis [1] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/ [2] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-core/0.2-SNAPSHOT/ [3] https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.2-SNAPSHOT/