eclipse报错Invalid classpath publish/export dependency /mvn_service. Project entries not supported.

  • 2021年10月29日
  • Eclipse

Eclipse中的problems中报错Invalid classpath publish/export dependency /mvn_service. Project entries not supported

124602_RqUW_247539.jpg


解决办法,执行以下命令:

mvn eclipse:clean
mvn eclipse:eclipse

如果问题还不能解决,则在pom文件里面添加以下代码,添加完毕后,再次执行上面的命令(dos控制台的eclipse安装目录里面执行)

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-eclipse-plugin</artifactId>
	<version>2.9</version>
	<configuration>
		<additionalProjectnatures>
			<projectnature>org.eclipse.jdt.core.javanature</projectnature>
			<!-- 
			<projectnature>org.eclipse.m2e.core.maven2Nature</projectnature>
			<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
			 -->
		</additionalProjectnatures>
		<additionalBuildcommands>
			<buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
			<!-- 
			<buildcommand>org.eclipse.m2e.core.maven2Builder</buildcommand>
			<buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
			 -->
		</additionalBuildcommands>
	</configuration>
</plugin>

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注