[Acceleo] Tycho build with java service [message #850756] |
Fri, 20 April 2012 05:45  |
Eclipse User |
|
|
|
I have three Acceleo plugins in my application which build and run fine in eclipse.
I am now trying to automate my build process using Maven and Tycho on my CI server. I have used
Tycho on other projects and am happy with it's configuration and use.
One of the Acceleo plugins uses a template which defines a query based on a java service:
[comment This one returns the qualified class name having applied any required filtering or mutation /]
[query public filterClassName(names: Sequence(OclAny)) : Sequence(OclAny) =
invoke('org.xmi2code.acceleo.objc.helper.GenerateHelper', 'filterClassName(java.util.List)', Sequence{names})
/]
The definition of the java helper is in a separate plugin.
I have incorporated the Acceleo compile elements into the projects pom files and can build all of the plugins using tycho except the one with the java service.
The build fails on the file containing the usage (and definition above) of the query.
The maven failure message (-X maven option) is:
Caused by: java.lang.RuntimeException: objcutils.mtl
28:Cannot find operation (filterClassName()) for the type (Sequence(OclAny))
28:Cannot find operation (filterClassName()) for the type (Sequence(OclAny))
at org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler.compile(AbstractAcceleoCompiler.java:281)
at org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler.doCompile(AbstractAcceleoCompiler.java:225)
at org.xmi2code.acceleo.objc.AcceleoCompiler.doCompile(AcceleoCompiler.java:55)
at org.xmi2code.acceleo.objc.AcceleoCompiler.main(AcceleoCompiler.java:45)
I have tried adding the dependencies generated into the build.acceleo to the fourth exec-maven-plugin argument in the pom:
<arguments>
<argument>${basedir}/src/</argument>
<argument>${basedir}/target/classes</argument>
<argument>false</argument>
<argument>"${basedir}/../org.xmi2code.core.plugin;${basedir}/../org.xmi2code.acceleo.objc.support;"</argument>
</arguments>
But still get the same failure.
I am assuming this is some form of classpath problem, any ideas would be useful.
Many thanks
Ian
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05703 seconds