After a closer look, I believe the NPE is only possible when included
feature cannot be found, i.e. it is not part of the target platform. I've
added check for null and "feature not found" warning.

Please provide more info in the bug if you believe the
my.group.otherfeature feature exists and should have been found by the
build.

> This appears to be a regression in 0.3.0-DEV-1785. I've opened
> MNGECLIPSE-1019 to track this problem and will try to fix it by next week.
>
>> Using eclipse-feature packaging, I get an NPE when having an includes
>> element
>> in my feature.xml:
>>
>>    <includes
>>          id="my.group.otherfeature"
>>          version="0.0.0"/>
>>
>> mvn output:
>>
>> ...
>> constituent[0]:
>> file:/auto/cliq/tools/maven/tycho/tycho/tycho-osgi-components-0.3.0-DEV-1785.jar
>> constituent[1]:
>> file:/auto/cliq/tools/maven/tycho/tycho/org.eclipse.osgi-3.4.0.v20080605-1900.jar
>> constituent[2]:
>> file:/auto/cliq/tools/maven/tycho/lib/wagon-ssh-1.0-beta-4.jar
>> constituent[3]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-model-3.0-TYCHO-698080.jar
>> constituent[4]:
>> file:/auto/cliq/tools/maven/tycho/lib/wagon-file-1.0-beta-4.jar
>> constituent[5]:
>> file:/auto/cliq/tools/maven/tycho/lib/plexus-interpolation-1.1.jar
>> constituent[6]:
>> file:/auto/cliq/tools/maven/tycho/lib/commons-cli-1.0.jar
>> constituent[7]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-artifact-3.0-alpha-2-TYCHO-695719.jar
>> constituent[8]:
>> file:/auto/cliq/tools/maven/tycho/lib/plexus-container-default-1.0-alpha-48.jar
>> constituent[9]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-project-3.0-TYCHO-698080.jar
>> constituent[10]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-profile-3.0-TYCHO-698080.jar
>> constituent[11]:
>> file:/auto/cliq/tools/maven/tycho/lib/nekohtml-1.9.6.2.jar
>> constituent[12]:
>> file:/auto/cliq/tools/maven/tycho/lib/commons-logging-api-1.1.jar
>> constituent[13]:
>> file:/auto/cliq/tools/maven/tycho/lib/wagon-http-shared-1.0-beta-4.jar
>> constituent[14]:
>> file:/auto/cliq/tools/maven/tycho/lib/doxia-sink-api-1.0-alpha-9.jar
>> constituent[15]:
>> file:/auto/cliq/tools/maven/tycho/lib/aspectjrt-1.5.3.jar
>> constituent[16]:
>> file:/auto/cliq/tools/maven/tycho/lib/plexus-utils-1.5.5.jar
>> constituent[17]:
>> file:/auto/cliq/tools/maven/tycho/lib/xbean-reflect-3.4.jar
>> constituent[18]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-workspace-3.0-TYCHO-698080.jar
>> constituent[19]:
>> file:/auto/cliq/tools/maven/tycho/lib/plexus-interactivity-api-1.0-alpha-6.jar
>> constituent[20]:
>> file:/auto/cliq/tools/maven/tycho/lib/wstx-asl-3.2.6.jar
>> constituent[21]:
>> file:/auto/cliq/tools/maven/tycho/lib/xercesMinimal-1.9.6.2.jar
>> constituent[22]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-plugin-api-3.0-TYCHO-698080.jar
>> constituent[23]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-lifecycle-3.0-TYCHO-698080.jar
>> constituent[24]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-embedder-3.0-TYCHO-698080.jar
>> constituent[25]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-reporting-api-3.0-TYCHO-698080.jar
>> constituent[26]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-core-3.0-TYCHO-698080.jar
>> constituent[27]:
>> file:/auto/cliq/tools/maven/tycho/lib/wagon-ssh-external-1.0-beta-4.jar
>> constituent[28]: file:/auto/cliq/tools/maven/tycho/lib/jsch-0.1.38.jar
>> constituent[29]:
>> file:/auto/cliq/tools/maven/tycho/lib/stax-api-1.0.1.jar
>> constituent[30]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-toolchain-3.0-TYCHO-698080.jar
>> constituent[31]:
>> file:/auto/cliq/tools/maven/tycho/lib/stax-api-1.0-2.jar
>> constituent[32]: file:/auto/cliq/tools/maven/tycho/lib/log4j-1.2.12.jar
>> constituent[33]:
>> file:/auto/cliq/tools/maven/tycho/lib/wagon-ssh-common-1.0-beta-4.jar
>> constituent[34]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-distribution-3.0-TYCHO-698080.jar
>> constituent[35]:
>> file:/auto/cliq/tools/maven/tycho/lib/wagon-provider-api-1.0-beta-4.jar
>> constituent[36]:
>> file:/auto/cliq/tools/maven/tycho/lib/wagon-http-lightweight-1.0-beta-4.jar
>> constituent[37]:
>> file:/auto/cliq/tools/maven/tycho/lib/maven-shared-model-1.0-TYCHO-698080.jar
>> ---------------------------------------------------
>> java.lang.NullPointerException
>>         at
>> org.codehaus.tycho.eclipsepackaging.PackageFeatureMojo.updateFeatureXml(PackageFeatureMojo.java:226)
>>         at
>> org.codehaus.tycho.eclipsepackaging.PackageFeatureMojo.execute(PackageFeatureMojo.java:110)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:623)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:521)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:288)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:172)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:218)
>>         at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:899)
>>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
>>         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:289)
>>         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
>>         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
>>
>> What's the problem here?
>> Thanks!
>> -Max



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to