2.5.0: Xtext Maven pom problem [message #1234137] |
Tue, 21 January 2014 05:19  |
Eclipse User |
|
|
|
Hi all,
I am trying to convert my xtext projects to the new Maven build system, using Xtext/Xtend 2.5.0 and Eclipse Kepler.
I followed the documentation pretty much to the letter, and managed to reduce the number of errors in my pom to 1:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:exec-maven-plugin:1.2.1:java (execution: default, phase: generate-sources)
I have tried updating all my xtext and m2e plugins to the latest release version, with no success. My eclipse preferences|Maven|Lifecycle Mappings is empty.
Interestingly, my eclipse plugins directory does not contain a directory called "org.eclipse.xtext.m2e" or "org.eclipse.xtend.m2e" - am I missing a plugin? I also don't have any codehaus plugins - I'm assuming these are pulled in by Maven. Is that what's missing? In that case, what Eclipse bundles do I need to install?
Thanks for any help or hints you can give.
Best regards,
Adam
PS: here's my pom file:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<relativePath>../com.acme.xtext.configuration.releng/pom.xml</relativePath>
<groupId>com.acme.xtext.configuration</groupId>
<artifactId>parent</artifactId>
<version>develop-SNAPSHOT</version>
</parent>
<artifactId>configuration</artifactId>
<packaging>eclipse-plugin</packaging>
<name>Configuration Language Core</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/src-gen</directory>
</fileset>
<fileset>
<directory>${basedir}/xtend-gen</directory>
</fileset>
<!-- clean ui plugin as well -->
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.ui/src-gen</directory>
</fileset>
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.ui/xtend-gen</directory>
</fileset>
<!-- clean test fragment as well -->
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.tests/src-gen</directory>
</fileset>
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.tests/xtend-gen</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<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/com/acme/xtext/configuration/GenerateConfiguration.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>2.5.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase</artifactId>
<version>2.5.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04333 seconds