I think "tycho-users" would be a better list, as the 
RemoteMetadataRepository is a tycho class: 

 org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager

But,  I think if you did ask there, you'd learn that Tycho does not 
support the old-style "site.xml" repositories, which is what the 
"findbugs" repo is, that you referenced. p2 by itself (or tools that 
delegate completely to p2, such as b3 aggregator) do handle these 
old-style sites, by basically "downloading everything" and doing a 
"conversion to new-style site" on the fly. 

You would probably also learn, if you asked on tycho-users, that your 
options are to a) convince original project (findbugs) to "move up", or b) 
make your own p2 repo "on the side" from the old-style site, and then in 
your build point to your new-style site. At least, that's what I learned 
by doing a web search for "Tycho and site.xml" and finding 

http://stackoverflow.com/questions/22628911/how-to-use-a-site-xml-base-update-site-in-a-tycho-build

That stackoverflow answer also points to a URL with an example of one way 
to accomplish this: 

http://wiki.eclipse.org/Tycho/Additional_Tools#publish-features-and-bundles_goal

Hope that helps, 







From:   "Arlo O'Keeffe" <[email protected]>
To:     [email protected], 
Date:   12/26/2014 12:01 PM
Subject:        [equinox-dev] ClassCastException in 
LocalMetadataRepository
Sent by:        [email protected]



Hello,

I am one of the maintainers of m2e-code-quality [1]. When I add the 
FindBugs update site [2] as a p2 repository, the build fails [4]. 

Debugging into the problem I found that the problem is 
LocalMetadataRepository:325 [4]. It's actually 
RemoteMetadataRepositoryManager not a MetadataRepositoryManager. Therefore 
resolving the update site fails.

Am I doing something wrong? Or might this be a bug?

Regards,

Arlo

[1] https://github.com/m2e-code-quality/m2e-code-quality
[2] http://findbugs.cs.umd.edu/eclipse
[3] 
https://travis-ci.org/m2e-code-quality/m2e-code-quality/builds/45160703.
[4] 
http://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/LocalMetadataRepository.java#n330
_______________________________________________
equinox-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe 
from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to