包括Maven Proguard插件中的库

时间:2012-05-15 10:13:15

标签: maven proguard

我试图通过Proguard Maven插件引用我的图书馆罐子,我怎么能包括' em? normaly我指向我的配置文件中的库,当我以前使用DOS混淆时,它工作。这是我的Maven proguard配置

<plugin>
            <groupId>com.pyx4me</groupId>
            <artifactId>proguard-maven-plugin</artifactId>
            <configuration>
                <options>
                    <option>-allowaccessmodification</option>
                </options>
                <obfuscate>true</obfuscate>
                <injar>{project.build.directory}/proj-SOC.jar</injar>
                <outjar>${project.build.finalName}-obfuscated.jar</outjar>
                <outputDirectory>${project.build.directory}</outputDirectory>
                <proguardInclude>src/main/ressources/projSOC-obfuscation-config.conf</proguardInclude>
                <libs>
                <lib>lib/rt.jar</lib>
                </libs>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>proguard</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

0 个答案:

没有答案