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

How to skip some jars in multi jars #341

Open
pcdlrzxx opened this issue May 30, 2024 · 2 comments
Open

How to skip some jars in multi jars #341

pcdlrzxx opened this issue May 30, 2024 · 2 comments

Comments

@pcdlrzxx
Copy link

I have an Eclipse 4 plug-in project, cause there is a feature module which would be packaged into a jar by Maven Tycho. Meanwhile there are also other modules going to be packaged as jars, such as plugins and fragments.

But when I add the proguard-maven-plugin and execute maven packaging, everything works fine until the feature jar. It throws an error likes below, and I take many tries(add inFilter tag, exclusions tag, and so on) to solve it but failed.

So, can anybody tell me how to skip certain jar(s) when there are mutil jars in a project, or any way to solve the problem below is also okay.

Thanks a lot!
企业微信20240530-163453

@lasselindqvist
Copy link
Collaborator

You would need to show your project structure and how you define input jars.

@pcdlrzxx
Copy link
Author

You would need to show your project structure and how you define input jars.

Thanks for your reply.

The project structure is simple, which only includes two plug-in projects, one feature project and one product project. And I use Tycho to execute the building.

Now I have solved this problem by setting the <injar> to "classes" and the <phase> to "compile", however before this I respectively setted them to "${project.build.finalName}.jar" and "package". Although it was solved, but to be honest, I don't know the reason and how to set the correct values for the two fields.

So is there any specific explanation about this?

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