|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (MEVENIDE-563) Maven project doesn't work with Palette ManagerMaven project doesn't work with Palette Manager
----------------------------------------------- Key: MEVENIDE-563 URL: http://jira.codehaus.org/browse/MEVENIDE-563 Project: mevenide Issue Type: Bug Components: mevenide2-netbeans Affects Versions: NB_2.2 Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center Reporter: Emilian Bold Assignee: Milos Kleint The NetBeans form editor allows users to register their own components. But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Updated: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milos Kleint updated MEVENIDE-563: ---------------------------------- Fix Version/s: NB_FUTURE the problem is the action requires the project to implement AntArtifact interface which the Maven support cannot provide. I've filed as http://www.netbeans.org/issues/show_bug.cgi?id=118694 in netbeans issuezilla. Nothing can be done on mevenide side. A possible workaround is to add the beans to palette directly from the repository jar. > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Commented: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110046 ] Emilian Bold commented on MEVENIDE-563: --------------------------------------- I'd like to add that using the palette with the JARs from the repository also doesn't work. I'm able to use the same custom Bean in a standard J2SE project, but with a maven project (which has all the dependencies), it doesn't work. It might be that the Palette manager also looks at the "dependencies" of the parent project for the form file and sees if it can instantiate the bean. I assume the Maven project doesn't provide this. For example, in a normal J2SE Project I need to add the "Library" (where the bean resides) as a dependency otherwise the form editor doesn't work. Thus, while the Palette manager might be able to register javabeans using the repository JARs, it still won't be able to instantiate them if all those JARs don't show up as some dependency. This is really annoying as I've learned to use the custombeans a lot and now I can't edit any form (I need to move the form to another temporary project in order to edit it). AntArtifact.getArtifactLocations() might be what I need... > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Commented: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110051 ] Milos Kleint commented on MEVENIDE-563: --------------------------------------- Yes, you need to have the bean on the classpath of the project. In j2se projects it means having it as library of the project, in maven projects it means declaring a dependency on the artifact defining the bean. I'm not sure I follow where the problem is. I'm not using the palette myself much but I just tried to register a Panel instance from repository jar of Project A in the palette, in project B which depends on A, I opened another panel from project B and adde dthe panel from palette without problems. > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Commented: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110052 ] Emilian Bold commented on MEVENIDE-563: --------------------------------------- My setup is this: Client [1] (nbm) which depends on Server [2] (nbm). Server defines a Bean which inherits from Library [2] (normal JAR). Basically you can think of the Server project as a library wrapper. So perhaps it works in this 1:1 case you mentioned about but it doesn't work for me, maybe because my bean touches a lot of artifacts which are dependencies of Server module. I'll try to make a simple example with just a bean and a more complex dependency structure. Maybe I'm doing something wrong on my side, but it does work for normal projects so I assume it's maven-related. Plus, I just noticed, I can't even open the forms that belong to Server and use that custom bean (declared in Server itself). Sample graph: Client (nbm) --- (dep) -- > Server (nbm) Server (nbm) --- (dep) --> Library Wrapper (nbm) -- wraps --> Parent Bean Library (jar). Server (nbm) --- (dep) ---> Other JARs. The bean basically touches most of the Server's dependencies. > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Commented: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110061 ] Emilian Bold commented on MEVENIDE-563: --------------------------------------- Ok, my bad. I *can* use the Bean if using a proper Library for the Palette Manager with all the needed JARs. The problem was a bit more subtle. From long ago, when I first migrated to Mevenide, I had some compile problems. So I've added as a dependency something like this: compile dependency for the nbm library wrapper and provided dependency for the jar I was wrapping with the library wrapper. Well, it seems that the "provided" scope overrided the "compile" scope from the wrapper (which has a dependency on it). So, the Palette Manager won't find the JAR due to this. Interesting. Sorry for the spam, this was most unexpected. > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Commented: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110063 ] Milos Kleint commented on MEVENIDE-563: --------------------------------------- that's indeed strange. AFAIK the provided scope equals compile scope, it's expected to be part of the environment at runtime so for example war files won't include provided dependencies but only the compile ones.. > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Commented: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156527#action_156527 ] Jaromir Uhrik commented on MEVENIDE-563: ---------------------------------------- This bug was transferred to the NetBeans Issuezilla bug tracking system as http://www.netbeans.org/issues/show_bug.cgi?id=154478 > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
|
|
[jira] Closed: (MEVENIDE-563) Maven project doesn't work with Palette Manager[ http://jira.codehaus.org/browse/MEVENIDE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milos Kleint closed MEVENIDE-563. --------------------------------- Resolution: Duplicate closing the issue as duplicate of the newly created one in netbeans.org issuezilla. Please post your additional comments to the new issue. > Maven project doesn't work with Palette Manager > ----------------------------------------------- > > Key: MEVENIDE-563 > URL: http://jira.codehaus.org/browse/MEVENIDE-563 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_2.2 > Environment: Java 5, OSX, NetBeans 5.5.1, latest Mevenide from the update center > Reporter: Emilian Bold > Assignee: Milos Kleint > Fix For: NB_FUTURE > > > The NetBeans form editor allows users to register their own components. > But Maven2 projects can't be used at all. Opening a JavaBean and selecting Tools->Add to Palette... gives an error that it can't be used. > Normally the Palette Manager should be able to use either the classes from targer/ or the JARs from the local maven repo. > From the little code I've read in the Palette Manager classes, it uses the project's classloader. Perhaps this is what's missing (or maybe it's more subtle than that...) -- 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 |
| Free embeddable forum powered by Nabble | Forum Help |