Skip to content
Discussion options

You must be logged in to vote

Hey.

There is a pair of parameters includes and excludes that take a list of glob patterns that should do what you need.

Pass the directories of the sources into sourceDirectories, then filter what you need using includes relative to your source directories. That should achieve what you need.

Example of the includes parameter being used: https://github.com/ascopes/protobuf-maven-plugin/blob/main/protobuf-maven-plugin/src/it/gh-250-includes/pom.xml#L52

Parameter documentation: https://ascopes.github.io/protobuf-maven-plugin/generate-mojo.html#includes

If you instead wish to separate the dependency protos from your source protos, you can make a separate directory for dependencies to be plac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cowwoc
Comment options

Answer selected by cowwoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants