bytedeco/javacpp

POM configuration not working in Eclipse m2e.

Open

#805 opened on May 7, 2025

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Java (4,279 stars) (620 forks)batch import
help wantedquestion

Description

Eclipse shows an error or info messages.

"Plugin execution not covered by lifecycle configuration: org.bytedeco:javacpp:1.5.10:build (execution: javacpp.compiler, phase: process-classes) pom.xml Maven Project Build Lifecycle Mapping Problem"

"Plugin execution not covered by lifecycle configuration: org.bytedeco:javacpp:1.5.10:parse (execution: javacpp.parser, phase: generate-sources) pom.xml Maven Project Build Lifecycle Mapping Problem"

It works fine if I run mvn from the command prompt - It generates the wrapper cpp file and builds the dll and everything works properly. If I update in Eclipse, it cleans but doesn't build.

Here is my pom configuration.

<plugin>  
	<groupId>org.codehaus.mojo</groupId>  
	<artifactId>build-helper-maven-plugin</artifactId>  
	<executions>  
		<execution>  
			<id>add-gen-sources</id>  
			<phase>generate-sources</phase>  
			<goals>  
				<goal>add-source</goal>  
			</goals>  
			<configuration>  
				<sources>  
					<source>${project.basedir}/src/gen/java/</source>  
				</sources>  
			</configuration>  
		</execution>  
	</executions>  
</plugin>  
<plugin>  
	<artifactId>maven-compiler-plugin</artifactId>  
	<executions>  
		<execution>  
			<id>javacpp-parser</id>  
			<phase>initialize</phase>  
			<goals>  
				<goal>compile</goal>  
			</goals>  
			<configuration>  
				<source>1.8</source>  
				<target>1.8</target>  
				<includes>  
					<include>com/myorg/ntv/WrapperJ.java</include>  
				</includes>  
				<compilerArgs combine.self="override"></compilerArgs>  
			</configuration>  
		</execution>  
	</executions>  
</plugin>  
<plugin>  
	<groupId>org.bytedeco</groupId>  
	<artifactId>javacpp</artifactId>  
	<version>1.5.10</version>  
	<configuration>  
		<properties>${javacpp.platform}</properties>  
		<classPath>${project.build.outputDirectory}</classPath>  
		<includePaths>  
			<includePath>${basedir}/../proj/subproj/include/</includePath>  
		</includePaths>  
		<linkPaths>  
			<linkPath>${basedir}/../proj/release/${platform}/</linkPath>  
		</linkPaths>  
		<copyLibs>true</copyLibs>  
	</configuration>  
	<executions>  
		<execution>  
			<id>javacpp.parser</id>  
			<phase>generate-sources</phase>  
			<goals>  
				<goal>parse</goal>  
			</goals>  
			<configuration>  
				<outputDirectory>${project.basedir}/src/gen/java/</outputDirectory>  
				<classOrPackageName>com.myorg.ntv.WrapperJ</classOrPackageName>  
			</configuration>  
		</execution>  
		<execution>  
			<id>javacpp.compiler</id>  
			<phase>process-classes</phase>  
			<goals>  
				<goal>build</goal>  
			</goals>  
			<configuration>  
				<classOrPackageName>com.myorg.ntv.Wrapper</classOrPackageName>  
			</configuration>  
		</execution>  
	</executions>  
</plugin>

Contributor guide