Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » 2.5.0: Xtext Maven pom problem(Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:exec-maven-plugin:1.2.1:java)
2.5.0: Xtext Maven pom problem [message #1234137] Tue, 21 January 2014 10:19 Go to next message
Adam Crowther is currently offline Adam CrowtherFriend
Messages: 5
Registered: November 2013
Junior Member
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>
Re: 2.5.0: Xtext Maven pom problem [message #1234475 is a reply to message #1234137] Wed, 22 January 2014 03:50 Go to previous messageGo to next message
Xi Lin is currently offline Xi LinFriend
Messages: 21
Registered: January 2014
Junior Member
Hi, actually it is not an maven error, you can freely run mvn clean install in the terminal.

This is a problem of m2e plugin. See wiki.eclipse.org/M2E_plugin_execution_not_covered. You can use quick fix by right click on the error items.
Re: 2.5.0: Xtext Maven pom problem [message #1234527 is a reply to message #1234475] Wed, 22 January 2014 07:15 Go to previous message
Adam Crowther is currently offline Adam CrowtherFriend
Messages: 5
Registered: November 2013
Junior Member
Thanks very much for the reply - I used the quick fix 'ignore' and the problem went away.

The build on the command line works as designed, as you stated.

Great stuff!

Previous Topic:Putting Xtext projects into Git repositories
Next Topic:How to use newer version Guava in Xtext with maven build?
Goto Forum:
  


Current Time: Sat Dec 05 01:00:00 GMT 2020

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

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

Back to the top