proguard-maven-plugin | ProGuard Maven plugin that supports modularised ProGuard | Plugin library

 by   wvengen Java Version: 2.6.0 License: Apache-2.0

kandi X-RAY | proguard-maven-plugin Summary

kandi X-RAY | proguard-maven-plugin Summary

proguard-maven-plugin is a Java library typically used in Plugin, Gradle, Maven applications. proguard-maven-plugin has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. You can download it from GitHub, Maven.

Run ProGuard as part of your Maven build. For usage, please read the generated Documentation. Development happens at Github. This plugin is in a mature state, so major development changes are not expected. Pull requests are welcome. This is the successor of the ProGuard Maven Plugin by pyx4me.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              proguard-maven-plugin has a highly active ecosystem.
              It has 526 star(s) with 143 fork(s). There are 31 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 25 open issues and 89 have been closed. On average issues are closed in 60 days. There are 11 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of proguard-maven-plugin is 2.6.0

            kandi-Quality Quality

              proguard-maven-plugin has 0 bugs and 46 code smells.

            kandi-Security Security

              proguard-maven-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              proguard-maven-plugin code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              proguard-maven-plugin is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              proguard-maven-plugin releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              It has 1166 lines of code, 35 functions and 11 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed proguard-maven-plugin and discovered the below as its top functions. This is intended to give you an instant insight into proguard-maven-plugin implemented functionality, and help decide if they suit your requirements.
            • Creates the output jar
            • Get the list of proguard jar files
            • Get the classpath element
            • Main entry point for the program
            • Prints the example
            • Gets a method name
            Get all kandi verified functions for this library.

            proguard-maven-plugin Key Features

            No Key Features are available at this moment for proguard-maven-plugin.

            proguard-maven-plugin Examples and Code Snippets

            No Code Snippets are available at this moment for proguard-maven-plugin.

            Community Discussions

            QUESTION

            Spring Boot returns 404 after generated jar file with proguard
            Asked 2022-Jan-10 at 07:36

            I have a multi module maven project runs with Spring Boot and Webflux under Netty. Si I was using proguard maven plugin to generate obfuscated jar file. My problem is everything looks fine when I look at the logs but when I send a request to it I get 404 error.

            The build section at pom.xml looks like:

            ...

            ANSWER

            Answered 2022-Jan-10 at 07:36

            It turns out, Proguard moves all the obfuscated files under BOOT-INF.

            Spring boot scans the main package but it can not find your obfuscated files, because they are not in the main package. So you need to give a proper package name to Proguard to move them somewhere under the main package.

            All you need to do is give a new package name like:

            Source https://stackoverflow.com/questions/70578501

            QUESTION

            Maven Proguard plugin - "proguard.Proguard not found on classpath" error
            Asked 2021-Dec-27 at 21:52

            I am trying to obfuscate a jar-with-dependencies (although the same problem affects if I set as inFile the regular single jar).

            I am using Java 8, but I have to use newer versions of Proguard and Proguard Maven Plugin, due to coverage of some jar dependencies that are from a higher version (otherwise I get an "Unsupported major-minor version" problem).

            When executing "mvn clean install" the step is executed but I get a "proguard jar not found in pluginArtifacts error". See log below.

            I have seen in Proguard Maven Plugin code that now you need (from 7.0.0) both proguard-base and proguard-core from com.guardsquare instead of the outdated previous version in net.sf.proguard - this one is not prepared for later jars.

            Apparently the proguard jar is not found where I am specifying it - how should I include this dependency?

            I am using this in my pom:

            ...

            ANSWER

            Answered 2021-Aug-19 at 14:33

            I was actually using proguard.Proguard instead of proguard.ProGuard. Typo took a day out of me.

            However, there is some extra trickyness associated, in case it helps anyone: proguard-maven-plugin would not let me define newer versions of proguard dependencies except for the default one. E.g. 2.4.0 would only allow me to use 7.1.0-beta3 which is the default. It didn't recognize the libraries I would set in the dependencies section inside the plugin (for example, for 7.1.1).

            Source https://stackoverflow.com/questions/68821303

            QUESTION

            Proguard with custom control and custom StringProperty
            Asked 2021-Nov-17 at 20:11

            I want to use proguard with a javafx application with some custom controls.

            1. I have a custom control that contains a poperty

              ...

            ANSWER

            Answered 2021-Nov-17 at 20:11

            I found out that my wild cards were not correct. Should have been, in a generic way:

            Source https://stackoverflow.com/questions/69985061

            QUESTION

            Proguard Maven Plugin Ignores Injar Jar Name
            Asked 2021-Sep-01 at 11:46

            I am using the Maven Assembly Plugin to extract my project into a jar file. And as a result, the extracted jar file is getting "jar-with-dependencies" appended to its name.

            However, this should not be a problem for the proguard plugin since I can specify the name of the jar in its injar element like this: ${project.build.finalName}-jar-with-dependencies.jar

            But for some reason, as it can be seen on the error message, it is never able to locate the jar because it is looking for its original name, not the one with "-jar-with-dependencies" when I compile it with this command: mvn clean compile assembly:single proguard:proguard

            Error Message

            ...

            ANSWER

            Answered 2021-Sep-01 at 11:46

            It turns out that the execution element should be closed before the configuration element

            Source https://stackoverflow.com/questions/69010317

            QUESTION

            How to unkeep or force remove @javax.persistence.Transient annotated methods in JPA entities in ProGuard?
            Asked 2021-Apr-05 at 13:02

            I'm extracting JPA entities into a separate Fat/Uber jar for external system to use. ProGuard is used through com.github.wvengen:proguard-maven-plugin to shrink all other unused code. I want to keep all methods in JPA entities except ones annotated by @javax.persistence.Transient annotation. I've found "!transient" for field modifiers in ProGuard rules, but seems that !@javax.persistence.Transient for methods does not work :( Can I reach the same effect somehow for methods by other way ?

            ...

            ANSWER

            Answered 2021-Apr-05 at 13:02

            Unfortunately I've not got an answer on this question and was not be able to solve this by ProGuard+MavenPlugin directly, but I've resolved this problem with one additional step before run a ProGuard. I've just used ByteBuddy + Maven plugin on Maven phase before you run ProGuard Maven plugin and it will then optimize/remove the rest unused stuff, see details about byte-buddy instrumentation step here: byte-buddy remove/strip methods

            Source https://stackoverflow.com/questions/66762103

            QUESTION

            proguard: Can't read [C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\lib\rt.jar]
            Asked 2020-Aug-13 at 16:35

            I am building a desktop application. I am using ProGuard with the following config:

            ...

            ANSWER

            Answered 2020-Aug-13 at 16:35

            You have the line ${java.home}/lib/rt.jar in your configuration for proguard. This is no longer valid in JDK11 as it was removed in that version of Java.

            Source https://stackoverflow.com/questions/63398875

            QUESTION

            How to use proguard-maven-plugin to filter all maven dependencies when obfuscating code?
            Asked 2020-Mar-30 at 01:21

            I wrote the required maven dependencies in maven's pom.xml, and now I add proguard-maven-plugin to obfuscate the code, and hope not to obfuscate the dependencies written in pom.xml

            The project depends on a lot of maven jars. Is there a configuration method to directly filter all maven jars?

            How do I modify pom.xml or proguard.cfg?

            A part of my pom.xml

            dependencies:

            ...

            ANSWER

            Answered 2020-Mar-30 at 01:21

            I finally added the following parameters to the configuration file to solve the problem

            Source https://stackoverflow.com/questions/60681508

            QUESTION

            Exclude obfuscated jar from lib folder with ProGuard
            Asked 2020-Feb-11 at 15:50

            I am using proguard-maven-plugin in my multi-module maven project with spring boot. By no means, I am not an expert and still learning how to make use of all features provided with ProGuard, so bear with me. ProGuard dependency:

            ...

            ANSWER

            Answered 2020-Feb-11 at 15:50

            So, after a bit of struggle, I found a solution to my issue. Firstly, I added a of "provided" (link to docs) to the dependencies I wanted out of the lib folder :

            Source https://stackoverflow.com/questions/60146880

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install proguard-maven-plugin

            You can download it from GitHub, Maven.
            You can use proguard-maven-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the proguard-maven-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/wvengen/proguard-maven-plugin.git

          • CLI

            gh repo clone wvengen/proguard-maven-plugin

          • sshUrl

            git@github.com:wvengen/proguard-maven-plugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link