in src/main/java/org/apache/maven/plugins/assembly/artifact/DefaultDependencyResolver.java [130:160]
void updateModuleSetResolutionRequirements(
ModuleSet set,
DependencySet dependencySet,
final ResolutionManagementInfo requirements,
final AssemblerConfigurationSource configSource)
throws DependencyResolutionException {
final ModuleBinaries binaries = set.getBinaries();
if (binaries != null) {
Set<MavenProject> projects;
try {
projects = ModuleSetAssemblyPhase.getModuleProjects(set, configSource, LOGGER);
} catch (final ArchiveCreationException e) {
throw new DependencyResolutionException(
"Error determining project-set for moduleSet with binaries.", e);
}
for (final MavenProject p : projects) {
if (p.getArtifact() == null) {
p.setArtifact(createArtifact(p.getGroupId(), p.getArtifactId(), p.getVersion(), p.getPackaging()));
}
}
if (binaries.isIncludeDependencies()) {
updateDependencySetResolutionRequirements(
configSource.getMavenSession().getRepositorySession(),
dependencySet,
requirements,
projects.toArray(new MavenProject[0]));
}
}
}