Re: [mevenide-user] debugging sources when all project are built
Mick Semb Wever <[email protected]> Thu, 10 Apr 2008 13:13:50 +0200
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Message-ID | <[email protected]> |
>> A very quick guess: >> >> i only see RepositorySourceForBinaryQueryImpl registered through >> META-INF/services >> >> i presume that MavenForBinaryQueryImpl is added at runtime via >> NbMavenProject.getLookup() and so would be added to the end of >> registered services. > > weill the instance in lookup is collected by some global > (ProjectSourceForBinaryQueryImpl) implementation that delegates to the > project's lookup. We have a custom FileOwnerQueryImplemented that > matches the jar file in local repository to opened maven project. Thus > the project SFBQ should find the owner of teh jar file in local repo and > delegate to the project's impl in lookup. Ok i'm starting to see a bigger picture now. And i see that this problem isn't just related to debugging. When i "Go To Type..." i've always had duplicates of each class, one from the project and one from the repository's jarfile. see attached picture. Previously (before -sources.jar were being propagated into the local repository) choosing either class ended up, correctly, opening the project's source file. But now choosing the repository's jarfile version opens the read-only version from inside the -sources.jar. It kinda makes sense, but definitely isn't what i want. Of course, even better would be to "collapse" the duplicates into one. ~mck -- "Be kind. For everyone you meet is fighting a hard battle." Plato | www.semb.wever.org | www.sesat.no | www.sesam.no |
Screenshot-Go to Type.png
(image/png, 29.3 KB) - not displayed
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkf99m4ACgkQkdPrePiuutN0QwCff3pVkK42QyvGnHvx+N94zKq5 9joAn0F5OJBkCdqIsx/Y5UBPUNcCLAQc =+9xM -----END PGP SIGNATURE-----