You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "cvictory (GitHub)" <gi...@apache.org> on 2019/01/23 07:10:28 UTC
[GitHub] [incubator-dubbo] cvictory opened pull request #3315: fix
#2842. remove duplicate SPI definitions
Download the shade source, and add some log or you can directly debug:
org.apache.maven.plugins.shade.mojo.ShadeMojo#execute
The dubbo.jar will generate from some jars including dubbo.jar itself.
When you run `mvn clean install -DskipTests` , it willl work well. Because the original dubbo.jar is deleted.
After that if you run `mvn install -DskipTests`, it will merge two part files . one part is from many other jar(netty, netty4, mina etc.), and one is from dubbo.jar. The shade plugin will merge this file into one.(org.apache.maven.plugins.shade.resource.AppendingTransformer in pom.xml)
```
netty=com.alibaba.dubbo.remoting.transport.netty.NettyTransporter
netty4=com.alibaba.dubbo.remoting.transport.netty4.NettyTransporter
mina=com.alibaba.dubbo.remoting.transport.mina.MinaTransporter
grizzly=com.alibaba.dubbo.remoting.transport.grizzly.GrizzlyTransporter
netty=com.alibaba.dubbo.remoting.transport.netty.NettyTransporter
netty4=com.alibaba.dubbo.remoting.transport.netty4.NettyTransporter
mina=com.alibaba.dubbo.remoting.transport.mina.MinaTransporter
grizzly=com.alibaba.dubbo.remoting.transport.grizzly.GrizzlyTransporter
```
If you run commond at third time , it will generate 3 times.
There are two ways to resolve this issue.
* Force rerun maven-jar-plugin before shade plugin.
* filter some files merge in shade plugin.
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] chickenlj closed pull request #3315: fix
#2842. remove duplicate SPI definitions
Posted by "chickenlj (GitHub)" <gi...@apache.org>.
[ pull request closed by chickenlj ]
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] cvictory commented on issue #3315: fix
#2842. remove duplicate SPI definitions
Posted by "cvictory (GitHub)" <gi...@apache.org>.
After 2.7.0 merge into master, a pull request is necessary for master branch.
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] chickenlj commented on issue #3315: fix
#2842. remove duplicate SPI definitions
Posted by "chickenlj (GitHub)" <gi...@apache.org>.
>Force rerun maven-jar-plugin before shade plugin.
> filter some files merge in shade plugin.
How about `<forceCreation>true</forceCreation>` for jar-plugin, is it still needed after this PR?
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] codecov-io commented on issue #3315: fix
#2842. remove duplicate SPI definitions
Posted by "codecov-io (GitHub)" <gi...@apache.org>.
# [Codecov](https://codecov.io/gh/apache/incubator-dubbo/pull/3315?src=pr&el=h1) Report
> Merging [#3315](https://codecov.io/gh/apache/incubator-dubbo/pull/3315?src=pr&el=desc) into [2.6.x](https://codecov.io/gh/apache/incubator-dubbo/commit/3375ec827845a0b133eae1fd4aad78aeb203361a?src=pr&el=desc) will **increase** coverage by `0.03%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/incubator-dubbo/pull/3315?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## 2.6.x #3315 +/- ##
============================================
+ Coverage 47.21% 47.24% +0.03%
- Complexity 4295 4300 +5
============================================
Files 554 554
Lines 24405 24405
Branches 4320 4320
============================================
+ Hits 11522 11530 +8
+ Misses 11088 11085 -3
+ Partials 1795 1790 -5
```
| [Impacted Files](https://codecov.io/gh/apache/incubator-dubbo/pull/3315?src=pr&el=tree) | Coverage Δ | Complexity Δ | |
|---|---|---|---|
| [...aba/dubbo/remoting/transport/mina/MinaChannel.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcmVtb3RpbmcvZHViYm8tcmVtb3RpbmctbWluYS9zcmMvbWFpbi9qYXZhL2NvbS9hbGliYWJhL2R1YmJvL3JlbW90aW5nL3RyYW5zcG9ydC9taW5hL01pbmFDaGFubmVsLmphdmE=) | `42.25% <0%> (-11.27%)` | `15% <0%> (-1%)` | |
| [...onfig/spring/extension/SpringExtensionFactory.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tY29uZmlnL2R1YmJvLWNvbmZpZy1zcHJpbmcvc3JjL21haW4vamF2YS9jb20vYWxpYmFiYS9kdWJiby9jb25maWcvc3ByaW5nL2V4dGVuc2lvbi9TcHJpbmdFeHRlbnNpb25GYWN0b3J5LmphdmE=) | `75.67% <0%> (-8.11%)` | `9% <0%> (ø)` | |
| [...om/alibaba/dubbo/rpc/filter/ActiveLimitFilter.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcnBjL2R1YmJvLXJwYy1hcGkvc3JjL21haW4vamF2YS9jb20vYWxpYmFiYS9kdWJiby9ycGMvZmlsdGVyL0FjdGl2ZUxpbWl0RmlsdGVyLmphdmE=) | `77.77% <0%> (-5.56%)` | `5% <0%> (-1%)` | |
| [...bo/remoting/transport/netty/NettyCodecAdapter.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcmVtb3RpbmcvZHViYm8tcmVtb3RpbmctbmV0dHkvc3JjL21haW4vamF2YS9jb20vYWxpYmFiYS9kdWJiby9yZW1vdGluZy90cmFuc3BvcnQvbmV0dHkvTmV0dHlDb2RlY0FkYXB0ZXIuamF2YQ==) | `53.12% <0%> (-1.57%)` | `3% <0%> (ø)` | |
| [...a/dubbo/remoting/transport/netty4/NettyServer.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcmVtb3RpbmcvZHViYm8tcmVtb3RpbmctbmV0dHk0L3NyYy9tYWluL2phdmEvY29tL2FsaWJhYmEvZHViYm8vcmVtb3RpbmcvdHJhbnNwb3J0L25ldHR5NC9OZXR0eVNlcnZlci5qYXZh) | `75.4% <0%> (+3.27%)` | `10% <0%> (+1%)` | :arrow_up: |
| [...rpc/protocol/dubbo/telnet/InvokeTelnetHandler.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcnBjL2R1YmJvLXJwYy1kdWJiby9zcmMvbWFpbi9qYXZhL2NvbS9hbGliYWJhL2R1YmJvL3JwYy9wcm90b2NvbC9kdWJiby90ZWxuZXQvSW52b2tlVGVsbmV0SGFuZGxlci5qYXZh) | `57.83% <0%> (+3.61%)` | `15% <0%> (+2%)` | :arrow_up: |
| [...a/dubbo/remoting/transport/netty/NettyChannel.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcmVtb3RpbmcvZHViYm8tcmVtb3RpbmctbmV0dHkvc3JjL21haW4vamF2YS9jb20vYWxpYmFiYS9kdWJiby9yZW1vdGluZy90cmFuc3BvcnQvbmV0dHkvTmV0dHlDaGFubmVsLmphdmE=) | `66.25% <0%> (+5%)` | `21% <0%> (+1%)` | :arrow_up: |
| [.../dubbo/remoting/transport/netty4/NettyChannel.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcmVtb3RpbmcvZHViYm8tcmVtb3RpbmctbmV0dHk0L3NyYy9tYWluL2phdmEvY29tL2FsaWJhYmEvZHViYm8vcmVtb3RpbmcvdHJhbnNwb3J0L25ldHR5NC9OZXR0eUNoYW5uZWwuamF2YQ==) | `65% <0%> (+6.25%)` | `22% <0%> (+2%)` | :arrow_up: |
| [...ubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcnBjL2R1YmJvLXJwYy1kdWJiby9zcmMvbWFpbi9qYXZhL2NvbS9hbGliYWJhL2R1YmJvL3JwYy9wcm90b2NvbC9kdWJiby9DaGFubmVsV3JhcHBlZEludm9rZXIuamF2YQ==) | `45.83% <0%> (+8.33%)` | `3% <0%> (ø)` | :arrow_down: |
| [.../remoting/transport/netty4/NettyServerHandler.java](https://codecov.io/gh/apache/incubator-dubbo/pull/3315/diff?src=pr&el=tree#diff-ZHViYm8tcmVtb3RpbmcvZHViYm8tcmVtb3RpbmctbmV0dHk0L3NyYy9tYWluL2phdmEvY29tL2FsaWJhYmEvZHViYm8vcmVtb3RpbmcvdHJhbnNwb3J0L25ldHR5NC9OZXR0eVNlcnZlckhhbmRsZXIuamF2YQ==) | `83.33% <0%> (+11.11%)` | `7% <0%> (+1%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-dubbo/pull/3315?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-dubbo/pull/3315?src=pr&el=footer). Last update [3375ec8...a91b72a](https://codecov.io/gh/apache/incubator-dubbo/pull/3315?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] chickenlj commented on issue #3315: fix
#2842. remove duplicate SPI definitions
Posted by "chickenlj (GitHub)" <gi...@apache.org>.
LGTM. Please submit another to master.
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] cvictory commented on issue #3315: fix
#2842. remove duplicate SPI definitions
Posted by "cvictory (GitHub)" <gi...@apache.org>.
Run `find $PWD | xargs ls -ld | wc -l` in shell to verify the file count.
The file number is 1351 when running `mvn install` , it is the same as `mvn clean install`.
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] carryxyh commented on issue #3315: fix
#2842. remove duplicate SPI definitions
Posted by "carryxyh (GitHub)" <gi...@apache.org>.
Nice work!
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] chickenlj commented on issue #3315: fix
#2842. remove duplicate SPI definitions
Posted by "chickenlj (GitHub)" <gi...@apache.org>.
> After 2.7.0 merge into master, a pull request is necessary for master branch.
@cvictory Why need to wait? I think you can raise a PR to master now.
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3315 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org