Hi Erik,
Glad to know that you have got your first hybrid web app running. I have
looked at your pom.xml and it pretty close to what I had managed to come
up with when I wrote my first hybrid web app sample. I had then realized
that maven-bundle-plugin and maven-war-plugin don't interact very well,
especially wrt Bundle-ClassPath. I have not spent much time in finding
better ways of doing this. I have raised an issue with
maven-bundle-plugin developers. You can find the discussion at [1] and
bug that I have created after discussing with them. Pl. take a look at
them and see if you can come up with something better. I think your
suggestion of using maven-bundle-plugin to build the war may be a better
way of doing it. I look forward to your findings.
BTW, why do you enumarete Import-Package in your pom.xml? Does bundle
plugin not calculate it? Or, is it because it is not considering
WEB-INF/lib/*.jar while calculating Import-Package statements?
Thanks,
Sahoo
[1]
http://www.mail-archive.com/users@felix.apache.org/msg04728.html
[2]
https://issues.apache.org/jira/browse/FELIX-1571
Erik Brakkee wrote:
> I have now managed to succesfully build and run the hybrid webapp. The
> basic setup is that I am building the web app using the war plugin and
> using the maven bundle plugin to generate the manifest.
>
> The pom file is however a bit complex (see attachment) because the
> bundle plugin fails to generate the imports automatically. Another
> option would be to use the bundle plugin instead to build the
> application.
>
> Do you see anything special about the pom.xml? Or should I simply use
> the bundle plugin to build the application?
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net