[
https://issues.apache.org/jira/browse/SLING-12800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953710#comment-17953710
]
Robert Munteanu edited comment on SLING-12800 at 5/23/25 2:14 PM:
------------------------------------------------------------------
This might be caused by my incorrect usage of the p2update repository ... If I
run this outside the reactor I notice it's downloading some artifacts from the
apache.snapshots repository.
{noformat}
$ mvn -f eclipse/p2update clean install
(...)
[INFO] Resolving MavenDependencyRoots = [GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-core, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-ui, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-m2e-core, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-m2e-ui, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-sightly-core, Version =
1.2.3-SNAPSHOT, ArtifactType = jar, IncludeDependencyScope = , GroupId =
org.apache.sling.ide, ArtifactId = org.apache.sling.ide.eclipse-sightly-ui,
Version = 1.2.3-SNAPSHOT, ArtifactType = jar, IncludeDependencyScope = ],
IncludeDependencyScope = [compile], MissingManifestStrategy = ERROR,
IncludeSource = false
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 2.2 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-core-1.2.3-20250523.140221-135.jar
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-core-1.2.3-20250523.140221-135.jar
(122 kB at 674 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 3.5 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-ui-1.2.3-20250523.140221-135.jar
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-ui-1.2.3-20250523.140221-135.jar
(461 kB at 2.6 MB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-core/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-core/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 1.7 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-ui/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-ui/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 2.2 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-core/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-core/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 1.8 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-ui/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-ui/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 1.4 kB/s)
(...)
{noformat}
was (Author: rombert):
This might be caused by my incorrect usage of the p2update repository ... If I
run this outside the reactor I notice it's downloading the shared artifacts
from the apache.snapshots repository.
{noformat}
$ mvn -f eclipse/p2update clean install
(...)
[INFO] Resolving MavenDependencyRoots = [GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-core, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-ui, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-m2e-core, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-m2e-ui, Version = 1.2.3-SNAPSHOT,
ArtifactType = jar, IncludeDependencyScope = , GroupId = org.apache.sling.ide,
ArtifactId = org.apache.sling.ide.eclipse-sightly-core, Version =
1.2.3-SNAPSHOT, ArtifactType = jar, IncludeDependencyScope = , GroupId =
org.apache.sling.ide, ArtifactId = org.apache.sling.ide.eclipse-sightly-ui,
Version = 1.2.3-SNAPSHOT, ArtifactType = jar, IncludeDependencyScope = ],
IncludeDependencyScope = [compile], MissingManifestStrategy = ERROR,
IncludeSource = false
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 2.2 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-core-1.2.3-20250523.140221-135.jar
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-core/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-core-1.2.3-20250523.140221-135.jar
(122 kB at 674 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 3.5 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-ui-1.2.3-20250523.140221-135.jar
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-ui/1.2.3-SNAPSHOT/org.apache.sling.ide.eclipse-ui-1.2.3-20250523.140221-135.jar
(461 kB at 2.6 MB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-core/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-core/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 1.7 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-ui/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-m2e-ui/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 2.2 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-core/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-core/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 1.8 kB/s)
Downloading from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-ui/1.2.3-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots:
https://repository.apache.org/snapshots/org/apache/sling/ide/org.apache.sling.ide.eclipse-sightly-ui/1.2.3-SNAPSHOT/maven-metadata.xml
(1.5 kB at 1.4 kB/s)
(...)
{noformat}
> SNAPSHOT artifacts are not compatible with p2 bundle pools
> ----------------------------------------------------------
>
> Key: SLING-12800
> URL: https://issues.apache.org/jira/browse/SLING-12800
> Project: Sling
> Issue Type: Bug
> Components: IDE
> Reporter: Robert Munteanu
> Priority: Minor
> Fix For: Sling Eclipse IDE 1.3.2
>
>
> When Eclipse uses a bundle pool (
> https://wiki.eclipse.org/Equinox/p2/Getting_Started#Bundle_pooling ) as is
> usually done by the installer bundles are cached.
> When updating from a locally build p2 site the 'shared' bundles are not
> refreshed because they have the same name/version and are therefore pulled
> from the p2 pool, not from the update site.
> Workaround:
> - uninstall Sling IDE tooling
> - Go to Preferences → Ooomph → Bundle pools and run the Cleanup Agent
> - install Sling IDE Tooling
--
This message was sent by Atlassian Jira
(v8.20.10#820010)