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

Add configuration option to filter project dependencies in AJC classpath #194

Open
asokolov-a1 opened this issue Jan 22, 2024 · 1 comment

Comments

@asokolov-a1
Copy link

Aspectj-maven-plugin 1.15.0 includes all of the project's dependencies (except pom-type) to the -classpath parameter for AJC (see here).
In our project we use some dependencies that have yaml packaging type and they are added to the classpath, resulting in a compilation errors like this:

Failed to init Classpath for jar file /home/user/.m2/repository/<artifact_path>.yaml
java.util.zip.ZipException: zip END header not found
at
....
at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:568)

It would be great if there was an option to filter out dependency types other than pom to prevent them from including in classpath (or, more general, a classpath customization/filtering feature).

@asokolov-a1 asokolov-a1 changed the title Add configuration option to filter project dependencies that are processed Add configuration option to filter project dependencies in AJC classpath Jan 22, 2024
@kriegaex
Copy link
Collaborator

I think, your chances to get attention will grow significantly if you provide an MCVE. It is not an everyday thing that a plugin defines its own packaging type, usually accompanied by a custom workflow mapping. Nobody wants to guess what that might look like and invent one by themselves. OTOH, without anything testable, nobody in their right minds would just commit it blindly, hoping to solve your problem. So please, share a link to a full, minimal reproducer. Thank you.

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

2 participants