04 January 2018

Maven Bundle Plugin slowing down the maven build

Bambitroll @ 10:04
If you are working with OSGi, you are surely using the Maven Bundle Plugin to create your MANIFEST file and jar bundles.

After a while, it can happen that your maven build it getting slower than it should be.
In my case, the "Writing OBR metadata" part of the maven build was clearly to blame.
And this is because it is parsing and updating a file called repository.xml, which gets really big with time.

Solution:
mv ~/.m2/repository/repository.xml ~/.m2/repository/repository.xml.old

1 Response to "Maven Bundle Plugin slowing down the maven build"

  1. FD said...

    thanks a log.

    our repositoryfile has a size from 100mb
    after delete, and rebuild 800kb

    builds before takes > 20 minutes
    after it takes < 4 minutes

Post a Comment