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] [Updated] (KARAF-3897) NPE in karaf-maven-plugin's goal features-add-to-repository
Date Mon, 03 Aug 2015 08:48:04 GMT

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

Jean-Baptiste Onofré updated KARAF-3897:
----------------------------------------
    Summary: NPE in karaf-maven-plugin's goal features-add-to-repository  (was: NPE in karat-maven-plugin's
goal features-add-to-repository)

> NPE in karaf-maven-plugin's goal features-add-to-repository
> -----------------------------------------------------------
>
>                 Key: KARAF-3897
>                 URL: https://issues.apache.org/jira/browse/KARAF-3897
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 4.0.0
>            Reporter: Bernhard Schuhmann
>            Assignee: Jean-Baptiste Onofré
>         Attachments: pom.xml
>
>
> Goal {{karaf:features-add-to-repository}} from {{karat-maven-plugin}} seems to be broken
in version 4.0.0. Feature files get copied, but copying a bundle throws a NPE:
> {noformat}
> [INFO] Copying artifact: org.apache.karaf.features:standard:xml:features:4.0.0
> [INFO] Copying artifact: org.apache.karaf.diagnostic:org.apache.karaf.diagnostic.core:jar:4.0.0
> [WARNING] Error copying artifact org.apache.karaf.diagnostic:org.apache.karaf.diagnostic.core:jar:4.0.0
> java.lang.NullPointerException
> 	at java.io.FileInputStream.<init>(FileInputStream.java:130)
> 	at org.apache.karaf.tooling.utils.MojoSupport.copy(MojoSupport.java:341)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.copy(AddToRepositoryMojo.java:93)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.copyBundlesToDestRepository(AddToRepositoryMojo.java:75)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.execute(AddToRepositoryMojo.java:63)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> 	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:128)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
> 	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:497)
> 	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)
> [INFO] Copying artifact: org.apache.karaf.jaas:org.apache.karaf.jaas.config:jar:4.0.0
> [WARNING] Error copying artifact org.apache.karaf.jaas:org.apache.karaf.jaas.config:jar:4.0.0
> java.lang.NullPointerException
> 	at java.io.FileInputStream.<init>(FileInputStream.java:130)
> 	at org.apache.karaf.tooling.utils.MojoSupport.copy(MojoSupport.java:341)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.copy(AddToRepositoryMojo.java:93)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.copyBundlesToDestRepository(AddToRepositoryMojo.java:75)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.execute(AddToRepositoryMojo.java:63)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> 	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:128)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
> 	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:497)
> 	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)
> [INFO] Copying artifact: org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:4.0.0
> [WARNING] Error copying artifact org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:4.0.0
> java.lang.NullPointerException
> 	at java.io.FileInputStream.<init>(FileInputStream.java:130)
> 	at org.apache.karaf.tooling.utils.MojoSupport.copy(MojoSupport.java:341)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.copy(AddToRepositoryMojo.java:93)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.copyBundlesToDestRepository(AddToRepositoryMojo.java:75)
> 	at org.apache.karaf.tooling.features.AddToRepositoryMojo.execute(AddToRepositoryMojo.java:63)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> 	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:128)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
> 	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:497)
> 	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)
> {noformat}
> The subfolders for each bundle are created in the target repository btw, e.g. {{target/features-repo/org/apache/karaf/jaas/org.apache.karaf.jaas.config/4.0.0}}.
>  



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

Mime
View raw message