You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
Describes how to create the index file in META-INF/INDEX.LIST
.
Description
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
.