Skip to content

Class not found exception when using plugin #488

@friendlymahi

Description

@friendlymahi

Describe the bug
When using this npm package, encountered maven error below:

[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.24:check-signature (default-check-signature) on project XXX: Execution default check-signature of goal com.day.jcr.vault:content-package-maven-plugin:0.0.24:check-signature failed: A required class was missing while executing com.day.jcr.vault:content-package-maven-plugin:0.0.24:check-signature: org/codehaus/mojo/animal_sniffer/logging/Logger
[ERROR] ------------
[ERROR] realm =. extension>com.day.jcr.vault:content-package-maven-plugin:0.0.24
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:XXXXXXX/.m2_repo/com/day/jcr/vault/content-package-maven-plugin/0.0.24/content-package-maven-plugin-0.0.24.jar
[ERROR] urls[1] = file:XXXXXXX/.m2_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1

To Reproduce
Unable to reproduce this issue on different machines. I use a Mac with Maven 3.9 and OpenJDK11. It works fine wrt building the package. But in my office network where there are more restrictions, I encountered the error stated above with Windows 10, Maven 3.8 and JDK 11.

Expected behavior
Should be consistent across platforms

Screenshots and Logs
Shared above

Environment (please complete the following information):

  • OS: [Windows 10]
  • Version: [3.1.3]
  • NodeJS Version: [18.x]
  • NPM Version: [9.x]

Additional context
Instead of trying to identify rootcause, it may be worth switching to jackrabbit package maven plugin which is the new one even Adobe recommends, and we tested the same to confirm there are no such errors. Will be sending a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions