You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i run my obfuscated.jar it show error no main manifest attribute, in target\crud-spring-boot-thymeleaf-0.0.1-SNAPSHOT-obfuscated.jar here is my build
<configuration>
<target>
<taskdef name="yguard"
classname="com.yworks.yguard.YGuardTask"
classpathref="maven.plugin.classpath"/>
<yguard>
<inoutpair in="${project.build.directory}/${project.build.finalName}.jar"
out="${project.build.directory}/${project.build.finalName}-obfuscated.jar"/>
<rename mainclass="com.crudapp.SpringBootCrudApplication"
logfile="${project.build.directory}/renaming-log.xml">
<keep>
<!-- Main Spring Boot Application -->
<class name="com.crudapp.SpringBootCrudApplication"/>
<!-- Spring components and configurations -->
<class name="com.crudapp.entity.*"/>
<class name="com.crudapp.repository.*"/>
<class name="com.crudapp.service.*"/>
<class name="com.crudapp.service.impl.*"/>
<!-- Keep Spring annotations -->
<class name="org.springframework.**"/>
<class name="jakarta.persistence.**"/>
<!-- Optionally keep all classes in your package -->
<class name="com.crudapp.**"/>
</keep>
</rename>
</yguard>
</target>
</configuration>
The text was updated successfully, but these errors were encountered:
This is from your Maven POM, right? In this case, please see the processing example POM. All the steps in the example's antrun configuration are necessary to successfully obfuscate a Spring Boot application (see the inline comment right before the antrun configuration). You probably need to adjust your configuration accordingly.
when i run my obfuscated.jar it show error no main manifest attribute, in target\crud-spring-boot-thymeleaf-0.0.1-SNAPSHOT-obfuscated.jar here is my build
The text was updated successfully, but these errors were encountered: