Permalink
Browse files

#289: new module which builds a p2 update site (for eclipse plugin)

  • Loading branch information...
1 parent 79c4e46 commit 17f0791bc26fd62265298393d9f87c519320f6c8 @afdia afdia committed Nov 19, 2016
View
@@ -41,6 +41,7 @@
<module>umlet-standalone</module>
<module>umlet-eclipse-plugin-deps</module>
<module>umlet-eclipse-plugin</module>
+ <module>umlet-eclipse-p2</module>
<module>umlet-gwt</module>
</modules>
@@ -258,6 +259,19 @@
<ignore></ignore>
</action>
</pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.reficio</groupId>
+ <artifactId>p2-maven-plugin</artifactId>
+ <versionRange>[1.1.1,)</versionRange>
+ <goals>
+ <goal>site</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>umlet-eclipse-p2-builder</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
@@ -6,11 +6,8 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
- <directory>${project.build.directory}</directory>
- <outputDirectory>.</outputDirectory>
- <includes>
- <include>*.jar</include>
- </includes>
+ <directory>${project.build.directory}/repository</directory>
+ <outputDirectory>repository</outputDirectory>
</fileSet>
</fileSets>
</assembly>
@@ -0,0 +1,63 @@
+<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>com.umlet</groupId>
+ <artifactId>umlet-parent</artifactId>
+ <version>14.3.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>umlet-eclipse-p2</artifactId>
+ <packaging>pom</packaging>
+
+ <description>
+ This module publishes the eclipse plugin to a p2 repository (for an eclipse update site).
+ It is a separate module to make sure it runs after the umlet eclipse plugin is installed in the local mvn repository.
+ If umlet is published to maven central in the future, this module could be removed and the p2 generation can be done during the deploy phase (then the artifact is already pushed to maven central).
+ </description>
+
+ <build>
+ <plugins>
+ <!-- generate p2 repo for Eclipse update site (published on GitHub) -->
+ <plugin>
+ <groupId>org.reficio</groupId>
+ <artifactId>p2-maven-plugin</artifactId>
+ <version>1.1.1</version>
+ <executions>
+ <execution>
+ <id>default-cli</id>
+ <phase>install</phase>
+ <goals>
+ <goal>site</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <id>com.umlet:com.umlet.plugin:jar:${project.version}</id>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- assemble P2 Repo as zip file -->
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.5.3</version>
+ <configuration>
+ <descriptor>assembly.xml</descriptor>
+ <appendAssemblyId>false</appendAssemblyId>
+ </configuration>
+ <executions>
+ <execution>
+ <id>create-archive</id>
+ <phase>install</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
@@ -172,24 +172,6 @@
</environments>
</configuration>
</plugin>
- <!-- assemble UMLetino output as zip file -->
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.5.3</version>
- <configuration>
- <descriptor>src/assembly/dep.xml</descriptor>
- <appendAssemblyId>false</appendAssemblyId>
- </configuration>
- <executions>
- <execution>
- <id>create-archive</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>

0 comments on commit 17f0791

Please sign in to comment.