The mojo generates an index of packages and folders within the classpath of a project. This index is stored within the artifact at META-INF/INDEX.LIST.
To create the index for 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>index</id> <goals> <goal>index</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>index</id> <goals> <goal>index</goal> </goals> <configuration> <fileSets> <fileSet> <directory>${project.build.outputDirectory}</directory> <excludes> <exclude>META-INF/**</exclude> </excludes> </fileSet> </fileSets> </configuration> </execution> </executions> </plugin>
If no directory is given, it defaults to project.build.outputDirectory.