3 Apr 2012 5:39 AM #1
Ext JS in a maven project.
Is there any way to integrate the ext-js building in a maven project ?
We have a web application with the server side written in Java taht gets builded in a war using maven. As for now I saw that for the Sencha SDK Tools 'create' command to work, the application should be deployed and started, only then we can get the *.jsb3 file. Having this behavior it's impossible to get the app-all.js file running the sencha tool from maven (via command line), catch the output files and package them. Also it's not clear about extjs distribution, as I understand, not only extjs.js must be left in the extjs folder (and resources of course) but also the src directory (without it left there I get errors).
So, have someone integrated extjs in a maven project ? Maybe there is some maven plugin for doing the job. And what extjs files should go to the web server for the application to work well, or I should copy there all extjs dist ?
4 Apr 2012 6:32 PM #2
A possible solution would be for interest of me too. We are currently writing a solution to embedd php into maven. There are multiple feature requests and one of them related to extjs integration. First of all: Is there an official contribution around?
5 Apr 2012 2:24 AM #3
What I am doing is described in Ext JS 4, getting started : section 3. Deployement.
There is a tool that analyzes your app.js and make a file app-all.js which you should include in your app.
The first question is related to the fact that this thing works only when passing as argument the actual URL of the application, but I would like it to work just having the application fils tructure.
The second question is : what files from ext js dist should I include in web-app after obtaining the app-all js file ? I thought that only app-all.js and extjs/ext.js are needed but without the src directory(extjs/src) deployed it does not work.
30 Apr 2012 3:32 AM #4
Have you discovered any sollution for this?
I'm having the same problem.
30 Apr 2012 5:25 AM #5
I would also like to see examples or guides on integrating ext builds with maven .
30 Apr 2012 7:26 AM #6
10 May 2012 11:43 PM #7
Would be really nice however if Sencha would provide a Maven version, so that people just simply include an "ext" dependency in their project and be ready to start, e.g.:
<dependency> <groupId>Sencha</groupId> <artifactId>ExtJS</artifactId> <version>4.1.0</version> </dependency>
11 May 2012 1:00 AM #8
Please send me a private message with your email contact. I will send you a sample project that works (including extjs 4.1.0 gpl)
I wrote to the sencha support. Let us hope sencha decides to support this. It would even be nice if they simply decide to publish newest versions to a maven repository. Whether this will be hosted by php-maven or by sencha itself is not that important. Maybe sencha itself decides to host a small maven repos.
12 May 2012 12:26 PM #9
13 May 2012 8:13 AM #10
For php plugin please read http://www.php-maven.org/prepare.html
The extjs gpl will soon be located in the php-maven repository if sencha does not provide their own repository. And we will provide some plugins to let the pom.xml be very small and to automatically create the jsb3 build file.
Please watch our google groups for nrews and feel free to report issues there.