karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neha (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-3816) Build fails due to illegal character in path
Date Wed, 01 Jul 2015 10:17:05 GMT

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

Neha edited comment on KARAF-3816 at 7/1/15 10:17 AM:
------------------------------------------------------

I created the attached pom.xml file using the standard Karaf archetype and it throws the same
error.
There are two points of concern:
1. That it does NOT use a maven artifact to get the features file and,
2. The "file:" format is not accepted by Windows.


was (Author: nem):
I created this file using the standard Karaf archetype and it throws the same error.
There are two points of concern:
1. That it does NOT use a maven artifact to get the features file and,
2. The "file:" format is not accepted by Windows.

> Build fails due to illegal character in path
> --------------------------------------------
>
>                 Key: KARAF-3816
>                 URL: https://issues.apache.org/jira/browse/KARAF-3816
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>         Environment: Win 8.1 JDK 1.8
>            Reporter: Neha
>         Attachments: pom.xml
>
>
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly
(default-assembly) on project xyz-project-packaging-karaf-archive: Unable to build assembly:
Error -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly
(default-assembly) on project xyz-project-packaging-karaf-archive: Unable to build assembly
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> 	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:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:483)
> 	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)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to build assembly
> 	at org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:170)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	... 20 more
> Caused by: org.apache.karaf.features.internal.util.MultiException: Error
> 	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:84)
> 	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)
> 	at org.apache.karaf.profile.assembly.Builder.loadRepositories(Builder.java:1029)
> 	at org.apache.karaf.profile.assembly.Builder.bootStage(Builder.java:703)
> 	at org.apache.karaf.profile.assembly.Builder.doGenerateAssembly(Builder.java:554)
> 	at org.apache.karaf.profile.assembly.Builder.generateAssembly(Builder.java:352)
> 	at org.apache.karaf.tooling.AssemblyMojo.doExecute(AssemblyMojo.java:296)
> 	at org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:164)
> 	... 22 more
> 	Suppressed: java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:/C:/Documents/Development/git/xyz-project/xyz-project-packaging/xyz-project-packaging-karaf/xyz-project-packaging-karaf-archive/target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml
> 		at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
> 		at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
> 		at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
> 		at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
> 		at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
> 		at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
> 		at org.apache.karaf.profile.assembly.Builder$4.downloaded(Builder.java:1040)
> 		at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:133)
> 		at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:127)
> 		at org.apache.karaf.features.internal.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:344)
> 		at org.apache.karaf.features.internal.download.impl.DefaultFuture.addListener(DefaultFuture.java:293)
> 		at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.download(MavenDownloadManager.java:127)
> 		at org.apache.karaf.profile.assembly.Builder.loadRepositories(Builder.java:1035)
> 		... 27 more
> {code}



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

Mime
View raw message