今天整Dubbo的jar包的安装方式的时候,遇到这个错误,
Description Resource Path Location Type
Cannot parse lifecycle mapping metadata for maven project MavenProject: yellowcong:dubbo-provider:0.0.1-SNAPSHOT @ D:\code\blog_yellowcong\dubbo-provider\pom.xml Cause: Unrecognised tag: 'version' (position: START_TAG seen ...</artifactId>\r\n <version>... @8:18) pom.xml /dubbo-provider line 1 Maven Project Build Lifecycle Mapping Problem
后来发现是自己的maven配置错了
去掉配置,就没啥问题了
<plugins>
<!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<classesDirectory>target/classes/</classesDirectory>
<archive>
<manifest>
<!-- 阿里巴巴的 启动类 -->
<mainClass>com.alibaba.dubbo.container.Main</mainClass>
<!-- 打包时MANIFEST.MF 文件不记录时间戳 版本 -->
<useUniqueVersions>false</useUniqueVersions>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
<manifestEntries>
<class-path>.</class-path>
</manifestEntries>
</archive>
</configuration>
</plugin>