Skip to content

Commit

Permalink
Issue eclipse-lemminx#288 - Generate OSGi and p2 data
Browse files Browse the repository at this point in the history
Signed-off-by: Mickael Istria <[email protected]>
  • Loading branch information
mickaelistria committed Feb 17, 2019
1 parent a283a7c commit b2b540c
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 0 deletions.
12 changes: 12 additions & 0 deletions extensions/org.eclipse.lsp4xml.extensions.emmet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,16 @@
<artifactId>org.eclipse.lsp4xml</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
12 changes: 12 additions & 0 deletions extensions/org.eclipse.lsp4xml.extensions.web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,16 @@
<artifactId>org.eclipse.lsp4xml</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
9 changes: 9 additions & 0 deletions org.eclipse.lsp4xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,21 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<descriptors>
<descriptor>src/assembly/distribution.xml</descriptor>
<descriptor>src/assembly/p2repo.xml</descriptor>
</descriptors>
<finalName>${project.artifactId}</finalName>
<archive>
Expand Down
19 changes: 19 additions & 0 deletions org.eclipse.lsp4xml/src/assembly/p2repo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<!--
Copied from jar-with-dependencies because we want to both control the local name
AND attach the binary to the project build artifacts. Workaround for https://issues.apache.org/jira/browse/MASSEMBLY-824
-->
<id>p2repo</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/p2</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>
78 changes: 78 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,84 @@
<runOrder>random</runOrder>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.1.0</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<id>generate-p2-site</id>
<phase>process-classes</phase>
<goals>
<goal>eclipse-run</goal>
</goals>
<configuration>
<repositories>
<repository>
<id>eclipse-4.10</id>
<layout>p2</layout>
<url>http://download.eclipse.org/eclipse/updates/4.10/R-4.10-201812060815/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<artifactId>org.eclipse.equinox.p2.publisher.eclipse</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
<applicationsArgs>
<arg>-application</arg>
<arg>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</arg>
<arg>-metadataRepository</arg>
<arg>file:${project.build.directory}/p2</arg>
<arg>-artifactRepository</arg>
<arg>file:${project.build.directory}/p2</arg>
<arg>-bundles</arg>
<arg>${project.build.directory}</arg>
<arg>-compress</arg>
<arg>-publishArtifacts</arg>
</applicationsArgs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit b2b540c

Please sign in to comment.