Skip to content

Commit

Permalink
Adding the repository creation to target platform with feature its
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit e154832)
  • Loading branch information
vogella authored and laeubi committed Oct 11, 2023
1 parent a3a238a commit 5d74dde
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions tycho-its/projects/target.maven.eclipse-feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<modules>
<module>target-platform</module>
<module>feature</module>
<module>repository</module>
</modules>

<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature id="org.eclipse.jgit"/>
</site>
42 changes: 42 additions & 0 deletions tycho-its/projects/target.maven.eclipse-feature/repository/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 Sonatype, Inc. All rights reserved. This program
and the accompanying materials are made available under the terms of the
Eclipse Public License 2.0 which accompanies this distribution, and is available
at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 -->
<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>


<parent>
<groupId>tycho-its-project</groupId>
<artifactId>target.maven.eclipse-feature</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>


<groupId>tycho-its-project</groupId>
<artifactId>repository</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>

<name>Update site with feature and all dependencies</name>

<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>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d74dde

Please sign in to comment.