From e1548320df360fb56ec39c1555a6c2903556c7ce Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Fri, 6 Oct 2023 09:39:03 +0200 Subject: [PATCH] Adding the repository creation to target platform with feature its example Demonstrates that an Eclipse feature and its dependencies from the target platform can also be used to create the content of an update site. --- .../target.maven.eclipse-feature/pom.xml | 1 + .../repository/category.xml | 4 ++ .../repository/pom.xml | 42 +++++++++++++++++++ .../target/TargetPlatformLocationsTest.java | 2 + 4 files changed, 49 insertions(+) create mode 100644 tycho-its/projects/target.maven.eclipse-feature/repository/category.xml create mode 100644 tycho-its/projects/target.maven.eclipse-feature/repository/pom.xml diff --git a/tycho-its/projects/target.maven.eclipse-feature/pom.xml b/tycho-its/projects/target.maven.eclipse-feature/pom.xml index 7e770f2534..81694c3ab1 100644 --- a/tycho-its/projects/target.maven.eclipse-feature/pom.xml +++ b/tycho-its/projects/target.maven.eclipse-feature/pom.xml @@ -8,6 +8,7 @@ target-platform feature + repository diff --git a/tycho-its/projects/target.maven.eclipse-feature/repository/category.xml b/tycho-its/projects/target.maven.eclipse-feature/repository/category.xml new file mode 100644 index 0000000000..e19c6b34a7 --- /dev/null +++ b/tycho-its/projects/target.maven.eclipse-feature/repository/category.xml @@ -0,0 +1,4 @@ + + + + diff --git a/tycho-its/projects/target.maven.eclipse-feature/repository/pom.xml b/tycho-its/projects/target.maven.eclipse-feature/repository/pom.xml new file mode 100644 index 0000000000..34a19f8c16 --- /dev/null +++ b/tycho-its/projects/target.maven.eclipse-feature/repository/pom.xml @@ -0,0 +1,42 @@ + + + + 4.0.0 + + + + tycho-its-project + target.maven.eclipse-feature + 0.0.1-SNAPSHOT + + + + tycho-its-project + repository + 0.0.1-SNAPSHOT + eclipse-repository + + Update site with feature and all dependencies + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + org.eclipse.tycho + tycho-p2-repository-plugin + ${tycho-version} + + true + + + + + diff --git a/tycho-its/src/test/java/org/eclipse/tycho/test/target/TargetPlatformLocationsTest.java b/tycho-its/src/test/java/org/eclipse/tycho/test/target/TargetPlatformLocationsTest.java index 29537b9e2d..fb6a63e5bf 100644 --- a/tycho-its/src/test/java/org/eclipse/tycho/test/target/TargetPlatformLocationsTest.java +++ b/tycho-its/src/test/java/org/eclipse/tycho/test/target/TargetPlatformLocationsTest.java @@ -165,6 +165,8 @@ public void testMavenLocationEclipseFeature() throws Exception { Verifier verifier = getVerifier("target.maven.eclipse-feature", false, true); verifier.executeGoal("verify"); verifier.verifyErrorFreeLog(); + File targetdir = new File(verifier.getBasedir(), "repository/target"); + assertFileExists(targetdir, "repository/features/org.eclipse.jgit_6.1.0.202203080745-r.jar"); } @Test