this.artifactPomFactory = artifactPomFactory;
}
public void addArtifact(Artifact artifact, File src) {
if (artifact == null || src == null) {
throw new InvalidUserDataException("Artifact or source file must not be null!");
}
for (PomFilter activePomFilter : pomFilterContainer.getActivePomFilters()) {
if (activePomFilter.getFilter().accept(artifact, src)) {
if (artifactPoms.get(activePomFilter.getName()) == null) {
artifactPoms.put(activePomFilter.getName(), artifactPomFactory.createArtifactPom(activePomFilter.getPomTemplate()));