Skip to content
Snippets Groups Projects
Commit 580b4049 authored by tmortagne's avatar tmortagne
Browse files

[misc] Remove useless code

parent 82addd7f
No related merge requests found
......@@ -601,17 +601,11 @@ private Map<String, String> getContextPathMapping()
private Collection<Artifact> resolveJarArtifacts() throws MojoExecutionException
{
Set<Artifact> mys =
resolveTransitively(Collections.singleton(this.repositorySystem.createArtifact("org.xwiki.platform",
"xwiki-platform-chart-renderer", "5.0-SNAPSHOT", "jar")));
// Resolve mandatory dependencies if they're not explicitly specified
Set<Artifact> resolvedArtifacts = resolveTransitively(getMandatoryJarArtifacts());
Set<Artifact> artifactsToResolve = this.project.getArtifacts();
// Add mandatory dependencies if they're not explicitly specified.
artifactsToResolve.addAll(getMandatoryJarArtifacts());
// Resolve all artifacts transitively in one go.
Set<Artifact> resolvedArtifacts = resolveTransitively(artifactsToResolve);
// Maven is already taking care of resolving project dependencies before the plugin is executed
resolvedArtifacts.addAll(this.project.getArtifacts());
// Remove the non JAR artifacts. Note that we need to include non JAR artifacts before the transitive resolve
// because for example some XARs mayb depend on JARs and we need those JARs to be packaged!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment