karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Pozolotin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-621) features-maven-plugin:2.2.0:generate-features-xml fails with NullPointerException
Date Sat, 07 May 2011 14:32:03 GMT
features-maven-plugin:2.2.0:generate-features-xml fails with NullPointerException
---------------------------------------------------------------------------------

                 Key: KARAF-621
                 URL: https://issues.apache.org/jira/browse/KARAF-621
             Project: Karaf
          Issue Type: Bug
          Components: tooling
    Affects Versions: 2.2.0
            Reporter: Andrei Pozolotin


1) running this goal
http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/features-maven-plugin-generate.html

2) results in
features-maven-plugin:2.2.0:generate-features-xml fails with NullPointerException

3) for the test project
https://github.com/carrot-garden/carrot-bugger/blob/master/carrot-bug-features-maven-plugin-001/pom.xml

4) with project parent
https://github.com/carrot-garden/carrot-archon/blob/master/pom.xml

5) you can use this script to reproduce
https://github.com/carrot-garden/carrot-bugger/blob/master/carrot-bug-features-maven-plugin-001/launch/bugger.sh

6) detailed maven exception

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building carrot-bug-features-maven-plugin-001 1.0.20-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ carrot-bug-features-maven-plugin-001
---
[INFO] 
[INFO] --- groovy-maven-plugin:1.0:execute (setup-custom-properties) @ carrot-bug-features-maven-plugin-001
---
### carrotTimeLong=1304778194665
### carrotTimeFile=2011-05-07_09-23-14
### carrotTimeISO=2011-05-07T09:23:14.665-0500
### carrotTimeJnlp=TS: 2011-05-07 09:23:14 -0500
[INFO] 
[INFO] >>> features-maven-plugin:2.2.0:generate-features-xml (generate) @ carrot-bug-features-maven-plugin-001
>>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ carrot-bug-features-maven-plugin-001
---
[INFO] 
[INFO] --- groovy-maven-plugin:1.0:execute (setup-custom-properties) @ carrot-bug-features-maven-plugin-001
---
### carrotTimeLong=1304778194959
### carrotTimeFile=2011-05-07_09-23-14
### carrotTimeISO=2011-05-07T09:23:14.959-0500
### carrotTimeJnlp=TS: 2011-05-07 09:23:14 -0500
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ carrot-bug-features-maven-plugin-001
---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ carrot-bug-features-maven-plugin-001
---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< features-maven-plugin:2.2.0:generate-features-xml (generate) @ carrot-bug-features-maven-plugin-001
<<<
[INFO] 
[INFO] --- features-maven-plugin:2.2.0:generate-features-xml (generate) @ carrot-bug-features-maven-plugin-001
---
[INFO] Step 1: Building list of provided bundle exports
[ERROR] 
java.lang.NullPointerException
	at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.injectSession(DefaultLegacyArtifactCollector.java:77)
	at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:99)
	at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:782)
	at org.apache.maven.shared.dependency.tree.DefaultDependencyTreeBuilder.buildDependencyTree(DefaultDependencyTreeBuilder.java:97)
	at org.apache.karaf.tooling.features.GenerateFeaturesXmlMojo.readKernelBundles(GenerateFeaturesXmlMojo.java:190)
	at org.apache.karaf.tooling.features.GenerateFeaturesXmlMojo.execute(GenerateFeaturesXmlMojo.java:147)
	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:319)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.322s
[INFO] Finished at: Sat May 07 09:23:15 CDT 2011
[INFO] Final Memory: 11M/167M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.2.0:generate-features-xml
(generate) on project carrot-bug-features-maven-plugin-001: Unable to create features.xml
file: java.lang.NullPointerException -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message