Maven Dependencies

jQAssistant is able to analyze Maven dependencies from a repository, just by including the path:

<plugin>
   <groupId>com.buschmais.jqassistant</groupId>
   <artifactId>jqassistant-maven-plugin</artifactId>
   <executions>
      <execution>
         <id>copy-dependencies-analysis-class</id>
         <goals>
            <goal>copy-dependencies</goal>
         </goals>
         <configuration>
            <outputDirectory>${dependencyAnalysis.path}</outputDirectory>
            <includeScope>compile</includeScope>
            <excludeTransitive>true</excludeTransitive>
         </configuration>
      </execution>
      <execution>
         <id>copy-dependencies-analysis-source</id>
         <goals>
            <goal>copy-dependencies</goal>
         </goals>
         <configuration>
            <outputDirectory>${dependencyAnalysis.path}</outputDirectory>
            <includeScope>compile</includeScope>
            <classifier>sources</classifier>
            <excludeTransitive>true</excludeTransitive>
         </configuration>
      </execution>
   </executions>
</plugin>

But this will analyze all the dependencies stored there, which can take a really long time.

Analyzing a Subset of Dependencies

Having this property defined:

The dependencies can be copied inside that folder.

Note that they are filtered, so only those from the specified group are included, ignoring transitive dependencies.

Now the path can be included.

Last updated

Was this helpful?