Skip to content

Commit

Permalink
[RelEng] Let Tycho build a self-contained p2-repo with minimal content
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Oct 4, 2023
1 parent 3977182 commit 53bdd9f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
20 changes: 0 additions & 20 deletions org.eclipse.m2e.repository/category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@
<feature id="org.eclipse.m2e.sdk.feature">
<category name="m2e"/>
</feature>
<bundle id="slf4j.api"/>
<bundle id="slf4j.api.source"/>
<bundle id="ch.qos.logback.core"/>
<bundle id="ch.qos.logback.core.source"/>
<bundle id="ch.qos.logback.classic"/>
<bundle id="ch.qos.logback.classic.source"/>
<bundle id="com.google.gson"/>
<bundle id="com.google.gson.source"/>
<bundle id="org.apache.commons.cli"/>
<bundle id="org.apache.commons.cli.source"/>
<bundle id="jakarta.servlet-api"/>
<bundle id="com.google.guava"/>
<bundle id="org.jdom2"/>
<bundle id="jaxen"/>
<bundle id="org.jdom"/>
<iu>
<query>
<expression type="match">
Expand All @@ -44,9 +29,4 @@
</query>
</iu>
<category-def name="m2e" label="Maven Integration for Eclipse"/>
<repository-reference location="https://download.eclipse.org/eclipse/updates/4.29/" enabled="true" />
<repository-reference location="https://download.eclipse.org/wildwebdeveloper/releases/1.3.0/" enabled="true" />
<repository-reference location="https://download.eclipse.org/tm4e/releases/0.8.1/" enabled="true" />
<repository-reference location="https://download.eclipse.org/lsp4j/updates/releases/0.21.0/" enabled="true" />
<repository-reference location="https://download.eclipse.org/lsp4e/releases/0.23.0/" enabled="true" />
</site>
19 changes: 18 additions & 1 deletion org.eclipse.m2e.repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
Sonatype, Inc. - initial API and implementation
Hannes Wellmann - Set up PGP-signing
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -48,6 +49,22 @@
</dependency-resolution>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
<includeAllSources>true</includeAllSources>
<filterProvided>true</filterProvided>
<addIUTargetRepositoryReferences>true</addIUTargetRepositoryReferences>
<repositoryReferenceFilter>
<addOnlyProviding>true</addOnlyProviding>
<exclude>
<location>https://download.eclipse.org/tools/orbit/**</location>
</exclude>
</repositoryReferenceFilter>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
10 changes: 5 additions & 5 deletions target-platform/target-platform.target
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/eclipse/updates/4.29/"/><!--Keep in sync with repo-ref in org.eclipse.m2e.repository/category.xml-->
<repository location="https://download.eclipse.org/eclipse/updates/4.29/"/>
<unit id="org.eclipse.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.p2.discovery.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.ui.tests.harness" version="0.0.0"/>
Expand Down Expand Up @@ -32,10 +32,10 @@
<unit id="org.eclipse.wst.xsd.core" version="0.0.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/wildwebdeveloper/releases/1.3.0/"/><!--Keep in sync with repo-ref in org.eclipse.m2e.repository/category.xml-->
<repository location="https://download.eclipse.org/tm4e/releases/0.8.1/"/><!--Keep in sync with repo-ref in org.eclipse.m2e.repository/category.xml-->
<repository location="https://download.eclipse.org/lsp4e/releases/0.23.0/"/><!--Keep in sync with repo-ref in org.eclipse.m2e.repository/category.xml-->
<repository location="https://download.eclipse.org/lsp4j/updates/releases/0.21.0/"/><!--Keep in sync with repo-ref in org.eclipse.m2e.repository/category.xml-->
<repository location="https://download.eclipse.org/wildwebdeveloper/releases/1.3.0/"/>
<repository location="https://download.eclipse.org/tm4e/releases/0.8.1/"/>
<repository location="https://download.eclipse.org/lsp4e/releases/0.23.0/"/>
<repository location="https://download.eclipse.org/lsp4j/updates/releases/0.21.0/"/>
<unit id="org.eclipse.wildwebdeveloper.xml.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.lsp4e" version="0.0.0"/>
</location>
Expand Down

0 comments on commit 53bdd9f

Please sign in to comment.