Skip to content

Commit 72e8879

Browse files
committed
Added a Maven module to build an update site.
1 parent 3093ec1 commit 72e8879

File tree

4 files changed

+180
-0
lines changed

4 files changed

+180
-0
lines changed

jamopp.p2/category.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<site>
3+
<feature id="org.emftext.language.java.feature">
4+
<category name="org.palladiosimulator.jdt.core"/>
5+
</feature>
6+
<bundle id="org.emftext.language.java">
7+
<category name="org.palladiosimulator.jdt.metamodel"/>
8+
</bundle>
9+
<category-def name="org.palladiosimulator.jdt.core" label="Palladio Supporting Eclipse Java Development Tools Core"/>
10+
<category-def name="org.palladiosimulator.jdt.metamodel" label="Palladio Supporting Eclipse Java Development Tools Metamodel"/>
11+
<category-def name="org.palladiosimulator.jdt.generator" label="Palladio Supporting Eclipse Java Development Tools Generator"/>
12+
</site>

jamopp.p2/pom.xml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<parent>
5+
<groupId>tools.mdsd</groupId>
6+
<artifactId>jamopp.parent</artifactId>
7+
<version>6.0.0-SNAPSHOT</version>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>jamopp.p2</artifactId>
11+
<name>JaMoPP P2</name>
12+
<packaging>pom</packaging>
13+
<build>
14+
<plugins>
15+
<plugin>
16+
<groupId>org.reficio</groupId>
17+
<artifactId>p2-maven-plugin</artifactId>
18+
<version>2.1.0</version>
19+
<executions>
20+
<execution>
21+
<phase>package</phase>
22+
<goals>
23+
<goal>site</goal>
24+
</goals>
25+
<configuration>
26+
<categoryFileURL>${project.basedir}/category.xml</categoryFileURL>
27+
<artifacts>
28+
<!-- specify your depencies here -->
29+
<!-- groupId:artifactId:version -->
30+
<artifact>
31+
<id>tools.mdsd:org.emftext.language.java:6.0.0-SNAPSHOT</id>
32+
<id>tools.mdsd:org.emftext.language.java.edit:6.0.0-SNAPSHOT</id>
33+
<id>tools.mdsd:jamopp.parser.jdt.singlefile:6.0.0-SNAPSHOT</id>
34+
<id>tools.mdsd:jamopp.resource:6.0.0-SNAPSHOT</id>
35+
<id>tools.mdsd:jamopp.parser.jdt:6.0.0-SNAPSHOT</id>
36+
<id>tools.mdsd:jamopp.standalone:6.0.0-SNAPSHOT</id>
37+
</artifact>
38+
</artifacts>
39+
<featureDefinitions>
40+
<feature>
41+
<id>org.emftext.language.java.feature</id>
42+
<version>${project.version}</version>
43+
<label>JaMoPP - Java Model Parser and Printer</label>
44+
<providerName>${project.groupId}</providerName>
45+
<description>JaMoPP: Java Model Parser and Printer (EMFText-based Java support for EMF modelling tools).</description>
46+
<copyright>
47+
Copyright (c) 2006-2013 Software Technology Group, Dresden University of Technology, Germany; DevBoost GmbH, Dresden, Amtsgericht Dresden, HRB 34001.
48+
</copyright>
49+
<license>
50+
Eclipse Public License v1.0
51+
52+
Copyright (c) 2006-2013
53+
Software Technology Group, Dresden University of Technology
54+
DevBoost GmbH, Dresden, Amtsgericht Dresden, HRB 34001.
55+
56+
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
57+
58+
Contributors:
59+
Software Technology Group - TU Dresden, Germany;
60+
DevBoost GmbH - Dresden, Germany
61+
- initial API and implementation
62+
</license>
63+
<generateSourceFeature>true</generateSourceFeature>
64+
<artifacts>
65+
<artifact>
66+
<id>tools.mdsd:org.emftext.language.java:6.0.0-SNAPSHOT</id>
67+
<transitive>false</transitive>
68+
<source>false</source>
69+
</artifact>
70+
<artifact>
71+
<id>tools.mdsd:org.emftext.language.java.edit:6.0.0-SNAPSHOT</id>
72+
<transitive>false</transitive>
73+
<source>false</source>
74+
</artifact>
75+
<artifact>
76+
<id>tools.mdsd:jamopp.parser:6.0.0-SNAPSHOT</id>
77+
<transitive>false</transitive>
78+
<source>false</source>
79+
</artifact>
80+
<artifact>
81+
<id>tools.mdsd:jamopp.parser.jdt:6.0.0-SNAPSHOT</id>
82+
<transitive>false</transitive>
83+
<source>false</source>
84+
</artifact>
85+
<artifact>
86+
<id>tools.mdsd:jamopp.parser.jdt.singlefile:6.0.0-SNAPSHOT</id>
87+
<transitive>false</transitive>
88+
<source>false</source>
89+
</artifact>
90+
<artifact>
91+
<id>tools.mdsd:jamopp.printer:6.0.0-SNAPSHOT</id>
92+
<transitive>false</transitive>
93+
<source>false</source>
94+
</artifact>
95+
<artifact>
96+
<id>tools.mdsd:jamopp.resolution:6.0.0-SNAPSHOT</id>
97+
<transitive>false</transitive>
98+
<source>false</source>
99+
</artifact>
100+
<artifact>
101+
<id>tools.mdsd:jamopp.resource:6.0.0-SNAPSHOT</id>
102+
<transitive>false</transitive>
103+
<source>false</source>
104+
</artifact>
105+
<artifact>
106+
<id>tools.mdsd:jamopp.standalone:6.0.0-SNAPSHOT</id>
107+
<transitive>false</transitive>
108+
<source>false</source>
109+
</artifact>
110+
</artifacts>
111+
</feature>
112+
</featureDefinitions>
113+
</configuration>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-assembly-plugin</artifactId>
120+
<configuration>
121+
<descriptors>
122+
<descriptor>src/assembly/src.xml</descriptor>
123+
</descriptors>
124+
</configuration>
125+
<executions>
126+
<execution>
127+
<phase>package</phase>
128+
<goals>
129+
<goal>single</goal>
130+
</goals>
131+
</execution>
132+
</executions>
133+
</plugin>
134+
</plugins>
135+
</build>
136+
<dependencies>
137+
<!-- This dependency is to make sure this projects is build after all relevant artifacts are created -->
138+
<dependency>
139+
<groupId>tools.mdsd</groupId>
140+
<artifactId>org.emftext.language.java.edit</artifactId>
141+
<version>6.0.0-SNAPSHOT</version>
142+
<type>pom</type>
143+
</dependency>
144+
</dependencies>
145+
</project>

jamopp.p2/src/assembly/src.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 https://maven.apache.org/xsd/assembly-2.2.0.xsd">
4+
<id>p2-zipped</id>
5+
<formats>
6+
<format>zip</format>
7+
</formats>
8+
<includeBaseDirectory>false</includeBaseDirectory>
9+
<fileSets>
10+
<fileSet>
11+
<directory>${project.build.directory}/repository</directory>
12+
<outputDirectory></outputDirectory>
13+
<!--<includes>
14+
<include>README*</include>
15+
<include>LICENSE*</include>
16+
<include>NOTICE*</include>
17+
<include>pom.xml</include>
18+
</includes>-->
19+
<useDefaultExcludes>false</useDefaultExcludes>
20+
</fileSet>
21+
</fileSets>
22+
</assembly>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<modules>
2222
<module>bundles</module>
2323
<module>tests</module>
24+
<module>jamopp.p2</module>
2425
</modules>
2526

2627
<dependencyManagement>

0 commit comments

Comments
 (0)