Working maven obfuscate example

后端 未结 1 1674
庸人自扰
庸人自扰 2021-02-03 13:40

I just want to obfuscate simple maven java app. I use maven-proguard-plugin. All classes main/java must be obfuscated. I try different configs with no luck. The last is:

1条回答
  •  情歌与酒
    2021-02-03 14:26

    Maven such a great thing :). You can make what you want and even not understand, what you want. After i read the introduction, i understand that it's a stupid question. Keep parameter is very important. Here pass in the public methods which must not changed. Of course plugin can't undestand by itself what methods you plan to use. Correct config:

    
        
            
                com.github.wvengen
                proguard-maven-plugin
                2.0.6
                
                    
                        net.sf.proguard
                        proguard-base
                        4.10
                    
                
                
                   
                       package
                       proguard
                   
                
                
                    4.10
                    
                        
                    
                    
                        ${java.home}/lib/rt.jar
                        ${java.home}/lib/jce.jar
                    
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题