karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-2804) Karaf Maven Plugin throws errors when trying to install pax-web-features with compile scope
Date Wed, 24 Sep 2014 14:33:34 GMT

     [ https://issues.apache.org/jira/browse/KARAF-2804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré resolved KARAF-2804.
-----------------------------------------
    Resolution: Fixed

> Karaf Maven Plugin throws errors when trying to install pax-web-features with compile
scope
> -------------------------------------------------------------------------------------------
>
>                 Key: KARAF-2804
>                 URL: https://issues.apache.org/jira/browse/KARAF-2804
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.0
>         Environment: Ubuntu 12.04, Java 1.7_u51
>            Reporter: Aritra Chatterjee
>            Assignee: Jean-Baptiste Onofré
>              Labels: features, maven
>             Fix For: 4.0.0, 3.0.2
>
>
> Maven configuration says:
> {quote}
>                 <dependency>
> 			<groupId>org.ops4j.pax.web</groupId>
> 			<artifactId>pax-web-features</artifactId>
> 			<version>3.0.5</version>
> 			<classifier>features</classifier>
> 			<type>xml</type>
> 		</dependency>
> {quote}
> Error received:
> {quote}
> [WARNING] could not resolve wrap:mvn:javax.servlet.jsp/jsp-api/2.1
> org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find wrap:mvn:jar:javax.servlet.jsp/jsp-api/2.1
in http://<myurl>/nexus/content/groups/public was cached in the local repository, resolution
will not be reattempted until the update interval of nexus has elapsed or updates are forced
> 	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
> 	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
> 	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
> 	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
> 	at org.apache.karaf.tooling.features.InstallKarsMojo.resolve(InstallKarsMojo.java:354)
> 	at org.apache.karaf.tooling.features.InstallKarsMojo.install(InstallKarsMojo.java:334)
> 	at org.apache.karaf.tooling.features.InstallKarsMojo.execute(InstallKarsMojo.java:278)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find wrap:mvn:jar:javax.servlet.jsp/jsp-api/2.1
in http://<myurl>/nexus/content/groups/public was cached in the local repository, resolution
will not be reattempted until the update interval of nexus has elapsed or updates are forced
> 	at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
> 	at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
> 	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
> 	... 27 more
> {quote}
> My Nexus instance proxies Maven Central, and I'm able to search the artifact  which the
logs report as missing.
> I have tried using PAX-WEB 4.0.0-SNAPSHOT as well. Seems whenever there's a "wrap:mvn"
involved in the feature list, this error is thrown. When the <scope> is changed to runtime,
the error goes away. However, I need to run the instance behind a firewall. This looks like
a different bug from KARAF-2732.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message