1
我以下列方式如何并行化maven-assembly-plugin?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
<!-- necessary in order to avoid
`Error reading assemblies: No assembly
descriptors found.` -->
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
使用maven-assumbly-plugin
,发现其包装的依赖较大的时候,像斯坦福CoreNLP模型与多个100MB的可怕缓慢。这是一个罕见的用例,但是我认为并行实现是可用的,因为多核处理器已经存在数十年了。如何使用它?
这有什么好做并行执行大会插件这个pom.xml中和项目集群感知,动态,可扩展的并行处理。 – dunni