[
https://issues.apache.org/jira/browse/FLUME-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501625#comment-13501625
]
Mike Percy commented on FLUME-1732:
-----------------------------------
Looks like a Maven bug to me.
To reproduce:
1. Delete all flume jars from your Maven repo: rm -rf
~/.m2/repository/org/apache
2. Run install build with -U:
{noformat}
mvn clean install -B -U -e
-Dtest=TestLog4jAppender,TestPropertiesFileConfigurationProvider,TestRpcClient,TestRpcClientCommunicationFailure,TestLegacyAvroSource
-DfailIfNoTests=false
{noformat}
This build will fail with tests complaining about missing dependencies. Even
though it says it is installing the locally built modules to the local
repository, in reality the artifacts are not there. They are whatever was
downloaded from upstream. So these lines, for example, are a lie:
{noformat}
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ flume-ng-sdk
---
[INFO] Installing
/Users/mpercy/src/flume.alt/flume-ng-sdk/target/flume-ng-sdk-1.4.0-SNAPSHOT.jar
to
/Users/mpercy/.m2/repository/org/apache/flume/flume-ng-sdk/1.4.0-SNAPSHOT/flume-ng-sdk-1.4.0-SNAPSHOT.jar
[INFO] Installing /Users/mpercy/src/flume.alt/flume-ng-sdk/pom.xml to
/Users/mpercy/.m2/repository/org/apache/flume/flume-ng-sdk/1.4.0-SNAPSHOT/flume-ng-sdk-1.4.0-SNAPSHOT.pom
{noformat}
because that .pom matches the old one that was downloaded from a few days ago
(specifically, it does not contain the netty dependency).
Even weirder, if you simply execute the same command as in the above step, it
will go through fine.
3. Run install build with -U:
{noformat}
mvn clean install -B -U -e
-Dtest=TestLog4jAppender,TestPropertiesFileConfigurationProvider,TestRpcClient,TestRpcClientCommunicationFailure,TestLegacyAvroSource
-DfailIfNoTests=false
{noformat}
Build success!
As one might expect under normal circumstances, now the SNAPSHOT artifacts in
the local repository are from the local build (the install message was not a
lie).
I wonder if this is related to http://jira.codehaus.org/browse/MNG-3282
> Build is failing due to netty problems
> --------------------------------------
>
> Key: FLUME-1732
> URL: https://issues.apache.org/jira/browse/FLUME-1732
> Project: Flume
> Issue Type: Bug
> Reporter: Brock Noland
>
> FLUME-1723 changed how we bring in netty and that seems to have broken the
> build https://builds.apache.org/job/flume-trunk/330/#showFailuresLink
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira