Maven之Cannot parse lifecycle mapping metadata for maven project

When I was trying to install Dubbo's jar package today, I encountered this error.

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

write picture description here

Later I found out that my maven configuration was wrong

write picture description here

Remove the configuration and it will be fine

<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>

write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325062325&siteId=291194637