Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ae7e691d7bfb49612207a6c6f0649d5bac2a6275 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<groupId>edapt</groupId>
	<artifactId>plugins</artifactId>
	<packaging>pom</packaging>

	<parent>
		<groupId>edapt</groupId>
		<artifactId>root</artifactId>
		<version>1.4.0-SNAPSHOT</version>
		<relativePath>../builds/org.eclipse.emf.edapt.releng</relativePath>  
	</parent>

	<modules>
		<module>org.eclipse.emf.edapt.common</module>
		<module>org.eclipse.emf.edapt.common.ui</module>
		<module>org.eclipse.emf.edapt.declaration</module>
		<module>org.eclipse.emf.edapt.declaration.edit</module>
		<module>org.eclipse.emf.edapt.declaration.editor</module>
		<module>org.eclipse.emf.edapt.history</module>
		<module>org.eclipse.emf.edapt.history.cdo</module>
		<module>org.eclipse.emf.edapt.history.edit</module>
		<module>org.eclipse.emf.edapt.history.editor</module>
		<module>org.eclipse.emf.edapt.migration</module>
		<module>org.eclipse.emf.edapt.migration.test</module>
		<module>org.eclipse.emf.edapt.migration.ui</module>
	</modules>

	<build>
		<plugins>
			<!-- 1. Enable source plugin generation -->
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-source-plugin</artifactId>
				<version>${tycho-version}</version>
				<executions>
					<execution>
						<id>attach-source</id>
						<goals>
							<goal>plugin-source</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	
	<profiles>
		<!-- Enable code signing and packing -->
		<profile>
			<id>build-server</id>
			<build>
				<plugins>
					<!-- Packing normalize -->
					<plugin>
						<groupId>org.eclipse.tycho.extras</groupId>
						<artifactId>tycho-pack200a-plugin</artifactId>
						<version>${tycho-version}</version>
						<executions>
							<execution>
								<id>pack200-normalize</id>
								<goals>
									<goal>normalize</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					
					<!-- code signing -->
					<plugin>
						<groupId>org.eclipse.cbi.maven.plugins</groupId>
						<artifactId>eclipse-jarsigner-plugin</artifactId>
						<version>${eclipse-jarsigner-version}</version>
						<executions>
							<execution>
								<id>sign</id>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					
					<!-- packing -->
					<plugin>
						<groupId>org.eclipse.tycho.extras</groupId>
						<artifactId>tycho-pack200b-plugin</artifactId>
						<version>${tycho-version}</version>
						<executions>
							<execution>
								<id>pack200-pack</id>
								<goals>
									<goal>pack</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					
					<!-- p2 metadata after pack -->
					<plugin>
						<groupId>org.eclipse.tycho</groupId>
						<artifactId>tycho-p2-plugin</artifactId>
						<version>${tycho-version}</version>
						<executions>
							<execution>
								<id>attach-p2-metadata</id>
								<phase>package</phase>
								<goals>
									<goal>p2-metadata</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<defaultP2Metadata>false</defaultP2Metadata>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>

Back to the top