My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ReflectionsMojo  
Updated Nov 29, 2009 by ronm...@gmail.com

Reflections Mojo configuration on your pom.xml file

    <build>
        <plugins>
            <plugin>
                <groupId>org.reflections</groupId>
                <artifactId>reflections-maven</artifactId>
                <version>latest version...</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>reflections</goal>
                        </goals>
                        <phase>process-classes</phase>

                    <configuration>
                    </configuration>

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

By default, the Reflections Maven plugin saves the marshalled xml file of scanned metadata into ${project.build.outputDirectory}/META-INF/reflections/${project.artifactId}-reflections.xml

check out the ReflectionsMojo javadoc for more information

Comment by ernest.m...@gmail.com, Oct 26, 2010

For this to work, you need to add the following repository to your pom.xml

 <pluginRepositories>
     <pluginRepository>
         <id>reflections-repo</id>
         <name>Reflections Maven2 Repository</name>
         <url>http://reflections.googlecode.com/svn/repo</url>
     </pluginRepository>
 </pluginRepositories>

Sign in to add a comment
Powered by Google Project Hosting