[ome-devel] OMERO blitz Maven artifact dependency resolution

Josh Moore josh at glencoesoftware.com
Wed Jun 11 21:52:27 BST 2014


On Jun 11, 2014, at 10:43 PM, Curtis Rueden wrote:

> same thing. The underlying issue is that omero:blitz:5.0.2-* has invalid
> dependency metadata in its POM, which I would very much favor fixing,
> rather than passing the buck downstream.

Sure. But this is an after-the-fact release, so I'd really prefer to not be mucking with what's defined in the ivy.xml and pom.xml files. I'm just in the process of setting up our daily snapshot builds after which, we can start testing against those and incrementally remove the hacks.


> Furthermore, I am guessing that blitz actually _does_ depend on some
> Bio-Formats artifact(s) or other, which is not reflected after adding the
> excludes. Probably it is the same for the other three missing artifacts,
> too? Blitz actually does depend on those projects, just not those specific
> GAV formulations. So excluding them papers over the problem and opens the
> door to ClassNotFoundException etc. when attempting to perform certain
> actions using the Blitz API.

Am I misunderstanding the function of https://github.com/ome/pom-omero-client/blob/dev_5_0/pom.xml#L97 ?
Does that not re-add the dependency?


> In the short term, I'll try to proceed with a dependency on omero:blitz
> together with those exclusions, and see how things work!

Thanks,
~Josh.

> Thanks,
> Curtis
> 
> 
> On Mon, Jun 9, 2014 at 4:00 AM, Josh Moore <josh at glencoesoftware.com> wrote:
> 
>> 
>> On Jun 5, 2014, at 6:17 PM, Curtis Rueden wrote:
>> 
>>> Hi all (esp. Josh),
>> 
>> Hi Curtis,
>> 
>>> Thank you very much for making the OMERO libraries available as Maven
>>> artifacts. It will make developing Java libraries which use OMERO much
>>> easier!
>>> 
>>> I tried adding a dependency to omero:blitz:5.0.2-ice35-b26 today, but
>>> unfortunately ran into some dependency resolution errors. Details here:
>>> https://gist.github.com/ctrueden/94bb1d3b6b8398aa1307
>> 
>> I think solutions for most of the problems you describe are encoded in
>> 
>>  https://github.com/ome/pom-omero-client/blob/dev_5_0/pom.xml
>> 
>> Is having those exclusions in the client pom going to be a workable
>> solution?
>> If not, what would you suggest?
>> 
>> 
>>> The four problematic dependencies are:
>>> * ome:bio-formats:jar:5.0.2-ice35-b26
>>> * hsqldb:hsqldb:jar:1.8.0.2
>>> *
>>> 
>> org.springframework:org.springframework.context.support:jar:3.0.1.RELEASE-A
>>> * org.springframework.ldap:spring-ldap:jar:1.3.0.RELEASE-all
>>> 
>>> I searched http://artifacts.openmicroscopy.org/ and
>> http://search.maven.org/
>>> and could not find these specific GAVs anywhere, although there are
>> similar
>>> artifacts in all cases:
>>> 
>>>> ome:bio-formats:5.0.2-ice35-b26
>>> 
>>> ome:formats-api:5.0.2 ?
>>> 
>>>> hsqldb:hsqldb:1.8.0.2
>>> 
>>> hsqldb:hsqldb:1.8.0.10 ?
>>> 
>>>> org.springframework:org.springframework.context.support:3.0.1.RELEASE-A
>>> 
>>> org.springframework:spring-context-support:3.0.1.RELEASE ?
>>> 
>>>> org.springframework.ldap:spring-ldap:1.3.0.RELEASE-all
>>> 
>>> org.springframework.ldap:spring-ldap:1.3.0.RELEASE ?
>>> 
>>> Any suggestions on how to get this working?
>> 
>> In addition, I'm suspecting that not all of OME's maven repositories are
>> showing up in the virtual "/repo" repository. I'll look into this first and
>> get back to you. If you want to move forward by using the repositories set
>> in pom-omero-client/pom.xml, let me know if any of the above issues are
>> solved.
>> 
>> 
>>> Thanks,
>>> Curtis
>> 
>> Cheers,
>> ~Josh.
>> 



More information about the ome-devel mailing list