java maven 混淆打包

<plugin>
    <groupId>com.github.wvengengroupId>
    <artifactId>proguard-maven-pluginartifactId>
    <executions>
        <execution>
            
            <phase>packagephase>
            <goals>
                
                <goal>proguardgoal>
            goals>
        execution>
    executions>
    <configuration>
        
        <attach>trueattach>
        
        <obfuscate>trueobfuscate>
        
        <attachArtifactClassifier>pgattachArtifactClassifier>
        <options>
            
            <option>-target 1.8option>
            
            <option>-dontshrinkoption>
            
            <option>-dontoptimizeoption>
            
            <option>-dontskipnonpubliclibraryclassesoption>
            <option>-dontskipnonpubliclibraryclassmembersoption>
            
            <option>-dontusemixedcaseclassnamesoption>

            
            <option>-allowaccessmodificationoption>
            
            <option>-useuniqueclassmembernamesoption>
            
            

            
            <option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LocalVariable*Table,*Annotation*,Synthetic,EnclosingMethodoption>
            
            <option>-keepclassmembers public class * {void set*(***);*** get*();}option>

            
            
            <option>-keep class cn.edu.buaa.sigpt.IntersectionAnalysisMain { * ;}option>
            <option>-keep class cn.edu.buaa.pojo.OutOverCarData { * ;}option>
        options>
        
        <outjar>classes-autotest.jaroutjar>
        
        <libs>
            <lib>${java.home}/lib/rt.jarlib>
        libs>
        
        <injar>classesinjar>
        
        <outputDirectory>${project.build.directory}outputDirectory>
    configuration>
plugin>

你可能感兴趣的:(java maven 混淆打包)