On 24 Oct 2010, at 09:21, Egon Willighagen wrote: > Hi all, > > On Sat, Oct 23, 2010 at 4:39 PM, Egon Willighagen > <[email protected]> wrote: >> On Sat, Oct 23, 2010 at 3:27 PM, Alan R Williams <[email protected]> wrote: >>> Do you have the problem if you run "mvn install" ? >> >> I also downloaded from SVN and will try that too... > > OK, I imported the sources from SVN, and ran 'mvn install' on that > too, and get the same results with the latter. I also get the same > missing classes... > > I guess I should not import all modules into Eclipse? Is it OK to > remove the modules "plugins-api" and "graph-model". I do not seem to > get any new errors when I remove these... > > The latter fails on AST* classes which do not seem to be correctly > build on compile time from... > > Ah... well, they are build, but the folder where the autogenerated > sources are created is not part of the Build-path... > > So, the solution is the include these paths into the build path of the > 'graph-model' module: > > * target/generated-sources/javacc > * target/generated-sources/jjtree > > At a file level, this corresponds to adding these to lines to > taverna-workbench-2.2.0/ui/net.sf.taverna.t2.ui-components/graph-model/.classpath: > > <classpathentry kind="src" path="target/generated-sources/javacc"/> > <classpathentry kind="src" path="target/generated-sources/jjtree"/> > > However, the .classpath file is not under version control, and I do > not know the Maven equivalent of this either...
The javacc parser files are generated as part of the build, specifically in the Maven 'generate-sources' phase [1] . Maven adds the generated files to the source path and they are compiled with the rest of the source in the 'compile' phase. So using 'mvn package' should build all the code correctly. Maven also manages the sourcepath in Eclipse so 'Run As > Maven package' should generate all the files and update the sourcepath. David. [1] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference -- David Withers School of Computer Science, University of Manchester, Oxford Road, Manchester, M13 9PL, UK. +44 (0)161 275 0683 ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/about/contact-us/ Developers Guide: http://www.taverna.org.uk/developers/
