Skip to content

Commit 8ddf85f

Browse files
committed
Do not inject sources into the maven model
Currently we inject sources that are resolved from the targetplatform, but this can lead to additional downloads and confuses other tools. This now skip injecting source to the maven model as this is usually not done when working with maven.
1 parent 4093808 commit 8ddf85f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tycho-core/src/main/java/org/eclipse/tycho/core/maven/MavenDependencyInjector.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ public static void injectMavenDependencies(MavenProject project, DependencyArtif
117117
MavenDependencyInjector generator = new MavenDependencyInjector(project, bundleReader, descriptorMapping,
118118
logger);
119119
for (ArtifactDescriptor artifact : dependencies.getArtifacts()) {
120+
if (TychoConstants.CLASSIFIER_SOURCES.equals(artifact.getClassifier())) {
121+
//there is no need to struggle with source when we inject dependencies
122+
continue;
123+
}
120124
generator.addDependency(artifact, Artifact.SCOPE_COMPILE);
121125
}
122126
if (testDependencies != null) {

0 commit comments

Comments
 (0)