Page tree

 

Describes how to create the index file in META-INF/INDEX.LIST.

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.

Basic Configuration

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