Re: Maven: cannot run keel:maven

Michael Nash <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Organization JGlobal Limited
Message-ID <[email protected]>
Shash:

> I tried "maven war:webapp".  But it pretty much took the same amount of 
> time, around 5 minutes.  Most of the time, looks like, goes toward 
> building the uber jar (what is the function of this?).

The uberjar basically contains all of the server-side components of
Keel, in a single jar file. In standalone apps, this gives you a single
jar to deploy. In client apps, ditto - one jar, double-clickable. In
webapps, it's done the same way partly to be consistent, and partly
because this is how the configuration is read now - out of a single
server-side jar file containing all merged resources. Part of the build
of the uberjar is the "config merge" process, which does slow it down,
but is necessary.

>   Question is, do 
> we need the uber JAR for a expanded webapp scenario, since this is, I 
> guess, for a fast edit/build/test cycle?

W/o re-writing the config handling (again), yes, we need the uberjar. No
doubt there are faster ways to build it, but I wanted it to work
properly at first, not necessarily quickly.

>   Also, when building the uber 
> jar, the temp directory is deleted which forces the expansion of all the 
> JARs from scratch everytime, even though none have changed.  Maybe we 
> can remove the delete step, with the gotch'a being you have to delete 
> manually if you delete some dependency JARs, or you deleted something in 
> your app? I am not too sure of all the Maven options, maybe I am 
> overlooking something obvious.

No, I don't think you are. I'm loathe to optimize this too much until it
settles down as completely rock solid, as anything other than a "total
re-build" requires more thought on the developers part, and there's
already too much to think about when building as it is (still).

Simple is a bit slow at this point, I realize, but I'd like to defer
optimizations as long as possible.

Mike

> 
> Shash
> 
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com

http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.