-
Notifications
You must be signed in to change notification settings - Fork 94
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
The fileset classes not present in resulting index #138
Comments
However, uncommenting the |
I had a quick look at this. I'm not sure how this is supposed to work, but I would have expected all fileset indexes to be merged into one big index file...? @n1hility @stuartwdouglas Anyway, @mvysny a workaround for you would be to configure jar-plugin to either include |
Excellent catch, I have completely missed the I went with the other workaround to exclude all classes (or rather only to include the <plugin>
<!-- workaround for https://github.com/wildfly/jandex-maven-plugin/issues/25 -->
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<includes>
<include>**/jandex.idx</include>
</includes>
</configuration>
</plugin> |
I just wanted to add a test for the |
I'm working on moving the Jandex Maven plugin into the Jandex codebase and I guess we can change this, as part of Jandex 3.0 release, and document as breaking change :-) |
I changed my mind on that: In my current project we (for some time) had an index just for the |
Whoah that's an interesting one. Here's my take on it:
WDYT? |
Some more config would be required for that actually (being able to configure not just the file name, but also full file path), but that should be doable. |
Well, right after I submitted my previous comment, it occured to me that I had not considered mutliple executions! So I think that's a 👍 😉 I've also realized that it won't be that easy to include different index files in different test-jars with standard maven, but that's not the problem of this plugin.
Haha, I tried to avoid it as well in my last comment, but I failed in my first one. |
FWIW, another 👍 for one execution -> one index. I also opened a separate but somewhat related enhancement issue wildfly/jandex-maven-plugin#33 in case you feel like to have extra spare time! |
Done in #195. |
I have the following maven project:
pom.xml
is as follows:Running
mvn clean package
on this project will result in an empty Jandex index being produced (thejandex.idx
only has 18 bytes).Running with
mvn clean package -X
shows that Jandex plugin actually walks over the Vaadin classes, it simply won't include those in the resulting index:The text was updated successfully, but these errors were encountered: