// Register base package processors
packageProcessors.addPackageProcessor(new JarContributionProcessor());
packageProcessors.addPackageProcessor(new FolderContributionProcessor());
// Create a repository
ContributionRepository repository = new ContributionRepositoryImpl("target");
// Create an artifact resolver and contribution service
this.contributionService = new ContributionServiceImpl(repository, packageProcessor, documentProcessor,
assemblyFactory,
new ContributionFactoryImpl(), XMLInputFactory