Re: [Fornax-developer] Fornax oAW/MWE Maven2 Plugin V3.0.1 - Generated code into target folder
Hi there, so after figuring out differnt configuration now i have one which seemed to be working (Workflow has ran and the code has been generated), but it will produce an error at the end... 20603 [main] DEBUG enerator.CompositeGeneratorFragment - replacing binding : org.eclipse.xtext.ui.core.editor.contentassist.ContentAssistContext.Factory - org.eclipse.xtext.ui.common.editor.contentassist.DefaultContentAssistContextFactory (contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment) 20603 [main] DEBUG enerator.CompositeGeneratorFragment - with new binding : org.eclipse.xtext.ui.core.editor.contentassist.ContentAssistContext.Factory - org.eclipse.xtext.ui.common.editor.contentassist.antlr.ParserBasedContentAssistContextFactory (contributed by de.itemis.xtext.antlr.XtextAntlrUiGeneratorFragment) 20716 [main] INFO eclipse.emf.mwe.core.WorkflowRunner - workflow completed in 16723ms! Adding /home/...grammar/target/src-gen/src Adding /home/../src/protected/java Adding /home/../generated/java [INFO] Adding /home/.../grammar/src/main/resources to the list of current resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error configuring: org.apache.maven.plugins:maven-resources-plugin. Reason: ERROR: Cannot override read-only parameter: resources in goal: resources:resources [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 29 seconds [INFO] Finished at: Wed Mar 10 09:32:41 CET 2010 [INFO] Final Memory: 61M/611M [INFO] May be someone has a tip.? many thanks in advance... Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Fornax-oAW-MWE-Maven2-Plugin-V3.0.1---Generated-code-into-target-folder-tp27354657s17564p27846901.html Sent from the Fornax-Platform mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer
Re: [Fornax-developer] Fornax oAW/MWE Maven2 Plugin V3.0.1 - Generated code into target folder
Hi, many thanks for the links...they brought me a large step further ... Patrik Nordwall wrote: Maybe this is helpful for you: http://blogs.itemis.de/stundzig/archives/563 This is also good (but not your problem): http://kthoms.wordpress.com/2009/07/20/building-tmf-xtext-projects-with-maven/ Kind ergards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Fornax-oAW-MWE-Maven2-Plugin-V3.0.1---Generated-code-into-target-folder-tp27354657s17564p27423540.html Sent from the Fornax-Platform mailing list archive at Nabble.com. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer
Re: [Fornax-developer] Fornax oAW/MWE Maven2 Plugin V3.0.1 - Generated code into target folder
I don't think you have to do that in the fornax-oaw-m2-plugin. You can do it in the workflow.oaw property name=outlet.src.dir value=target/src-gen/ component id=generator class=oaw.xpand2.Generator skipOnErrors=true fileEncoding=iso-8859-1 metaModel idRef=metamodel/ outlet path=${outlet.src.dir} / In case you use workflows that runs other workflows, such in sculptor, you can override properties. sculptorworkflow.oaw: property name=outlet.src.dir value=src/generated/java/ in application project workflow.oaw: cartridge file=sculptorworkflow.oaw modelFile value=model.btdesign/ appProject value=DDDSample/ outlet.src.dir value=target/src-gen/ /cartridge /Patrik Karl Heinz Marbaise wrote: Hi, I'm trying to configure the Maven 2 plugin in that way to have all the generated code under target/src-gen folder instead src-genbecause it's the maven way... Does anyone has an example how to do so, cause i'm trying that for hours... Many thanks in advance... Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Fornax-oAW-MWE-Maven2-Plugin-V3.0.1---Generated-code-into-target-folder-tp27354657s17564p27355499.html Sent from the Fornax-Platform mailing list archive at Nabble.com. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer
Re: [Fornax-developer] Fornax oAW/MWE Maven2 Plugin V3.0.1 - Generated code into target folder
Hi, first thanks for your answer...but the workflow file looks like this: (ref http://www.eclipse.org/Xtext/documentation/latest/xtext.html)... workflow property file=org/xtext/example/GenerateMyDsl.properties/ property name=runtimeProject value=../${projectName}/ bean class=org.eclipse.emf.mwe.utils.StandaloneSetup platformUri=${runtimeProject}/../ !-- component class=org.eclipse.emf.mwe.utils.DirectoryCleaner directory=${runtimeProject}/src-gen/ component class=org.eclipse.emf.mwe.utils.DirectoryCleaner directory=${runtimeProject}.ui/src-gen/ -- component class=org.eclipse.xtext.generator.Generator pathRtProject value=target// pathUiProject value=${runtimeProject}.ui/ projectNameRt value=${projectName}/ projectNameUi value=${projectName}.ui/ language uri=${grammarURI} fileExtensions=${file.extensions} !-- Java API to access grammar elements (required by several other fragments) -- fragment class= org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment/ !-- a lot more simple fragments -- !-- ... -- !-- a sample fragment with a property -- fragment class= org.eclipse.xtext.generator.validation.JavaValidatorFragment composedCheck value=org.eclipse.xtext.validation.ImportUriValidator/ /fragment !-- more simple fragments -- !-- ... -- /language /component /workflow I have tried to change these two entries: pathRtProject value=target/src-gen/ pathUiProject value=target/ui/src-gen/ projectNameRt value=${projectNameRt}/ projectNameUi value=${projectNameUi}/ But the result was first that it says...non existing folders..so i have created them before... After that it converts things i got the following: 3816 [main] INFO ipse.xtext.generator.LanguageConfig - generating infrastructure for ise.intmsglang.IntMsgLang with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EcoreGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, DelegatingGeneratorFragment, JavaValidatorFragment, CheckFragment, JavaScopingFragment, FormatterFragment, LabelProviderFragment, TransformerFragment, OutlineNodeAdapterFactoryFragment, JavaBasedContentAssistFragment, DelegatingGeneratorFragment org.eclipse.emf.common.util.WrappedException: java.io.IOException: The path '/src-gen/src-gen/ise/.../XYZPackage.java' is unmapped at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generateJava(AbstractGeneratorAdapter.java:1112) So may be you have an idea? Kind Regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Fornax-oAW-MWE-Maven2-Plugin-V3.0.1---Generated-code-into-target-folder-tp27354657s17564p27358381.html Sent from the Fornax-Platform mailing list archive at Nabble.com. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer