-
Notifications
You must be signed in to change notification settings - Fork 193
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 an option to prevent repo-references from being added to a p2-repo #2742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good any chance we can have an itest to verify this works (and will work in the future)?
...ory-plugin/src/main/java/org/eclipse/tycho/plugins/p2/repository/AssembleRepositoryMojo.java
Outdated
Show resolved
Hide resolved
Will try that. |
43561d2
to
db4be9a
Compare
Added a test-case and simplified the existing reference test to use the P2Repo Xpath Tools. |
We could consider to just filter those repositories that are added automatically. If one adds a repo-reference in the |
Sounds reasonable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Add a new parameter named 'repositoryReferenceFilter' to the AssembleRepositoryMojo to better control the automatic addition of repository references with matching locations. This can be used with ANT-style or Java RegEx patterns as follows: <repositoryReferenceFilter> <exclude> <location>https://foo.bar.org/hidden/**</location> <location>https://foo.bar.org/secret/**</location> </exclude> <include>%regex[http(s)?:\/\/foo\.bar\.org\/.*]</include> </repositoryReferenceFilter> The is especially convenient in combination with the automatic addition of IU Target-Repository or POM-Repository references, if some but not all repos should be added.
db4be9a
to
91064a5
Compare
Changed it that way now and also removed the plural s from filters since I think it is one filter that has different parameters/components. |
Platform Aggregator build failure is likely due to the incomplete transistion to Eclipse 4.30, thus merging. |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Add a new parameter named 'excludedRepositoryReferences' to the AssembleRepositoryMojo to prevent (mainly the automatic) addition of repository references with matching locations.
This can be used with ANT-style or Java RegEx patterns as follows:
The is especially convenient in combination with the automatic addition of IU Target-Repository or POM-Repository references, if some but not all repos should be added.
One use-case of this is for example eclipse-m2e/m2e-core#1222.