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] [Commented] (KARAF-3611) karaf-maven-plugin fails for startupFeatures + "wrap:"
Date Tue, 29 Sep 2015 12:47:04 GMT

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

Jean-Baptiste Onofré commented on KARAF-3611:
---------------------------------------------

Sorry, it's not the minimal, it's the standard distribution on karaf-3.0.x branch.

> karaf-maven-plugin fails for startupFeatures + "wrap:"
> ------------------------------------------------------
>
>                 Key: KARAF-3611
>                 URL: https://issues.apache.org/jira/browse/KARAF-3611
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.3
>            Reporter: Ancoron Luciferis
>            Assignee: Freeman Fang
>             Fix For: 3.0.6
>
>
> In case a feature declaration uses a bundle url such as the following:
> {noformat}
> wrap:mvn:org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrapped&amp;Bundle-SymbolicName=wrap-org.pacesys.openstack4j&amp;Bundle-Version=2.0.1&amp;Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&amp;Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*
> {noformat}
> ...and in the assembly/custom distribution project, the feature is defined inside {{<startupFeatures/>}},
the build fails with:
> {noformat}
> [INFO] Installing bundles defined in startup.properties in the system
> [WARNING] Failed to canonicalize path /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated:
File name too long
> [INFO] Downloading: http://nexus-test/nexus/content/groups/public/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar
> [WARNING] Failed to canonicalize path /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated:
File name too long
> [WARNING] Failed to create parent directories for tracking file /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated
> [WARNING] Failed to canonicalize path /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated:
File name too long
> [INFO] Downloading: http://timeleon.com/repository/maven/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar
> [WARNING] Failed to canonicalize path /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated:
File name too long
> [WARNING] Failed to create parent directories for tracking file /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated
> [WARNING] Failed to canonicalize path /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated:
File name too long
> [INFO] Downloading: http://teds.cattsoft.com/archiva/repository/internal/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar
> [WARNING] Failed to canonicalize path /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated:
File name too long
> [WARNING] Failed to create parent directories for tracking file /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.lastUpdated
> [WARNING] Could not resolve wrap:mvn:org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*
> org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact
wrap:mvn:jar:org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*
from/to ancoron-mirror (http://nexus-test/nexus/content/groups/public/): /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.part.lock
(File name too long)
>         at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
>         at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
>         at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
>         at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
>         at org.apache.karaf.tooling.features.Dependency31Helper.resolveById(Dependency31Helper.java:321)
>         at org.apache.karaf.tooling.features.InstallKarsMojo.execute(InstallKarsMojo.java:284)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>         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:116)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>         at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
>         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:289)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer
artifact wrap:mvn:jar:org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*
from/to ancoron-mirror (http://nexus-test/nexus/content/groups/public/): /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.part.lock
(File name too long)
>         at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
>         at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
>         at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
>         at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
>         at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
>         at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
>         at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
>         ... 26 more
> Caused by: java.io.FileNotFoundException: /home/ancoron/.m2/repository/wrap/mvn/org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*/mvn-org.pacesys/openstack4j/2.0.1/jar/withdeps$Bundle-Name=OpenStack4J-Wrap&Bundle-SymbolicName=wrap-org.pacesys.openstack4j&Bundle-Version=2.0.1&Export-Package=org.openstack4j.model.*,org.openstack4j.api.*,org.openstack4j.common.*,org.openstack4j.openstack,&Import-Package=javax.xml.*,org.xml.sax.*,org.w3c.dom.*,javax.activation,javax.net.*.jar.part.lock
(File name too long)
>         at java.io.RandomAccessFile.open(Native Method)
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
>         at org.eclipse.aether.connector.basic.PartialFile$LockFile.tryLock(PartialFile.java:123)
>         at org.eclipse.aether.connector.basic.PartialFile$LockFile.lock(PartialFile.java:71)
>         at org.eclipse.aether.connector.basic.PartialFile$LockFile.<init>(PartialFile.java:58)
>         at org.eclipse.aether.connector.basic.PartialFile$Factory.newInstance(PartialFile.java:210)
>         at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:432)
>         at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
>         ... 31 more
> {noformat}



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

Mime
View raw message