This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It would be helpful to have an option where I add JSP, JSF, Spring, Hibernate... support to a maven web(jar...) project and the maven module would add just the right dependencies, palettes, context menues, ... to the current maven project.
the framework's themselves would have to support maven based projects. That requires support from all development teams (not likely in 6.0 timeframe)
But its not even possible to add a framework to a maven project, isn't it?
nope. the frameworks assume an ant based project. a framework basically adds some configuration files, adds libraries and maybe tweaks ant script (? not sure here) to support maven projects, we would have to do the library -> set of maven dependencies conversion, and have the the framework's config files placed at the correct location for maven project. Possibly also modify the pom.xml with additional plugins or configurations.. adding ppisl on cc who is the framworks api guy.
So, you mean the Framework api needs to be extended in a way that .) it is independend of the project type .) and/or that used framework provides different implementations for eg adding jars, ...
what is needed: 1. either extend the API to add library<->maven dependency conversion or come up with a creative way of figuring out automatically. (eg. MD5 checksums could work but so far I had mixed results with that) 2. either extend API to allow embedding of customizer/project creation wizard cod for web framework extensions. Alternatively copy that codebase to maven projects. 3. Cross fingers and pray that none of the frameworks extends build scripts and hardcodes relative paths for configuration files. contrary to my expectations, there is not an explicit dependency on ant projects, but only an implicit one.
this issue is related #113284
more or less done in trunk (3.1-SNAPSHOT). projects with war packaging now have new WebFrameworks panel in properties dialog. The new project wizard will not include frameworks. There are still outstanding issues with individual frameworks (visual web doesn't fully work) but that's bugs only.