|Assembling RAP 1.5 application with Maven [message #1059671]
||Tue, 21 May 2013 07:35
| Cristian Ionitoiu
Registered: April 2013
I'm working on a RAP 1.5 application using Eclipse 4.2 that can be assembled into a war file either via Ant or via Maven. The application uses the Google visualization bundles org.eclipse.rap.rwt.excanvas and org.eclipse.rap.rwt.visualization.google.
When the application is assembled to a war file all bundle dependencies have the same version with the exception of the above two bundles.
If the application is built via Ant, both bundles are fetched with the version 126.96.36.199305171114, as the following jars are placed into the plugins directory:
org.eclipse.rap.rwt.visualization.google_188.8.131.52305171114.jar and org.eclipse.rap.rwt.excanvas_184.108.40.206305171114.jar.
If the application is built via Maven, the fetched bundles have different versions: org.eclipse.rap.rwt.excanvas-220.127.116.1120220-1720.jar, and
Error: Error: Operation "call" on target "jsex" of type "[object Object]" failed:
this[b[e]] is not a function
This error seems to be documented here but with the observation that application does use only org.eclipse.swt.widgets.Composite as suggested in comment 10 as an workaround. So, it is not clear to me why the error appears strictly related to the suggestions in the bug description.
It is clearly a strange versioning issue, because if I manually replace the two bundles in the Maven war with the corresponding (newer?) bundles from the Ant war and I change accordingly the feature.xml then the Maven war works fine including the graphics functionality.
I have tried to find 18.104.22.168305171114 version of the bundles via tycho/maven but I failed (even after using last built of the Orbit repository), because I would actually like to develop and configure the application via Maven NOT via Ant. Currently these are the repositories used in the parent pom:
<!-- add Juno repository to resolve dependencies -->
<id>Rap 1.5 Incubator</id>
Any suggestion or help in solving this would be greatly appreciated. Thanks and please let me know if you need more information,
Powered by FUDForum
. Page generated in 0.35250 seconds