The Jandex is an index of annotations found in an artifact to be used as a JBoss module.
To create the Jandex for all classes of a project, use this configuration:
<plugin> <groupId>de.smartics.maven.plugin</groupId> <artifactId>smartics-jboss-modules-maven-plugin</artifactId> <version>0.1.0</version> <executions> <execution> <id>jandex</id> <goals> <goal>jandex</goal> </goals> </execution> </executions> </plugin>
To select certain files, use the fileSets configuration:
<plugin> <groupId>de.smartics.maven.plugin</groupId> <artifactId>smartics-jboss-modules-maven-plugin</artifactId> <version>0.1.0</version> <executions> <execution> <id>jandex</id> <goals> <goal>jandex</goal> </goals> <configuration> <fileSets> <fileSet> <directory>${project.build.outputDirectory}</directory> <excludes> <exclude>some/classes/to/exclude/**</exclude> </excludes> </fileSet> </fileSets> </configuration> </execution> </executions> </plugin>
If no directory is given, it defaults to project.build.outputDirectory.
Please note that only class files are processed.