Is it possible to use reflections-maven to scan for classes inside jars in Web-Inf/lib

57 views
Skip to first unread message

soubh...@gmail.com

unread,
Nov 5, 2013, 5:24:35 PM11/5/13
to google-code...@googlegroups.com
I need to create a list of subclasses for a particular interface during maven build process and then use that at runtime to load those classes. I have added reflections-maven in my webapp pom but during maven build, its only including the classes from the web application and not the classes inside the dependent jars that are there in web-inf/lib folder of that application. Below is the straight forward configuration I have used. I loooked at he plugin source code and it seems it scans the following -getProject().getBuild().getOutputDirectory().

Is there anyways I can configure the plugin to scan the dependent jar files of the project?

Thanks in advance.

<plugin>
           <groupId>org.reflections</groupId>
           <artifactId>reflections-maven</artifactId>
           <version>0.9.9-RC1</version>
           <executions>
               <execution>
                   <goals>
                       <goal>reflections</goal>
                   </goals>
                   <phase>process-classes</phase>
               </execution>
           </executions>
       </plugin>
Reply all
Reply to author
Forward
0 new messages