ssh springside 混淆

proguard 工具 。

配置文件:

-injars 'D:\develop\w\telematic2\Portal\dist\portalms.jar'
-outjars out.jar

-libraryjars 'C:\Program Files\Java\jre6\lib\rt.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\antlr-2.7.6.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aopalliance-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aspectjrt-1.6.9.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aspectjweaver-1.6.9.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\cglib-nodep-2.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-beanutils-1.8.3.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-collections-3.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-dbcp-1.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-fileupload-1.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-io-1.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-lang-2.5.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-logging-1.1.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-pool-1.5.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\displaytag-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\displaytag-export-poi-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\dom4j-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ehcache-1.6.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\freemarker-2.3.16.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\guava-r06.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\h2-1.2.142.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hamcrest-library-1.3RC0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-annotations-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-commons-annotations-3.2.0.Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-core-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-ehcache-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-jpa-2.0-api-1.0.0.Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\imaging-01012005.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\itext-1.3.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jackson-core-asl-1.6.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jackson-mapper-asl-1.6.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\javassist-3.12.1.GA.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcaptcha-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcaptcha-api-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcl104-over-slf4j-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jstl-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jta-1.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\junit-4.8.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\log4j-1.2.16.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\mail.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ognl-3.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ojdbc14.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\poi-3.2-FINAL.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\servlet-api.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-api-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-api-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-log4j12-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-log4j12-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-aop-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-asm-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-beans-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-context-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-context-support-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-core-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-expression-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-jdbc-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-orm-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-acl-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-config-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-core-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-taglibs-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-web-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-test-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-tx-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-web-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-webmvc-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\springside3-core-3.3.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\springside3-extension-3.3.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\standard-1.1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-convention-plugin-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-core-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-spring-plugin-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\xml-apis-1.0.b2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\xwork-core-2.2.1.jar'

-dontshrink
-dontoptimize
-printmapping out.map
-keeppackagenames
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod,*Annotation*
-keepparameternames


# Preserve the special static methods that are required in all enumeration
# classes.
-keepclassmembers class * extends java.lang.Enum {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

# entity
-keep class * extends IdEntity

# Keep - Servlets. Keep all extensions of javax.servlet.Servlet.
-keep public class * extends javax.servlet.Servlet

# Keep - Library. Keep all public and protected classes, fields, and methods.
-keep public class * {
    public protected <fields>;
    public protected <methods>;
}

# Also keep - Enumerations. Keep the special static methods that are required in
# enumeration classes.
-keepclassmembers enum  * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

# Also keep - Serialization code. Keep all fields and methods that are used for
# serialization.
-keepclassmembers class * extends java.io.Serializable {
    static final long serialVersionUID;
    static final java.io.ObjectStreamField[] serialPersistentFields;
    private void writeObject(java.io.ObjectOutputStream);
    private void readObject(java.io.ObjectInputStream);
    java.lang.Object writeReplace();
    java.lang.Object readResolve();
}

# Also keep - BeanInfo classes. Keep all implementations of java.beans.BeanInfo.
-keep class * extends java.beans.BeanInfo

# Also keep - Bean classes. Keep all specified classes, along with their getters
# and setters.
-keep class * {
    void set*(***);
    void set*(int,***);
    boolean is*();
    boolean is*(int);
    *** get*();
    *** get*(int);
}

# Keep names - Native method names. Keep all native class/method names.
-keepclasseswithmembers,allowshrinking class * {
    native <methods>;
}

# Keep names - _class method names. Keep all .class method names. This may be
# useful for libraries that will be obfuscated again with different obfuscators.
-keepclassmembers,allowshrinking class * {
    java.lang.Class class$(java.lang.String);
    java.lang.Class class$(java.lang.String,boolean);
}

注意:1、 混淆后需要用原来的bean覆盖混淆中的bean。因为bean的字段名必须不能变,否则一对多等映射就不能找到具体字段

        

      

猜你喜欢

转载自wwwz.iteye.com/blog/1129792