]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.parent/pom.xml
Add support for signing published bundles
[simantics/fmil.git] / org.simantics.fmil.parent / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4         <groupId>org.simantics.fmi</groupId>
5         <artifactId>org.simantics.fmil.parent</artifactId>
6         <version>0.0.1-SNAPSHOT</version>
7         <packaging>pom</packaging>
8
9         <!-- common settings for all modules -->
10         <properties>
11                 <branch-spec>master</branch-spec>
12                 <simantics-download-site>http://www.simantics.org/download</simantics-download-site>
13                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14                 <tycho-version>1.0.0</tycho-version>
15         </properties>
16
17         <repositories>
18                 <!-- configure p2 repository to resolve against -->
19                 <repository>
20                         <id>simantics-sdk</id>
21                         <layout>p2</layout>
22                         <url>${simantics-download-site}/${branch-spec}/sdk</url>
23                 </repository>
24         </repositories>
25
26         <build>
27                 <plugins>
28                         <plugin>
29                                 <groupId>org.eclipse.tycho</groupId>
30                                 <artifactId>tycho-compiler-plugin</artifactId>
31                                 <version>${tycho-version}</version>
32                                 <configuration>
33                                         <compilerArgument>-err:-forbidden</compilerArgument>
34                                 </configuration>
35                         </plugin>
36                         <plugin>
37                                 <groupId>org.eclipse.tycho</groupId>
38                                 <artifactId>tycho-maven-plugin</artifactId>
39                                 <version>${tycho-version}</version>
40                                 <extensions>true</extensions>
41                         </plugin>
42                         <plugin>
43                                 <groupId>org.eclipse.tycho</groupId>
44                                 <artifactId>tycho-versions-plugin</artifactId>
45                                 <version>${tycho-version}</version>
46                         </plugin>
47                         <plugin>
48                                 <groupId>org.eclipse.tycho</groupId>
49                                 <artifactId>target-platform-configuration</artifactId>
50                                 <version>${tycho-version}</version>
51                                 <configuration>
52                                         <ignoreTychoRepositories>true</ignoreTychoRepositories>
53                                         <resolver>p2</resolver>
54                                         <environments>
55                                                 <environment>
56                                                         <os>linux</os>
57                                                         <ws>gtk</ws>
58                                                         <arch>x86_64</arch>
59                                                 </environment>
60                                                 <environment>
61                                                         <os>win32</os>
62                                                         <ws>win32</ws>
63                                                         <arch>x86</arch>
64                                                 </environment>
65                                                 <environment>
66                                                         <os>win32</os>
67                                                         <ws>win32</ws>
68                                                         <arch>x86_64</arch>
69                                                 </environment>
70                                         </environments>
71                                 </configuration>
72                         </plugin>
73                 </plugins>
74         </build>
75
76         <profiles>
77                 <profile>
78                         <id>sign</id>
79                         <activation>
80                                 <property>
81                                         <name>sign</name>
82                                         <value>true</value>
83                                 </property>
84                         </activation>
85                         <build>
86                                 <plugins>
87                                         <plugin>
88                                                 <groupId>org.codehaus.mojo</groupId>
89                                                 <artifactId>properties-maven-plugin</artifactId>
90                                                 <version>1.0.0</version>
91                                                 <executions>
92                                                         <execution>
93                                                                 <phase>initialize</phase>
94                                                                 <goals>
95                                                                         <goal>read-project-properties</goal>
96                                                                 </goals>
97                                                         </execution>
98                                                 </executions>
99                                                 <configuration>
100                                                         <files>
101                                                                 <file>${sign.properties}</file>
102                                                         </files>
103                                                 </configuration>
104                                         </plugin>
105                                         <plugin>
106                                                 <groupId>org.apache.maven.plugins</groupId>
107                                                 <artifactId>maven-jarsigner-plugin</artifactId>
108                                                 <version>3.0.0</version>
109                                                 <executions>
110                                                         <execution>
111                                                                 <id>sign</id>
112                                                                 <goals>
113                                                                         <goal>sign</goal>
114                                                                         <goal>verify</goal>
115                                                                 </goals>
116                                                         </execution>
117                                                 </executions>
118                                         </plugin>
119                                 </plugins>
120                         </build>
121                 </profile>
122         </profiles>
123
124         <modules>
125                 <module>../org.simantics.fmil.core</module>
126                 <module>../org.simantics.fmil.feature</module>
127                 <module>../org.simantics.fmil.linux64</module>
128                 <module>../org.simantics.fmil.win32</module>
129                 <module>../org.simantics.fmil.win64</module>
130                 <module>../org.simantics.fmil.repository</module>
131         </modules>
132 </project>