[
https://issues.apache.org/jira/browse/SLING-3118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13778680#comment-13778680
]
Stefan Egli commented on SLING-3118:
------------------------------------
Yep - ideally we will not have to wrap those bundles since we should be able to
rely on released bundles and retrieve them from public repos. But for example
the install support bundle is not yet released (hence embedded in slingclipse
atm), but as soon as it will be, we should remove it from slingclipse.
> NPE during invocation of the SlingBundleWizard
> ----------------------------------------------
>
> Key: SLING-3118
> URL: https://issues.apache.org/jira/browse/SLING-3118
> Project: Sling
> Issue Type: Bug
> Components: IDE
> Reporter: Konrad Windszus
> Fix For: Sling Eclipse IDE 1.0.0
>
>
> I get a NPE during calling File->New->New Sling Bundle Project. That
> stacktrace is as following
> ...
> Root exception:
> java.lang.NullPointerException
> at
> org.apache.sling.ide.eclipse.m2e.EmbeddedArchetypeInstaller.addResource(EmbeddedArchetypeInstaller.java:81)
> at
> org.apache.sling.ide.eclipse.ui.wizards.np.NewSlingBundleWizard.installArchetypes(NewSlingBundleWizard.java:48)
> at
> org.apache.sling.ide.eclipse.ui.wizards.np.ChooseArchetypeWizardPage$6.run(ChooseArchetypeWizardPage.java:192)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> This is caused by referring to the archetype artifact with the filename
> "target/archetypes/sling-bundle-archetype-1.0.1-SNAPSHOT.jar" where in fact
> the filename (at least in my build) is
> "/target/archetypes/sling-bundle-archetype-1.0.1-20121112.102907-462.jar"
> A solution would be to strip the version from the filename after it has been
> downloaded by the maven-dependency-plugin
> (http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html) by
> leveraging the "stripVersion" flag and referring only to the artifactId as
> filename.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira