无法获取用于扩展'tgz'的存档程序



我在Mac上执行Eclipse的测试案例时看到以下错误。不知道如何解决。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (make-assembly) on project abc-services-tests: Failed to create assembly: Unable to obtain archiver for extension 'tgz' -> [Help 1]

这是pom.xml的代码:

        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
                <descriptors>
                    <descriptor>src/main/assembly/assembly.xml</descriptor>
                </descriptors>
                <archive>
                    <manifest>
                        <mainClass>com.xyz.openapi.RunTestNG</mainClass>
                    </manifest>
                </archive>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
            </configuration>
            <executions>
                <execution>
                    <id>make-assembly</id>
                    <phase>package</phase>
                    <goals>
                        <goal>single</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

有人可以帮我解决这个问题吗?

通过从终端进行Maven Clean安装解决问题。Eclipse的Maven Clean安装不起作用。

最新更新