1 package org.apache.maven.plugin.assembly.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException;
23 import org.apache.maven.plugin.assembly.archive.ArchiveCreationException;
24 import org.apache.maven.plugin.assembly.artifact.DependencyResolutionException;
25 import org.apache.maven.plugin.assembly.format.AssemblyFormattingException;
26 import org.apache.maven.plugin.assembly.functions.ModuleSetConsumer;
27
28
29
30
31 public class Assemblies
32 {
33
34 public static void forEachModuleSet( Assembly assembly, ModuleSetConsumer moduleSetConsumer )
35 throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException,
36 DependencyResolutionException
37 {
38 for ( ModuleSet resolvedModuleSet : assembly.getModuleSets() )
39 {
40 moduleSetConsumer.accept( resolvedModuleSet );
41 }
42 }
43 }