Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support scanning of selected packages, classes in other dependencies #139

Closed
tjquinno opened this issue Aug 31, 2021 · 2 comments
Closed
Assignees
Milestone

Comments

@tjquinno
Copy link

Inspired by the movement on #138...

The plug-in supports scanning .class files.

Has there ever been thought to including .class entries in other dependency JARs?

In this Helidon issue helidon-io/helidon#2729 referenced from #138, the use case is this: The application currently being built by maven (and for which the Jandex plug-in is executed) contains endpoints with MicroProfile OpenAPI annotations. Those endpoints happen to refer to POJO business classes defined in other dependencies which might or might not also bear OpenAPI annotations.

It would be great to have a way to create a single Jandex index (from one execution of the plug-in) that included not only information about the current project's classes but also selected classes from other dependencies, JARs which do not have their own Jandex indices.

Of course, one would want a way to identify which dependencies, which classes or packages within them, etc. to include in the scan.

A workaround, also mentioned in the Helidon issue, would be to extract the contents of selected other dependencies into temp directories and point fileset configuration to the extracted contents. For the developer, though, it'd be simpler to be able to tell just the Jandex plug-in about those other dependencies and the relevant selection of packages/classes, rather than involve other plug-ins to extract their contents to disk first.

@Ladicek
Copy link
Contributor

Ladicek commented Sep 1, 2021

Yea I think that makes sense.

@Ladicek Ladicek transferred this issue from wildfly/jandex-maven-plugin Sep 2, 2021
@Ladicek Ladicek self-assigned this May 11, 2022
@Ladicek Ladicek added this to the 3.0.0 milestone May 11, 2022
@Ladicek
Copy link
Contributor

Ladicek commented May 11, 2022

Done in #196.

@Ladicek Ladicek closed this as completed May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants