My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 14, 2008 by ronmamo
ReflectionsMojo  

Reflections Mojo with empty configuration:

    <build>
        <plugins>
            <plugin>
                <groupId>org.reflections</groupId>
                <artifactId>reflections-maven</artifactId>
                <version>0.9 or whatever the version might be</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>reflections</goal>
                        </goals>
                        <phase>process-classes</phase>

                    <configuration>
                    </configuration>

                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

Available configuration parameters:

  1. scanners
  2. description: a comma separated list of scanner classes. default value: ClassAnnotationsScanner, SubTypesScanner
  1. includeExclude
  2. description: a comma separated list of include exclude filters. default value: "-java., -javax., -sun., -com.sun."
    that is, exclude common java jre classes
  1. destinations
  2. description: a comma separated list of destinations to save metadata to default value: "${project.build.outputDirectory}/META-INF/reflections/${project.artifactId}-reflections.xml"

Sign in to add a comment
Hosted by Google Code