我在Mac上的Eclipse中执行TestNG测试用例时看到以下错误。不知道如何解决它。
[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>
有人可以帮我解决这个问题吗?
答案 0 :(得分:0)
通过从终端进行maven clean install解决了问题。以某种方式来自eclipse的maven clean install无效。