具体错误:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (copy-dependencies) on project teavm-idea-artifacts: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
具体来说,就是一个teavm-idea-artifacts的org.codehaus.mojo的exec-maven-plugin部分构建出错。怎么办?
查找
即有一个pom.xml中,包含teavm-idea-artifacts。
修改
看看这个结构中,有什么特殊的内容,然后清理掉。
<artifactId>teavm-idea-artifacts</artifactId> <name>TeaVM IDEA artifacts</name> <packaging>pom</packaging> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.3.2</version> <executions> <execution> <id>copy-dependencies</id> <phase>initialize</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>mvn</executable> <arguments> <item>-f</item> <item>dep-pom.xml</item> <item>install</item> <item>-Didea.version=${idea.version}</item> <item>-Dteavm.version=${project.version}</item> <item>-Dmaven.repo.local=${settings.localRepository}</item> <item>-B</item> </arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>