bytedeco/javacpp

POM configuration not working in Eclipse m2e.

Ouverte

#805 ouverte le 7 mai 2025

 (5 commentaires) (0 réaction) (0 personne assignée)Java (620 forks)batch import
help wantedquestion

Métriques du dépôt

Stars
 (4 279 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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>

Guide contributeur