[ACCELEO] Compiling multi-plugin project using maven [message #780801] |
Thu, 19 January 2012 07:40  |
Eclipse User |
|
|
|
Hi,
I'm using maven+type to build my project that consists of multiple eclipse plugins. My structure is like:
net.fikovnik.projects.taco.core/
../files/graphwiz.mtl
../common/uml.mtl
net.fikovnik.projects.taco.latex.core/
../files/modelRefernce.mtl (that uses both graphwiz and uml module defined in the plugin above)
In Eclipse itself this works well, but during the maven built I got following error:
Caused by: java.lang.RuntimeException: modelReference.mtl
31:Module net::fikovnik::projects::taco::core::gen::common::uml not found.
32:Module net::fikovnik::projects::taco::core::gen::files::graphwiz not found.
62:Cannot find operation (genPrologue()) for the type (EClass)
63:Cannot find operation (genClass(Boolean, Boolean, Boolean, String)) for the type (EClass)
64:Cannot find operation (genEpilogue()) for the type (EClass)
76:Cannot find operation (genPrologue()) for the type (EPackage)
77:Cannot find operation (genPackage(Boolean)) for the type (EPackage)
78:Cannot find operation (genEpilogue()) for the type (EPackage)
105:Cannot find operation (genFeatureLabelWithType()) for the type (EStructuralFeature)
at org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler.compile(AbstractAcceleoCompiler.java:281)
at org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler.doCompile(AbstractAcceleoCompiler.java:225)
at net.fikovnik.projects.taco.latex.AcceleoCompiler.doCompile(AcceleoCompiler.java:54)
at net.fikovnik.projects.taco.latex.AcceleoCompiler.main(AcceleoCompiler.java:44)
... 6 more
I'm not sure how can I make the generated AcceleoCompiler to see these files as well. The execution classpath contains correctly all the plugins and their dependencies.
I tried to experiment a bit with the generated pom.xml file to add arguments for the dependencies, but I'm not really sure what should be there. Putting there the full path to the depending mtl file does not work.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<!-- Calls the AcceleoCompiler to launch the compilation. -->
<mainClass>net.fikovnik.projects.taco.latex.AcceleoCompiler</mainClass>
<arguments>
<argument>${basedir}/src/</argument> <!-- The source folder -->
<argument>${basedir}/target/classes</argument> <!-- The output folder -->
<argument>false</argument> <!-- Indicates if we should use binary resources serializations -->
<argument>${basedir}/../net.fikovnik.projects.taco.core/src/net/fikovnik/projects/taco/core/gen/files/graphwiz.mtl</argument> <!-- The project dependencies in the workspace -->
</arguments>
</configuration>
</execution>
</executions>
</plugin>
Any help will be appreciated!
Filip
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04286 seconds