Java – org / codehaus / plexus / archiver / jar / jararchiver (unsupported major.minor version 49.0) – Maven build error

All in the afternoon,

I received the above error while trying to build the project I'm sure this is related to the latest update of Maven compiled with Java 1.6. The project we're trying to build is the 1.4 project There was no problem with the previous plug-in, so I added the following to POM XML file to try to force the use of an existing plug - in

<dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-archiver</artifactId>
        <version>1.2</version>
    </dependency>

But it still failed

Any help would be appreciated

thank you

Solution

Try adding the following plug - ins for Maven This works for me:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
        <encoding>UTF-8</encoding>
    </configuration>
</plugin>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>