Do not add sources URIs for Maven artifacts, as it messes up with
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 22 May 2023 07:33:53 +0000 (09:33 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 22 May 2023 07:33:53 +0000 (09:33 +0200)
merging, and the sources location is implicit.

src/org/argeo/build/Repackage.java

index b4b95c1d33fe7c5b5f253edc34bfbc3e23285266..a6c84edd81f627e86410707cfbf81b364078dcdf 100644 (file)
@@ -752,8 +752,6 @@ public class Repackage {
                        URL sourcesUrl = alternateUri != null ? new URL(alternateUri)
                                        : M2ConventionsUtils.mavenRepoUrl(repoStr, sourcesArtifact);
                        Path sourcesDownloaded = downloadMaven(sourcesUrl, sourcesArtifact);
-                       if (!props.containsKey(ARGEO_ORIGIN_SOURCES_URI.toString()))
-                               ARGEO_ORIGIN_SOURCES_URI.put(props, sourcesUrl.toString());
                        processM2SourceJar(sourcesDownloaded, targetBundleDir, merging ? artifact : null, unmodified);
                        logger.log(TRACE, () -> "Processed source " + sourcesDownloaded);
                } catch (Exception e) {