Re: [Keelgroup] Update Documentation: Including install procedure

Michael Nash <[email protected]> Mon, 21 Feb 2005 10:31:12 -0500
Newsgroups gmane.comp.java.keel.user
Organization JGlobal Limited
Message-ID <1108999872.6455.24.camel__44042.7595786334$1109000999$gmane$org@monarch.cablebahamas.net>
Ramin:

On Mon, 2005-02-21 at 10:25, Ramin wrote:
> I'm not sure if I'm doing this entirely right, but here is what I did
> on a WinXP system and the new Maven build procedure:
> 
> - downloaded and setup Maven
> - installed the keel plugin
> 
> - created a build.properties in my "home" directory, which I assumed was:
>         C:\Documents and Settings\<username>\
>   and inserted the following two lines:
>         maven.repo.local=C:/Documents and Settings/<username>/.maven/repository
>         maven.repo.remote=http://ibiblio.org/maven,http://keelframework.org/maven
> 
> - navigated over to $KEEL_HOME/keel-build/example-projects/default and
> typed in "maven"
> - maven started to download a bunch of jars into my maven.repo.local folder

Sounds right. You must have defined the build.properties in the right
place, or it would not have known to find the remote repositories
properly.

> ok, so I guess the files I need for the default project have been
> downloaded into my repository. Now how do I create a new project? What
> would be the maven equivalent of ant create-project?

maven keel:war will create a complete default.war file (in the target
sub-dir). You can then just put this .war in your Tomcat (or other web
server) webapps directory, restart Tomcat, and the app is up and
running.

> P.S. I am not sure if putting my build.properties file in that folder
> made any difference. Because I believe C:/Documents and
> Settings/<username>/.maven/repository is the default repository
> location for maven on windows anyway. I'm not going to mess with it
> right now and keep my repo at that location. it seems to be working
> fine..

Yes, your maven.repo.local setting is telling it to put it at the
default location, which is fine. You can also leave that line out of
build.properties and it would do the same thing. The critical line in
build.properties is the maven.repo.remote line.

Mike

> 
> 
> On Mon, 21 Feb 2005 09:10:13 -0500, Michael Nash
> <[email protected]> wrote:
> > Morning all:
> > 
> > I've just published a new update to the chapter in the doc that
> > discusses the new Maven build system.
> > 
> > http://www.keelframework.org/release/HEAD/docbook/keel-doc/html_chunk/manual/ch13.html#d0e5613
> > 
> > You will also find on there instructions for initially installing Keel
> > itself via Maven - I think you'll find this procedure far simpler than
> > the old method of getting a whole CVS snapshot.
> > 
> > So far on the "default" example project has been set up to work with
> > this new build technique, but I hope to have the remainder of the
> > projects converted today, as it's not difficult to set up.
> > 
> > I will publish updates to this doc frequently, and would appreciate any
> > feedback, especially if the instructions don't work!
> > 
> > Regards,
> > 
> > Mike
> > 
> > P.S. One small addition already: There's a mirror of maven-1.0.2 at
> > http://www.keelframework.org/maven/maven-1.0.2.zip, just for
> > convenience.
> > 
> > http://keelframework.org/documentation.shtml
> > Keelgroup mailing list
> > [email protected]
> > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> > 
>