Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Problems running org.eclipse.acceleo:maven:3.2.1 in maven(I get an error from maven when trying to run the plugin)
icon9.gif  Problems running org.eclipse.acceleo:maven:3.2.1 in maven [message #932755] Thu, 04 October 2012 11:53 Go to next message
Christian Jung is currently offline Christian JungFriend
Messages: 2
Registered: October 2012
Junior Member
I have tried the example at wiki.eclipse.org/Acceleo/Maven but cannot make the plugin
Version 3.2.1. running without error. I always get the following message:

[INFO] Failed to configure plugin parameters for: org.eclipse.acceleo:maven:3.2.1
Cause: Class 'java.util.List' cannot be instantiated

Here is what i did:
* I downloaded R3.2.1.zip from http://git.eclipse.org/c/m2t/org.eclipse.acceleo.git/refs/
* Extracted the project org.eclipse.acceleo.maven.tests from it.
* In the pom I changed some minor things to make it run:
** removed the -SNAPHOTS
** Changed the repo and plugin repo settings as given on the wiki page
** added <usePlatformResourcePath>Indigo</usePlatformResourcePath> in the configuration.
* Of course I tried that first in my project, but had the same problem.
* I tried it with both Maven 2.0.9 and 2.2.1 and get the same error

I will attach the output of the command
mvn clean org.eclipse.acceleo:maven:3.2.1:acceleo-compile compile verify -X

Anyone have the same problem or a solution?

I' like to try with version 3.3.0 but somehow cannot manage to download it in maven.
Just increasing the version number seems not sufficient.
  • Attachment: out.log
    (Size: 39.31KB, Downloaded 272 times)
Re: Problems running org.eclipse.acceleo:maven:3.2.1 in maven [message #938864 is a reply to message #932755] Wed, 10 October 2012 08:15 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

Could you please post here the configuration of the Acceleo plugin in your pom.xml?

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau & @acceleo
Google+: stephane.begaudeau & acceleo
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Re: Problems running org.eclipse.acceleo:maven:3.2.1 in maven [message #939964 is a reply to message #938864] Thu, 11 October 2012 07:27 Go to previous messageGo to next message
Christian Jung is currently offline Christian JungFriend
Messages: 2
Registered: October 2012
Junior Member
It is as i described in the text (see attached file).
I also used another jdk today, but the output is identical, except for JAVA_HOME and some other IMHO minor stuff.
I cleaned the org.eclipse branch of my local repo but the result is the same.
I would also try the latest plugin version 3.3.0, but from which mavenrepo can I get it?
Thanks for your help,
Christian
  • Attachment: pom.xml
    (Size: 3.38KB, Downloaded 357 times)
Re: Problems running org.eclipse.acceleo:maven:3.2.1 in maven [message #945969 is a reply to message #932755] Mon, 15 October 2012 20:35 Go to previous messageGo to next message
David Akehurst is currently offline David AkehurstFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I too am having problems with org.eclipse.acceleo:maven:3.2.1 in maven

I'm getting, java.lang.NullPointerException at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.getProtectedTemplatesNamed(CST2ASTConverterWithResolver.java:654) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.getExtendedTemplatesNamed(CST2ASTConverterWithResolver.java:607) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:488) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveOwnedModuleElement(CST2ASTConverterWithResolver.java:1781) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:198) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:136) at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:115) at org.eclipse.acceleo.parser.AcceleoSourceBuffer.resolveAST(AcceleoSourceBuffer.java:336)
....

any ideas?

it might be related to the use of template overrides,
I have more than one template overriding another....if I remove some of them,
the error goes away....but this may be a red herring.

cheers
Re: Problems running org.eclipse.acceleo:maven:3.2.1 in maven [message #947948 is a reply to message #945969] Wed, 17 October 2012 15:52 Go to previous message
David Akehurst is currently offline David AkehurstFriend
Messages: 13
Registered: July 2009
Junior Member
Update,

found the issue.

some of my mtl templates were using 'http://www.eclipse.org/uml2/4.0.0/UML'
and some were using 'http://www.eclipse.org/uml2/3.0.0/UML

some better error reporting be acceleo would be nice here Smile
Previous Topic:Xtend - access the EnumLiterals - not possible
Next Topic:Model without a root object
Goto Forum:
  


Current Time: Tue Apr 23 14:14:37 GMT 2024

Powered by FUDForum. Page generated in 0.03626 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top