Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Deil12 opened this issue Apr 30, 2024 · 0 comments
Open

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

Deil12 opened this issue Apr 30, 2024 · 0 comments

Comments

@Deil12
Copy link

Deil12 commented Apr 30, 2024

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/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant