Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

 

 

Section
titleBasic Configuration

To create the Jandex for all classes of a project, use this configuration:

Code Block Placeholder
code-languageHTML and XML
<plugin>
  <groupId>${project-group-id}</groupId>
  <artifactId>${project-artifact-id}</artifactId>
  <version>${project-version}</version>  <executions>
    <execution>
      <id>jandex</id>
      <goals>
        <goal>jandex</goal>
      </goals>
    </execution>
  </executions>
</plugin>
Section
titleSelected Files

To select certain files, use the fileSets configuration:

Code Block Placeholder
code-languageHTML and XML
<plugin>
  <groupId>${project-group-id}</groupId>
  <artifactId>${project-artifact-id}</artifactId>
  <version>${project-version}</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.

...