bytedeco/javacpp

POM configuration not working in Eclipse m2e.

开放

#805 创建于 2025年5月7日

 (5 条评论) (0 个反应) (0 位负责人)Java (620 个派生)batch import
help wantedquestion

仓库指标

星标
 (4,279 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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>

贡献者指南