在编译flume ng的时候出现不能找到flume-ng-log4jappender的问题:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.1:process (default) on project flume-ng-dist: Failed to resolve dependencies for one or more projects in the reactor. Reason: Missing:
[ERROR] ----------
[ERROR] 1) org.apache.flume.flume-ng-clients:flume-ng-log4jappender:jar:jar-with-dependencies:1.4.0
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.apache.flume.flume-ng-clients -DartifactId=flume-ng-log4jappender -Dversion=1.4.0 -Dclassifier=jar-with-dependencies -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
flume-ng-log4jappender是在apache-flume-1.4.0-src/flume-ng-clients里面的.
所以先编译安装flume-ng-log4jappender:
cd apache-flume-1.4.0-src/flume-ng-clients
mvn install
mvn eclipse:eclipse -DskipTests