本文记录了解决在Linux环境中编译lzo库时遇到的Maven错误:Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run。通过检查详细的报错信息,确认Java环境,并在maven的settings.xml中添加相应配置来成功编译。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (build-native-non-win) on project hadoop-lzo: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec failonerror="true" dir="${build.native}" executable="sh"