ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.87k stars 514 forks source link

one and the same project got two mvn result by Mac and Win #394

Open Deil12 opened 4 months ago

Deil12 commented 4 months ago

Here is my work

pom with

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.7.18</version>
</parent>

...

<plugin>
    <groupId>com.github.ulisesbocchio</groupId>
    <artifactId>jasypt-maven-plugin</artifactId>
    <version>3.0.5</version>
</plugin>

IDEA configuration command line with

jasypt:decrypt -Djasypt.plugin.path=file:.run/test.md -Djasypt.encryptor.password=password -Djasypt.encryptor.algorithm=PBEWithMD5AndDES -Djasypt.encryptor.iv-generator-classname=org.jasypt.iv.NoIvGenerator -pl commonUtil -am

Then the BUILD FAILURE on Mac

[INFO] No active profile set, falling back to 1 default profile: "default"
[ERROR] Application run failed
org.springframework.cglib.core.CodeGenerationException: java.lang.NoClassDefFoundError-->org/springframework/context/annotation/ConfigurationClassEnhancer$EnhancedConfiguration
    at org.springframework.cglib.core.ReflectUtils.defineClass (ReflectUtils.java:557)
    at org.springframework.cglib.core.AbstractClassGenerator.generate (AbstractClassGenerator.java:363)
    at org.springframework.cglib.proxy.Enhancer.generate (Enhancer.java:585)
    at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply (AbstractClassGenerator.java:110)
    at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply (AbstractClassGenerator.java:108)
    at org.springframework.cglib.core.internal.LoadingCache$2.call (LoadingCache.java:54)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at org.springframework.cglib.core.internal.LoadingCache.createEntry (LoadingCache.java:61)
    at org.springframework.cglib.core.internal.LoadingCache.get (LoadingCache.java:34)

...

[ERROR] Failed to execute goal com.github.ulisesbocchio:jasypt-maven-plugin:3.0.5:decrypt (default-cli) on project common: Execution default-cli of goal com.github.ulisesbocchio:jasypt-maven-plugin:3.0.5:decrypt failed: java.lang.NoClassDefFoundError-->org/springframework/context/annotation/ConfigurationClassEnhancer$EnhancedConfiguration: org.springframework.context.annotation.ConfigurationClassEnhancer$EnhancedConfiguration -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

and SUCCESS on Win. I'm sure everything was up-to-date by git remote. But not sure what I have done with my project when mvn jasypt:decrypt.. was working, Mac is my coding machine, And deploy services by Win.

Is there anything like dependency-check-maven cache it`s NVD/CVE in /.m2/repository/org/owasp/dependency-check-data/ ?