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

Registry offers choice for components without descriptors #9

Closed
reckart opened this issue Apr 8, 2018 · 1 comment
Closed

Registry offers choice for components without descriptors #9

reckart opened this issue Apr 8, 2018 · 1 comment

Comments

@reckart
Copy link
Member

reckart commented Apr 8, 2018

I have a Maven artifact which contains multiple UIMA components, but I do not want OMTD to see them all. For that reason, I have created only descriptors for one of the components and also the META-INF/eu.openminted.share/descriptors.txt lists only one component.

However, when I tried registering the component as a Maven artifact, the registry offered me a choice between all the components in the JAR.

Does the registry scanning the classes in Maven artifacts for component information even if the JAR already includes a META-INF/eu.openminted.share/descriptors.txt?

IMHO the registry should not perform a class-based component scan if a META-INF/eu.openminted.share/descriptors.txt file is present in the artifact.

Or could it be a problem of artifact caching? (cf. #8)

As a user, it is hard to tell what actually happens because the system logs no information of the individual steps it is performing to the UI.

@reckart
Copy link
Member Author

reckart commented Apr 9, 2018

My fault. The registry correctly detects if any descriptors are present and if so does not do the class scanning. Problem was, that the JAR really did not contain any descriptors due to a but in the OMTD-SHARE Maven plugin (3.0.2.3 - 3.0.2.4).

openminted/omtd-share-annotations#41

@reckart reckart closed this as completed Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant