[ 
http://jira.codehaus.org/browse/MNBMODULE-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=269649#action_269649
 ] 

Jesse Glick commented on MNBMODULE-139:
---------------------------------------

Primary bug does not look simple to fix really correctly. Could add a 
{{useOSGiDependencies}} param to {{CreateClusterAppMojo}} and conditionally run 
the {{res.isOSGiBundle()}} logic when this is set. This would work so long as 
{{useOSGiDependencies}} is only customized on the level of the whole suite, 
which I guess is the normal case. However if {{useOSGiDependencies}} is set 
differently for various modules in the suite, cluster creation (based on 
dependencies of the {{nbm-application}} project) will ignore those variant 
settings. Probably this _never_ worked before, so perhaps it does not matter.

> OSGi dependencies processed for no apparent reason during run
> -------------------------------------------------------------
>
>                 Key: MNBMODULE-139
>                 URL: http://jira.codehaus.org/browse/MNBMODULE-139
>             Project: Maven NetBeans Module Plugin
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Jesse Glick
>            Assignee: Jesse Glick
>
> Build and run http://netbeans.org/bugzilla/attachment.cgi?id=108746 and you 
> will see:
> {noformat}
> WARNING [org.netbeans.core.startup.ModuleList]: Error encountered while 
> reading org.apache.geronimo.specs.geronimo_stax_api_1.0_spec
> java.lang.IllegalArgumentException: Bad package component in 
> org.apache.geronimo.specs.geronimo_stax_api_1.0_spec
>       at org.openide.modules.Dependency.checkCodeName(Dependency.java:213)
>       at org.openide.modules.Dependency.create(Dependency.java:293)
>       at 
> org.netbeans.core.startup.ModuleList$ReadInitial.run(ModuleList.java:1536)
>       at 
> org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:125)
>       at 
> org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:542)
>       at org.netbeans.core.startup.ModuleList.readInitial(ModuleList.java:168)
>       at 
> org.netbeans.core.startup.ModuleSystem.readList(ModuleSystem.java:272)
>       at org.netbeans.core.startup.Main.getModuleSystem(Main.java:171)
>       at org.netbeans.core.startup.Main.start(Main.java:302)
>       at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:114)
> [catch] at java.lang.Thread.run(Thread.java:722)
> {noformat}
> Main bug is that {{solrj-nbm/application/target/solrj_nbm/extra}} cluster is 
> being created, even though {{useOSGiDependencies}} is not enabled: {{clean 
> install}} on the {{application}} project does not create this cluster but 
> {{install}} again (i.e. an incremental build) does.
> Secondary bug is in the library header {{Bundle-SymbolicName: 
> org.apache.geronimo.specs.geronimo-stax-api_1.0_spec}}. While a terrible 
> symbolic name, this seems to be permitted by the OSGi spec, and needs to be 
> sanitized to something NB considers a legitimate code name base.

-- 
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