Page tree

 

Describes how to create the annotation index.

The Jandex is an index of annotations found in an artifact to be used as a JBoss module.

Basic Configuration

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>2.1.5</version>  <executions>
    <execution>
      <id>jandex</id>
      <goals>
        <goal>jandex</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Selected Files

To select certain files, use the fileSets configuration:

<plugin>
  <groupId>de.smartics.maven.plugin</groupId>
  <artifactId>smartics-jboss-modules-maven-plugin</artifactId>
  <version>2.1.5</version>  <executions>
  <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.