Saturday Aug 31

Key Concepts

Maven site build slow due to Dependency report plugin

PDFPrintE-mail
Friday, 25 January 2013 11:18
AddThis Social Bookmark Button

Maven site build slow

Unable to determine if resource exists

If you get an error messages like this while building your site :

<pre>

[ERROR] Unable to determine if resource org.apache.geronimo.bundles:bval-jsr303:jar:0.3_1-incubating:provided exists in ...svn.apache.org/repos/asf/openejb/repo/

</pre>

Your Dependency report plugin taking a long time to generate with Url is invalid – repository will be blacklisted.

The message is  clear, one of the dependency report plugin tries to determine if resources are located within a given repository. If that repository doesn’t exist anyomore or is just terribly slow, your site build will be as well.

To fix this issue you can run your site building using the following parameter :

dos-console

-Ddependency.locations.enabled=false

or disable it directly in your Pom or Settings.xml

maven-settings

<plugin>
   <artifactId>maven-project-info-reports-plugin</artifactId>
   <configuration>
      <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
   </configuration>
</plugin>

The repository location won't be published anymore but you will enjoy your faster build 

With a parent pom

If you want to disable the parameter for all children project : 

maven-settings

<reporting>
   <plugins>
      <plugin>
         <artifactId>maven-project-info-reports-plugin</artifactId>
         <configuration>
            <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
         </configuration>
      </plugin>
   </plugins>
</reporting> 

If you enjoyed this article and want to promote it don't hesitate to click on 



Tags: maven, build, site, plugin, dependency, report, repository, determine, slow, -ddependency.locations.enabled=false

Add comment


Security code
Refresh

Java Tutorial on Facebook