`
knight_black_bob
  • 浏览: 853099 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

851001: PFXFile encoding decoding failure(Maven编译后证书 变小)

阅读更多

851001: PFXFile encoding decoding failure(Maven编译后证书 变小)

 

 

851001: PFXFile encoding decoding failure
851001: encoding required base64 encoding
java.lang.IllegalArgumentException: java.io.IOException: invalid characters encountered in base64 data: 63
 
编译后,证书文件大小从1942 到1939
 
解决方法:
修改mvn resources 的 plugins maven-resources-plugin加上 pfx cer 过滤 ,加上nonFilteredFileExtensions

<!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjgwODYtMTUyNjM4MTAwODQ3OSIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJsaW5lLWhlaWdodCI6MS43NX0sInR5cGUiOiJwYXJhZ3JhcGgiLCJyaWNoVGV4dCI6eyJkYXRhIjpbeyJjaGFyIjoi57yWIn0seyJjaGFyIjoi6K+RIn0seyJjaGFyIjoi5ZCOIn0seyJjaGFyIjoi77yMIn0seyJjaGFyIjoi6K+BIn0seyJjaGFyIjoi5LmmIn0seyJjaGFyIjoi5paHIn0seyJjaGFyIjoi5Lu2In0seyJjaGFyIjoi5aSnIn0seyJjaGFyIjoi5bCPIn0seyJjaGFyIjoi5LuOIn0seyJjaGFyIjoiMSJ9LHsiY2hhciI6IjkifSx7ImNoYXIiOiI0In0seyJjaGFyIjoiMiJ9LHsiY2hhciI6IiAifSx7ImNoYXIiOiLliLAifSx7ImNoYXIiOiIxIn0seyJjaGFyIjoiOSJ9LHsiY2hhciI6IjMifSx7ImNoYXIiOiI5In0seyJjaGFyIjoiICJ9XSwiaXNSaWNoVGV4dCI6dHJ1ZSwia2VlcExpbmVCcmVhayI6dHJ1ZX19LHsiYmxvY2tJZCI6Ijg1MjAtMTUyNjM4MTAyOTIxNyIsImJsb2Nr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ZSJ9LHsiY2hhciI6InIifSx7ImNoYXIiOiJlIn0seyJjaGFyIjoiZCJ9LHsiY2hhciI6IkYifSx7ImNoYXIiOiJpIn0seyJjaGFyIjoibCJ9LHsiY2hhciI6ImUifSx7ImNoYXIiOiJFIn0seyJjaGFyIjoieCJ9LHsiY2hhciI6InQifSx7ImNoYXIiOiJlIn0seyJjaGFyIjoibiJ9LHsiY2hhciI6InMifSx7ImNoYXIiOiJpIn0seyJjaGFyIjoibyJ9LHsiY2hhciI6Im4ifSx7ImNoYXIiOiJzIn0seyJjaGFyIjoiICJ9XSwiaXNSaWNoVGV4dCI6dHJ1ZSwia2VlcExpbmVCcmVhayI6dHJ1ZX19LHsiYmxvY2tJZCI6IjkwMDAtMTUyNjM4MTA2NTI5NiIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJsaW5lLWhlaWdodCI6MS43NX0sInR5cGUiOiJwYXJhZ3JhcGgiLCJyaWNoVGV4dCI6eyJkYXRhIjpbXSwiaXNSaWNoVGV4dCI6dHJ1ZSwia2VlcExpbmVCcmVhayI6dHJ1ZX19XQ==-->

 

 

<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-resources-plugin</artifactId> 
    <configuration> 
       <encoding>UTF-8</encoding>  
        <nonFilteredFileExtensions>                                            	    
             <nonFilteredFileExtension>pem</nonFilteredFileExtension> 
             <nonFilteredFileExtension>pfx</nonFilteredFileExtension> 
             <nonFilteredFileExtension>cer</nonFilteredFileExtension> 
       </nonFilteredFileExtensions> 
</configuration>  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

捐助开发者 

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信 以及扣扣群),没钱捧个人场,谢谢各位。

 

个人主页http://knight-black-bob.iteye.com/



 
 
 谢谢您的赞助,我会做的更好!

 

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics