|
|
|
|
|
|
|
|
|
|
|
Re: Xtext 2.8.x Project Building in Xtext 2.10 with Maven Not Workign [message #1774879 is a reply to message #1774877] |
Fri, 20 October 2017 19:08 |
|
you actually need to add it to the exec plugin as well e.g.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>false</includeProjectDependencies>
<includePluginDependencies>true</includePluginDependencies>
<mainClass>org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher</mainClass>
<arguments>
<argument>file://${project.basedir}/src/org/xtext/example/mydsl/GenerateMyDsl.mwe2</argument>
<argument>
-p
</argument>
<argument>
runtimeProject=/${project.basedir}
</argument>
</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xtext</artifactId>
<version>${xtext-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase</artifactId>
<version>${xtext-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.equinox</groupId>
<artifactId>common</artifactId>
<version>3.6.200-v20130402-1505</version>
</dependency>
<dependency>
<groupId>org.xtext.example</groupId>
<artifactId>org.xtext.example.mydsl.metamodel</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
Re: Xtext 2.8.x Project Building in Xtext 2.10 with Maven Not Workign [message #1774893 is a reply to message #1774891] |
Fri, 20 October 2017 21:03 |
Brandon Lewis Messages: 268 Registered: May 2012 |
Senior Member |
|
|
I changed the pom module ordering of the parent such that the feature specified in my target file gets loaded before I try to compile my DSL - confirmed by the Reactor Summary showing the target before. Still can't find the exec-maven-plugin dependency on Jenkins. Weird.
Is this a problem where the exec-maven-plugin is literally looking for 2.0.0-SHAPSHOT and can't find it in the actual target because the target repository has the literal version 2.0.0.201710202100.jar?
I thought the SNAPSHOT mechanism was supposed to smooth over all that.
[Updated on: Fri, 20 October 2017 21:22] Report message to a moderator
|
|
|
|
|
Re: Xtext 2.8.x Project Building in Xtext 2.10 with Maven Not Workign [message #1774909 is a reply to message #1774908] |
Sat, 21 October 2017 05:32 |
|
and a last thought: update to Xtext 2.12 or 2.13, create new projects with a wizard, the stuff in the pom there can load the plugins from the target platform as well
no need to add an explicit dependency
<configuration>
<mainClass>org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher</mainClass>
<arguments>
<argument>/${project.basedir}/src/org/xtext/example/mydsl1/GenerateMyDsl.mwe2</argument>
<argument>-p</argument>
<argument>rootPath=/${project.basedir}/..</argument>
</arguments>
<classpathScope>compile</classpathScope>
<includePluginDependencies>true</includePluginDependencies>
<cleanupDaemonThreads>false</cleanupDaemonThreads><!-- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=475098#c3 -->
</configuration>
dont know why this is not working for you (even with 2.8.4)
again no way to reproduce
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Sat, 21 October 2017 05:38] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03363 seconds