Maven 3 build plugin is very slow

After upgrading to maven 3, my build plugin and collector pay less time to copy material.

Has anyone encountered this problem already, or is there something I need to do to make the acceleration faster?

I would be glad to add here, the assebmly plugin configuration that I have, and the descriptors used for this, need it.

thanks

+6
source share
2 answers

This may depend on how your build is configured. In general, Maven 3 works faster with most tasks, but resolving dependencies has changed to use ether. I would suggest first migrating to Maven 3.0.3 and the latest build plugin to see if this fixes this.

0
source

I had exactly the same problem. Switching from version 2.2-beta-5 to version 3.0.0 increased the runtime from 4.538 to 57.885 s!

The assembly descriptor is as follows:

<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> <id>jar-with-dependencies-compiled-scope</id> <formats> <format>jar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <dependencySets> <dependencySet> <outputDirectory>/</outputDirectory> <useProjectArtifact>true</useProjectArtifact> <unpack>true</unpack> <scope>compile</scope> </dependencySet> </dependencySets> 

Another problem; The xml schema, which should be located at http://maven.apache.org/xsd/assembly-2.0.0.xsd , is missing.

0
source

Source: https://habr.com/ru/post/897744/


All Articles