Hi Paul,
After spending the last couple of days on it, here are the changes i
made.
There are now only 3 poms - sarasvati-parent. sarasvati-core and
sarasvati-visual. I have decided to use maven strictly for packaging
purposes. The file structure is also very much simplified, essentially
we only have POM files and there is no need for code duplication or
doing any symbolic links.
I managed to figure out to get the antlr-plugin to generate the rubric
paser source code prior to compilation, however there is a requirement
for this to work - I took the liberty to create an "antlr3" folder in
the project where the rubric.g files are located. This is because
antlr plugin expects this java package style convention - I am unable
to work around this requirement. I think the best way is do a symbolic
link from lang folder, however I will leave you to make the final
decision.
A maven user simply checkout the source from svn and issued the
following command at - "mvn install" and the packaging and
installation of both sarasvati-*.jars will be installed. The jars
are located at both sarasvati-core/target and sarasvati-visual/target.
There are other artifacts (dependencies, uber jar) created along with
the main sarasvati artifacts. The user will choose which is most
appropriate for them.
Note that POMs will be using the eclipse draw2d and netbeans visual
jars in the project so there will be no chance of getting the wrong
version.
I also have consciously avoid changing the ant scripts to use the
maven pom configuration as that would require these folks to install
maven. Also initially I was using trying to get antrun-task plugin to
invoke the ant build "buildLangJar" target and it proved to be too
difficult for me to handle, luckily I found that using antlr-plugin
gives a better integration.
Any thoughts?
Regards
chung-onn
On Aug 5, 11:54 am, Paul Lorenz <
plor...@gmail.com> wrote:
> When building the jars for release, the rubric files are generated, compiled
> and included in the main sarasvati jar. We should be able to do the same for
> the maven build, though we might have to change where they are generated to.
> The only reason for the rubric.jar is so that we don't have to have the
> generated files in the source tree (with all their warnings, etc).
>
> cheers,
> Paul
>
> On Tue, Aug 4, 2009 at 11:19 PM, Cheong Chung Onn <
chung...@gmail.com>wrote:
>
>
>
> > Hi Paul
>
> > Let me take a look at ant's maven task this weekend. Btw, i just think
> > there is still a potential problem - in the Ant build, it will create a
> > rubric.jar first before building the sarasvati-* jar and I wonder how
> > to make this rubric jar visible to maven build process. The worse case
> > situation is to make the rubric into a maven pom too. What say you?
>
> > Regards
> > chung-onn
>
> > Paul Lorenz wrote:
> > > Documenting the required jars in the WIKI seems like the right
> > > approach for now. I think maven and ant can work together as I read
> > > about maven tasks for ant. We want to build mavenized jars and include
> > > them in the release, as well as allow users to generate their own jars
> > > and push them to local repositories.
>
> > > So we can get rid of the POMs for test and editor (leaving the
> > > examples as you suggest). I'll look into the maven ant tasks when I
> > > get closer to doing the RC3 release.
>
> > > I'm going to try and spend my project time for the next week or two on
> > > documentation updates and hopefully get a release out.
>
> > > cheers,
> > > Paul
>
> > > <
chung...@gmail.com <mailto:
chung...@gmail.com>