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

No index when annotation is on package-info #43

Open
ptahchiev opened this issue Apr 12, 2018 · 0 comments
Open

No index when annotation is on package-info #43

ptahchiev opened this issue Apr 12, 2018 · 0 comments

Comments

@ptahchiev
Copy link
Contributor

I have a package-info.java class that looks like this:

@MixIn @MenuFolder(id = "leasingfolder", weight = 11)
package com.nemesis.platform.module.commerce.core.definition.leasing;

import com.nemesis.platform.core.mixin.MixIn;
import com.nemesis.platform.core.service.annotations.MenuFolder;

Now I want to find all package-info classes that have the MenuFolder annotation. The MenuFolder annotation is indexed:

@Indexed
@Documented
@IndexAnnotated
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PACKAGE)
public @interface MenuFolder {
    String id() default "{com.nemesis.menufolder.id}";

    int weight() default 0;
}

However, during compilation I see no index in META-INF/annotations/ is created.

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