You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/06/29 16:55:04 UTC

[jira] [Commented] (KARAF-3809) Create assembly fails under Windows

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

ASF GitHub Bot commented on KARAF-3809:
---------------------------------------

GitHub user akuhtz opened a pull request:

    https://github.com/apache/karaf/pull/69

    KARAF-3809: Fix issues under windows.

    This PR is related to KARAF-3809: Fix issues under windows.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/akuhtz/karaf windows-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/69.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #69
    
----
commit 4f0e1c715a6de060524a232e23a2b2f12248f499
Author: Andreas Kuhtz <an...@gmail.com>
Date:   2015-06-29T14:42:49Z

    Fix issues under windows.

----


> Create assembly fails under Windows
> -----------------------------------
>
>                 Key: KARAF-3809
>                 URL: https://issues.apache.org/jira/browse/KARAF-3809
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 4.0.0
>         Environment: Windows 7
> java version "1.7.0_65"
> Java(TM) SE Runtime Environment (build 1.7.0_65-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
>            Reporter: Andreas Kuhtz
>
> Create an assembly with the karaf-maven-plugin fails under Windows.
> This is the first problem:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly (process-resources) on project distribution: 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 (process-resources) on project distribution: Unable to build assembly
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> 	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.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:132)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> 	... 19 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)
> 	... 21 more
> 	Suppressed: java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:/D:/svn/<some of my directories>/distribution/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)
> 		... 26 more
> {code}



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