[kepler-dev] Maven and Ptolemy

Tristan King tristan.king at jcu.edu.au
Tue Aug 19 23:06:30 PDT 2008


Attached is a patch for the pom.xml which "should" make it work.The main
problem is to do with the jjtree javacc and antlr generated files being
stored in the svn repo, and being generated again at compile time, resulting
in duplicate classes. I just added a heap of excludes to avoid the stored
files and only use the generated files.

There's also another problem with how jjtree/javacc are generating the files
when using project.basedir is used as the source directory. The exclude list
is much much smaller if you use the structure created by "make maven". I
don't know enough about jjtree/javacc to explain why this is happening, but
it seems like jjtree is finding all the files the jjt refers to that are in
the same directory and copies them to the generated-sources directory, thus
creating the duplicate classes. This doesn't happen when the jjtree source
files are in a seperate directory from the .java files. Maybe the people who
actually work on the jjtree/javacc stuff can explain better why this might
be happening.

Anyways, this patch allows me to run "mvn compile" and "mvn exec:exec".


-- 
Tristan King
Research Officer,
eResearch Centre
James Cook University, Townsville Qld 4811
Australia

Phone: +61747816902
E-mail: tristan.king at jcu.edu.au www: http://eresearch.jcu.edu.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/kepler-dev/attachments/20080820/a6bca88a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptII.pom.xml.patch
Type: application/octet-stream
Size: 12866 bytes
Desc: not available
URL: <http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/kepler-dev/attachments/20080820/a6bca88a/attachment-0001.obj>


More information about the Kepler-dev mailing list