[ 
https://issues.apache.org/jira/browse/KARAF-7667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17685152#comment-17685152
 ] 

Mark Derricutt commented on KARAF-7667:
---------------------------------------

Further to this, I think the problem is more upstream of karaf-maven-plugin 
itself:

{{java.io.IOException: Error resolving artifact 
smx3:smx3.partyproduct.api:jar:47.0.20-SNAPSHOT: [Could not find artifact 
smx3:smx3.partyproduct.api:jar:47.0.20-SNAPSHOT]
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException 
(AetherBasedResolver.java:803)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:774)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:657)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:598)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:565)
    at org.apache.karaf.tooling.utils.ReactorMavenResolver.resolve 
(ReactorMavenResolver.java:63)
    at 
org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download 
(MavenDownloadTask.java:52)
    at 
org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run
 (AbstractRetryableDownloadTask.java:60)
    at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 
(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run 
(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker 
(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run 
(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run (Thread.java:750)
Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: 
Error resolving artifact smx3:smx3.partyproduct.api:jar:47.0.20-SNAPSHOT
    at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve 
(DefaultArtifactResolver.java:431)
    at 
shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts
 (DefaultArtifactResolver.java:235)
    at 
shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact 
(DefaultArtifactResolver.java:212)
    at 
shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact 
(DefaultRepositorySystem.java:272)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:767)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:657)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:598)
    at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve 
(AetherBasedResolver.java:565)
    at org.apache.karaf.tooling.utils.ReactorMavenResolver.resolve 
(ReactorMavenResolver.java:63)
    at 
org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download 
(MavenDownloadTask.java:52)
    at 
org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run
 (AbstractRetryableDownloadTask.java:60)
    at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 
(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run 
(ScheduledThreadPoolExecutor.java:293)
}}

It would appear to be Pax URL's shaded aether version.


> Upgrade karaf-maven-plugin to latest maven-resolver
> ---------------------------------------------------
>
>                 Key: KARAF-7667
>                 URL: https://issues.apache.org/jira/browse/KARAF-7667
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf
>    Affects Versions: 4.4.3
>            Reporter: Mark Derricutt
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> The newly released Maven 3.9.0 has switched to using the new maven resolver 
> 1.9.x releases, which add support for split repositories ( separating cached 
> downloads, local installs, and SNAPSHOTs ) which is great for working on 
> multiple branches without poisoning a local repository.
> However, Karaf Maven Plugin doesn't appear to use the resolver provided by 
> Maven, so doesn't pick up SNAPSHOTs when running in a split mode.
> 1.9.x is a binary breaking version of resolver however.
> Split repositories can be enabled by setting the following properties:
> <aether.enhancedLocalRepository.split>true</aether.enhancedLocalRepository.split><aether.enhancedLocalRepository.splitLocal>true</aether.enhancedLocalRepository.splitLocal><aether.enhancedLocalRepository.splitRemoteRepository>true</aether.enhancedLocalRepository.splitRemoteRepository>
> See:
> - https://maven.apache.org/resolver/configuration.html
> - https://issues.apache.org/jira/browse/MNG-6270



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to