| Summary: | How should I build an Acceleo Generator with Maven ? | ||
|---|---|---|---|
| Product: | [Modeling] Acceleo | Reporter: | Cedric Brun <cedric.brun> |
| Component: | Core | Assignee: | Project Inbox <acceleo-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cmordant1, stephane.begaudeau |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Cedric Brun
You have to add dependency to your metamodel in maven deps (for example org.eclipse.uml2.ecore), then edit your acceleocompiler class and set NSUri of the model (don't forget to add @generated NOT in the package). I did an ant task used with the antrun plugin plus system eclipse dependencies to do the job (eclipse and acceleo libraries are not in the eclipse repo yet). Regards, Charlie (In reply to comment #1) > You have to add dependency to your metamodel in maven deps (for example > org.eclipse.uml2.ecore), then edit your acceleocompiler class and set NSUri of > the model (don't forget to add @generated NOT in the method comments). I did an ant > task used with the antrun plugin plus system eclipse dependencies to do the job > (eclipse and acceleo libraries are not in the eclipse repo yet). > > Regards, Charlie I'll close this issue since Cedric's problem has already resolved. You can find an example of the solution here: https://github.com/ObeoNetwork/UML-Java-Generation |