When executing Mwe2Launcher with xtext 2.6, which relies on asm 5.0.1, common types can't detect the correct version of asm, it shows the following warning (got it just by changing all the xtext/xtend dependencies of maven-xtext-example from 2.5 to 2.6.0, and the version of maven-exec-plugin from 1.2.1 to 1.3):
0 [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] WARN pes.access.impl.DeclaredTypeFactory - --- xtext.common.types ---------------------------------------------------
0 [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] WARN pes.access.impl.DeclaredTypeFactory - ASM library is too old. Falling back to java.lang.reflect API.
0 [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] WARN pes.access.impl.DeclaredTypeFactory - Please note that no information about compile time constants is available.
0 [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] WARN pes.access.impl.DeclaredTypeFactory - It's recommended to use org.objectweb.asm 5.0.1 or better.
1 [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] WARN pes.access.impl.DeclaredTypeFactory - --------------------------------------------------------------------------
Solution
For now, the solution I found is to exclude the three asm dependencies of exec-maven-plugin by adding in the dependencies the following along with the 2 dependencies to xtext and xbase:
Hi,
Problem
maven-exec-plugin 1.3 itself depends on an old version of asm (see: http://mojo.codehaus.org/exec-maven-plugin/dependencies.html).
When executing Mwe2Launcher with xtext 2.6, which relies on asm 5.0.1, common types can't detect the correct version of asm, it shows the following warning (got it just by changing all the xtext/xtend dependencies of maven-xtext-example from 2.5 to 2.6.0, and the version of maven-exec-plugin from 1.2.1 to 1.3):
Solution
For now, the solution I found is to exclude the three asm dependencies of exec-maven-plugin by adding in the dependencies the following along with the 2 dependencies to xtext and xbase: