You have to split the projects into two: One that defines the generator, the other that uses it. Typically the latter has a small workflow that calls the generator workflow as cartridge.
Besides that it is best practice to separate the cartridge from the application of it, it is simply necessary when executing the oAW M2 plugin. If you use any supporting Java classes they have to be compiled. This happens in the compile phase. The generator is used in the generate-sources phase, which is before. See the maven build lifecycle reference. When spliiting this up this is no problem. The generator cartridge is build before using it, so also the java classes get compiled before. You will find this pattern in any Fornax cartridge project. Kind regards, ~Karsten ----- Original Message ----- From: "dannythomas" <daniel.tho...@elca.ch> To: fornax-developer@lists.sourceforge.net Sent: Tuesday, August 25, 2009 11:19:20 AM (GMT+0100) Europe/Berlin Subject: [Fornax-developer] [fornax-oaw-m2-plugin] executing workflow Hi everybody, I have following situation: After making a code generator which now works excellently in when run in eclipse, I would like to be able to use the maven plugin for easy deployment and for being able to set up a small test framework (which then could call the plugin to generate code from a model). The plugin seems to execute, finds my workflow.oaw file and starts expanding the different types in the model. But as soon as it tries to execute a java file it tells me that it can't find the file... or more precisely: 2009-08-25 10:59:44,451 ERROR [org.openarchitectureware.xpand2.Generator] Error in Component generator of type org.openarchitectureware.xpand2.Generator: EvaluationException : org.fornax.cartridges.uml2.javabasic.EL4JHelper.getFQNPackagePath(org.eclipse.uml2.uml.Type) not found, problems were: [AnalysationIssueType not found] - Couldn't find Java type org.fornax.cartridges.uml2.javabasic.EL4JHelper : org.fornax.cartridges.uml2.javabasic.EL4JHelper My project structure is following: [.pom.xml] src - main - java - [package structure of .java files] - [all .java files needed] - resources - Model [containing the model file] - oaw [where the workflow.oaw is located] -xpand [here is the first template that gets run by workflow.oaw - [package structure of all .ext and .xpt files] Would I first have to compile the .java files and/or put them somewhere else? Or is there any way of configuring this to work in the pom file? PS. yes, I took the javabasic catridge as starting point (and changed them directly, which is not the recommended usage), but now have changed nearly everything and have just kept the package structure for convenience). Thanks for any helpful pointers Daniel Thomas -- View this message in context: http://www.nabble.com/-fornax-oaw-m2-plugin--executing-workflow-tp25131017s17564p25131017.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer