[ 
http://jira.codehaus.org/browse/MNBMODULE-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93114
 ] 

Milos Kleint commented on MNBMODULE-11:
---------------------------------------

the reason for the npe is that the given dependency is not a netbeans module, 
thus doesn't have a correct manifest entries. that library is wrapped within 
netbeans and the proper netbeans module to depend on is
      <dependency>
          <id>org.netbeans.api:org-jdesktop-layout</id>
          <type>spec</type>
      </dependency>

(has to be declared in pom as well).

there should be a descriptive error message here. And ideally the 
org.netbeans.api:org-jdesktop-layout artifact would include the 
net.java.dev.swing-layout:swing-layout artifact as dependency (which is not the 
case now.

> NPE unless specification version is set
> ---------------------------------------
>
>                 Key: MNBMODULE-11
>                 URL: http://jira.codehaus.org/browse/MNBMODULE-11
>             Project: Maven 2.x Netbeans Module Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Trygve Laugstol
>            Assignee: Milos Kleint
>
> After I added this to my modules.xml:
> {code}
>     <dependency>
>       <id>net.java.dev.swing-layout:swing-layout</id>
>       <type>spec</type>
>     </dependency>
> {code}
> I got this NPE:
> {code}
> java.lang.NullPointerException
>         at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
>         at java.util.StringTokenizer.<init>(StringTokenizer.java:204)
>         at 
> org.codehaus.mojo.nbm.AdaptNbVersion.adaptVersion(AdaptNbVersion.java:36)
>         at 
> org.codehaus.mojo.nbm.NetbeansJarUpdateMojo.execute(NetbeansJarUpdateMojo.java:203)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         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:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email

Reply via email to