-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an option to filter repo-references before being added to a p2-repo
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.
- Loading branch information
1 parent
9a9852e
commit 8e2f074
Showing
7 changed files
with
216 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tycho-its/projects/p2Repository.repositoryRef.filter/category.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<site> | ||
<category-def name="Test Category" label="Test Category Label"> | ||
<description> | ||
Test Category Description | ||
</description> | ||
</category-def> | ||
<repository-reference location="https://some.where/from/category" enabled="true" /> | ||
</site> |
55 changes: 55 additions & 0 deletions
55
tycho-its/projects/p2Repository.repositoryRef.filter/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<version>1.0.0</version> | ||
<groupId>tycho-its-project.p2Repository.repositoryRef.location</groupId> | ||
<artifactId>repositoryRef.location</artifactId> | ||
<packaging>eclipse-repository</packaging> | ||
|
||
<repositories> | ||
<repository> | ||
<id>repo1</id> | ||
<url>https://download.eclipse.org/tm4e/releases/0.8.1</url> | ||
<layout>p2</layout> | ||
</repository> | ||
<repository> | ||
<id>repo2</id> | ||
<url>https://download.eclipse.org/lsp4e/releases/0.24.1</url> | ||
<layout>p2</layout> | ||
</repository> | ||
<repository> | ||
<id>repo3</id> | ||
<url>https://download.eclipse.org/lsp4j/updates/releases/0.21.1</url> | ||
<layout>p2</layout> | ||
</repository> | ||
</repositories> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-maven-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<extensions>true</extensions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-p2-repository-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<configuration> | ||
<compress>false</compress> | ||
<addPomRepositoryReferences>true</addPomRepositoryReferences> | ||
<repositoryReferenceFilter> | ||
<exclude> | ||
<location>https://download.eclipse.org/lsp4e/**</location> | ||
<location>https://download.eclipse.org/lsp4j/**</location> | ||
</exclude> | ||
<include>%regex[http(s)?:\/\/download\.eclipse\.org\/.*]</include> | ||
</repositoryReferenceFilter> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.