karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <ben...@basistech.com>
Subject Re: I can't get the trunk to build
Date Tue, 01 Sep 2015 11:43:14 GMT
I understand this a little.

To avoid problems with <repository> declarations, I used this script:

M2_HOME=/opt/apache-maven-3.2.5
export M2_HOME
/opt/apache-maven-3.2.5/bin/mvn
-Dmaven.repo.local=/users/benson/asf/repository -s
~/asf/asf-settings.xml -gs /opt/apache-maven-3.2.5/conf/settings.xml
$*


When I instead added some ! exemptions to my mirror config, I was able
to build. Apparently some part of the Karaf build does not 'know' the
setting of maven.local.repo.


On Tue, Sep 1, 2015 at 7:28 AM, Benson Margulies <benson@basistech.com> wrote:
> Maven 3.2.5, Java 1.7.0_72, MacOSX,
>
> mvn clean install -Pfastinstall fails in minimal distribution with the
> following.
>
> The XML file is sitting in my local repo in the expected location.
>
> [WARNING] Error resolving
> artifactorg.apache.karaf.features:spring:xml:features:4.0.2-SNAPSHOT:Could
> not find artifact
> org.apache.karaf.features:spring:xml:features:4.0.2-SNAPSHOT
> shaded.org.eclipse.aether.resolution.ArtifactResolutionException:
> Could not find artifact
> org.apache.karaf.features:spring:xml:features:4.0.2-SNAPSHOT
> at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
> at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
> at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
> at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:573)
> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:528)
> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:506)
> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:481)
> at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:34)
> at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:58)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException:
> Could not find artifact
> org.apache.karaf.features:spring:xml:features:4.0.2-SNAPSHOT
> at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:434)
> ... 16 more
> [WARNING] interval1: null, interval2: daily
> [WARNING] interval1: null, interval2: daily

Mime
View raw message