1001743bea6053ea8d92b908d96a1ce132358ce4
[simantics/platform.git] / releng / org.simantics.sdk.build.p2.site / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" 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         <modelVersion>4.0.0</modelVersion>
5
6     <groupId>org.simantics</groupId>
7     <artifactId>org.simantics.sdk.build.p2.site</artifactId>
8     <packaging>pom</packaging>
9     <version>1.30.0</version>
10
11     <properties>
12         <itext.version.actual>2.1.7.b1</itext.version.actual>
13         <antlr.version>3.5.2</antlr.version>
14         <lucene.version>4.9.0</lucene.version>
15         <lucene.version.actual>4.9.0.b0003</lucene.version.actual>
16         <lucene.prefix>org.apache.lucene4</lucene.prefix>
17         <jaxen.version>1.1.6</jaxen.version>
18         <jdom.version>2.0.6</jdom.version>
19         <jdom.version.actual>2.0.6.b0001</jdom.version.actual>
20         <jackson.version>2.8.8</jackson.version>
21         <javax.version>3.1.0</javax.version>
22         <jersey.version>2.25.1</jersey.version>
23         <slf4j.version>1.7.25</slf4j.version>
24         <slf4j.version.actual>1.7.25.b001</slf4j.version.actual>
25         <grpc.version>1.14.0</grpc.version>
26         <grpc.version.actual>1.14.0.b007</grpc.version.actual>
27         <protobuf.version>3.5.1</protobuf.version>
28     </properties>
29
30     <repositories>
31         <!--
32         <repository>
33             <id>project-specific-deps</id>
34             <name>project-specific-deps</name>
35             <url>file:///${basedir}/repo</url>
36         </repository>c.version.actual
37         --> 
38     </repositories>
39
40     <build>
41         <plugins>
42             <plugin>
43                 <groupId>org.eclipse.tycho.extras</groupId>
44                 <artifactId>tycho-p2-extras-plugin</artifactId>
45                 <version>1.0.0</version>
46             </plugin>
47             <plugin>
48                 <groupId>org.reficio</groupId>
49                 <artifactId>p2-maven-plugin</artifactId>
50                 <version>1.2.0</version>
51                 <executions>
52                     <execution>
53                         <id>default-cli</id>
54                         <!-- QUICK-START EXAMPLE -->
55                         <!--
56                         This is the default quick-start configuration.
57
58                         Expected behavior:
59                           - specified dependencies will be fetched
60                           - transitive dependencies will be fetched (no default exclusions)
61                           - jars containing source source code will NOT be fetched
62                           - jars that are NOT OSGi bundles will be "bundled" using bnd tool,
63                             if you specify instructions for these jars they will be APPLIED
64                           - jars that are OSGi bundles will be simply included
65                             if you specify instructions for these jars they will be IGNORED (see <override> option)
66                           - p2 site will be generated
67
68                         How the instructions works:
69                           - instructions are applied only to the root artifact that you specify!
70                           - instructions are not applied to the TRANSITIVE dependencies!
71                           - transitive dependencies are never overridden (see <override> option)
72                           - transitive dependencies are bundled using the default instructions:
73                               <instructions>
74                                   <Import-Package>*;resolution:=optional</Import-Package>
75                                   <Export-Package>*</Export-Package>
76                               </instructions>
77                           - other instructions, such as, Bundle-SymbolicName, Bundle-Name, Bundle-Version, etc.
78                             are calculated according to the following rules:
79                             http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
80                           - if you specify any instructions they will be applied only if
81                             the jar is not already an OSGi bundle - otherwise you have to use the override
82                             option - please see the /examples/override/pom.xml example
83
84                         The following definition of an artifact:
85                             <artifact>
86                                 <id>commons-io:commons-io:2.1</id>
87                             </artifact>
88
89                         is an equivalent of the following definition:
90                             <artifact>
91                                 <id>commons-io:commons-io:2.1</id>
92                                 <transitive>true</transitive>
93                                 <source>false</source>
94                                 <override>false</override>
95                                 <instructions>
96                                     <Import-Package>*;resolution:=optional</Import-Package>
97                                     <Export-Package>*</Export-Package>
98                                 </instructions>
99                                 <excludes/>
100                             </artifact>
101
102                         To run the example please invoke: mvn p2:site
103                         -->
104                         <configuration>
105                             <artifacts>
106                                 <artifact>
107                                     <id>org.antlr:antlr-runtime:${antlr.version}</id>
108                                     <source>true</source>
109                                     <instructions>
110                                         <Bundle-SymbolicName>org.antlr.runtime</Bundle-SymbolicName>
111                                         <Bundle-Version>${antlr.version}</Bundle-Version>
112                                         <Export-Package>*;version="${antlr.version}"</Export-Package>
113                                     </instructions>                                    
114                                 </artifact>
115                                 <artifact>
116                                     <id>org.apache.lucene:lucene-core:${lucene.version}</id>
117                                     <source>true</source>
118                                     <instructions>
119                                         <Bundle-SymbolicName>${lucene.prefix}.core</Bundle-SymbolicName>
120                                         <Bundle-Version>${lucene.version.actual}</Bundle-Version>
121                                         <Export-Package>*;version="${lucene.version}"</Export-Package>
122                                     </instructions>
123                                 </artifact>
124                                 <artifact>
125                                     <id>org.apache.lucene:lucene-queries:${lucene.version}</id>
126                                     <source>true</source>
127                                     <instructions>
128                                         <Bundle-SymbolicName>${lucene.prefix}.queries</Bundle-SymbolicName>
129                                         <Bundle-Version>${lucene.version.actual}</Bundle-Version>
130                                         <Require-Bundle>${lucene.prefix}.core;bundle-version="${lucene.version}"</Require-Bundle>
131                                         <Export-Package>*;version="${lucene.version}"</Export-Package>
132                                         <Import-Package>!org.apache.lucene.*,*;resolution:=optional</Import-Package>
133                                     </instructions>
134                                 </artifact>
135                                 <artifact>
136                                     <id>org.apache.lucene:lucene-sandbox:${lucene.version}</id>
137                                     <source>true</source>
138                                     <instructions>
139                                         <Bundle-SymbolicName>${lucene.prefix}.sandbox</Bundle-SymbolicName>
140                                         <Bundle-Version>${lucene.version.actual}</Bundle-Version>
141                                         <Require-Bundle>${lucene.prefix}.core;bundle-version="${lucene.version}"</Require-Bundle>
142                                         <Export-Package>*;version="${lucene.version}"</Export-Package>
143                                         <Import-Package>!org.apache.lucene.*,*;resolution:=optional</Import-Package>
144                                     </instructions>
145                                 </artifact>
146                                 <artifact>
147                                     <id>org.apache.lucene:lucene-analyzers-common:${lucene.version}</id>
148                                     <source>true</source>
149                                     <instructions>
150                                         <Bundle-SymbolicName>${lucene.prefix}.analyzers-common</Bundle-SymbolicName>
151                                         <Bundle-Version>${lucene.version.actual}</Bundle-Version>
152                                         <Require-Bundle>${lucene.prefix}.core;bundle-version="${lucene.version}"</Require-Bundle>
153                                         <Export-Package>*;version="${lucene.version}"</Export-Package>
154                                         <Import-Package>!org.apache.lucene.*,*;resolution:=optional</Import-Package>
155                                     </instructions>
156                                 </artifact>
157                                 <artifact>
158                                     <id>org.apache.lucene:lucene-queryparser:${lucene.version}</id>
159                                     <source>true</source>
160                                     <instructions>
161                                         <Bundle-SymbolicName>${lucene.prefix}.queryparser</Bundle-SymbolicName>
162                                         <Bundle-Version>${lucene.version.actual}</Bundle-Version>
163                                         <Require-Bundle>${lucene.prefix}.core;bundle-version="${lucene.version}",${lucene.prefix}.queries;bundle-version="${lucene.version}",${lucene.prefix}.sandbox;bundle-version="${lucene.version}"</Require-Bundle>
164                                         <Export-Package>*;version="${lucene.version}"</Export-Package>
165                                         <Import-Package>!org.apache.lucene.*,*;resolution:=optional</Import-Package>
166                                     </instructions>
167                                 </artifact>
168                                 <artifact>
169                                     <id>jaxen:jaxen:${jaxen.version}</id>
170                                     <source>true</source>
171                                 </artifact>
172                                 <artifact>
173                                     <id>org.jdom:jdom2:${jdom.version}</id>
174                                     <source>true</source>
175                                     <instructions>
176                                         <Bundle-SymbolicName>org.jdom2</Bundle-SymbolicName>
177                                         <Bundle-Version>${jdom.version.actual}</Bundle-Version>
178                                         <Export-Package>*;version="${jdom.version}"</Export-Package>
179                                     </instructions>
180                                 </artifact>
181                                 <artifact>
182                                     <id>org.jfree:jfreechart:1.0.19</id>
183                                     <source>true</source>
184                                     <instructions>
185                                         <Bundle-SymbolicName>org.jfree.jchart</Bundle-SymbolicName>
186                                     </instructions>
187                                 </artifact>
188                                 <!--
189                                 <artifact>
190                                     <id>org.ow2.asm:asm:5.0.4</id>
191                                     <source>true</source>
192                                     <override>true</override>
193                                     <instructions>
194                                         <Bundle-SymbolicName>org.objectweb.asm5</Bundle-SymbolicName>
195                                     </instructions>
196                                 </artifact>
197                                 -->
198                                 <artifact>
199                                     <id>net.sf.supercsv:super-csv:2.4.0</id>
200                                     <source>true</source>
201                                     <override>true</override>
202                                     <instructions>
203                                         <Bundle-SymbolicName>org.supercsv</Bundle-SymbolicName>
204                                     </instructions>
205                                 </artifact>
206                                 <artifact>
207                                     <id>org.ini4j:ini4j:0.5.4</id>
208                                     <source>true</source>
209                                 </artifact>
210                                 <artifact>
211                                     <!-- Needed by Apache POI 3.15 -->
212                                     <id>commons-codec:commons-codec:1.10</id>
213                                     <source>true</source>
214                                 </artifact>
215                                 <artifact>
216                                     <id>commons-collections:commons-collections:3.2.2</id>
217                                     <source>true</source>
218                                 </artifact>
219                                 <artifact>
220                                     <!-- Needed by Apache POI 3.15 -->
221                                     <id>org.apache.commons:commons-collections4:4.1</id>
222                                     <source>true</source>
223                                 </artifact>
224                                 <artifact>
225                                     <id>org.apache.commons:commons-compress:1.12</id>
226                                     <source>true</source>
227                                 </artifact>
228                                 <artifact>
229                                     <id>commons-lang:commons-lang:2.6</id>
230                                     <source>true</source>
231                                 </artifact>
232                                 <artifact>
233                                     <!-- Needed by Apache POI 3.15 -->
234                                     <id>commons-logging:commons-logging:1.2</id>
235                                     <source>true</source>
236                                 </artifact>
237                                 <artifact>
238                                     <id>commons-io:commons-io:1.4</id>
239                                     <source>true</source>
240                                 </artifact>
241                                 <artifact>
242                                     <id>org.apache.commons:commons-math3:3.6.1</id>
243                                     <source>true</source>
244                                 </artifact>
245
246                                 <artifact>
247                                     <id>org.apache.pdfbox:pdfbox:2.0.3</id>
248                                     <source>true</source>
249                                 </artifact>
250                                 <artifact>
251                                     <id>org.apache.pdfbox:fontbox:2.0.3</id>
252                                     <source>true</source>
253                                 </artifact>
254                                 <artifact>
255                                     <id>org.apache.pdfbox:xmpbox:2.0.3</id>
256                                     <source>true</source>
257                                 </artifact>
258                                 <artifact>
259                                     <!-- Needed by Apache POI 3.15 -->
260                                     <id>org.apache.xmlbeans:xmlbeans:2.6.0</id>
261                                     <source>true</source>
262                                 </artifact>
263                                 <artifact>
264                                     <!-- Needed by Apache POI 3.15 -->
265                                     <id>com.github.virtuald:curvesapi:1.04</id>
266                                     <source>true</source>
267                                 </artifact>
268                                 <artifact>
269                                     <id>log4j:log4j:1.2.17</id>
270                                     <source>true</source>
271                                     <override>true</override>
272                                     <instructions>
273                                         <Bundle-SymbolicName>org.apache.log4j</Bundle-SymbolicName>
274                                     </instructions>
275                                 </artifact>
276                                 <artifact>
277                                     <id>net.sf.ucanaccess:ucanaccess:3.0.7</id>
278                                     <source>true</source>
279                                     <instructions>
280                                         <Bundle-SymbolicName>net.ucanaccess</Bundle-SymbolicName>
281                                     </instructions>
282                                 </artifact>
283                                 <artifact>
284                                     <id>it.unimi.dsi:fastutil:7.2.1</id>
285                                     <source>true</source>
286                                 </artifact>
287                                 <artifact>
288                                     <id>org.eclipse.collections:eclipse-collections-api:8.1.0</id>
289                                     <override>true</override>
290                                     <source>true</source>
291                                     <instructions>
292                                         <Export-Package>org.eclipse.collections.*</Export-Package>
293                                     </instructions>
294                                 </artifact>
295                                 <artifact>
296                                     <id>org.eclipse.collections:eclipse-collections:8.1.0</id>
297                                     <source>true</source>
298                                 </artifact>
299                                 <artifact>
300                                     <id>net.sf.trove4j:trove4j:3.0.3</id>
301                                     <source>true</source>
302                                     <instructions>
303                                         <Bundle-Name>GNU Trove 3</Bundle-Name>
304                                         <Bundle-SymbolicName>gnu.trove3</Bundle-SymbolicName>
305                                     </instructions>
306                                 </artifact>
307                                 <artifact>
308                                     <id>org.freemarker:freemarker:2.3.23</id>
309                                     <source>true</source>
310                                     <override>true</override>
311                                     <instructions>
312                                         <Bundle-SymbolicName>freemarker</Bundle-SymbolicName>
313                                     </instructions>
314                                 </artifact>
315                                 <artifact>
316                                     <id>com.lowagie:itext:2.1.7</id>
317                                     <source>true</source>
318                                     <instructions>
319                                         <Bundle-SymbolicName>com.lowagie.text</Bundle-SymbolicName>
320                                         <Bundle-Version>${itext.version.actual}</Bundle-Version>
321                                     </instructions>
322                                 </artifact>
323                                 <artifact>
324                                     <id>org.mozilla:rhino:1.7.7.1</id>
325                                     <source>true</source>
326                                 </artifact>
327                                 <!-- org.eclipse.epp.mpc.core.win32 plug-in requires 4.1.0 -->
328                                 <artifact>
329                                     <id>net.java.dev.jna:jna:4.1.0</id>
330                                     <source>true</source>
331                                 </artifact>
332                                  <!-- org.eclipse.epp.mpc.core.win32 plug-in requires 4.1.0 -->
333                                 <artifact>
334                                     <id>net.java.dev.jna:jna-platform:4.1.0</id>
335                                     <source>true</source>
336                                 </artifact>
337                                 <artifact>
338                                     <id>net.java.dev.jna:jna:4.3.0</id>
339                                     <source>true</source>
340                                 </artifact>
341                                 <artifact>
342                                     <id>net.java.dev.jna:jna-platform:4.3.0</id>
343                                     <source>true</source>
344                                 </artifact>
345                                 <artifact>
346                                     <id>javax.servlet:javax.servlet-api:${javax.version}</id>
347                                     <source>true</source>
348                                 </artifact>
349                                 <artifact>
350                                     <id>com.fasterxml.jackson.core:jackson-core:${jackson.version}</id>
351                                     <source>true</source>
352                                 </artifact>
353                                 <artifact>
354                                     <id>com.fasterxml.jackson.core:jackson-annotations:${jackson.version}</id>
355                                     <source>true</source>
356                                 </artifact>
357                                 <artifact>
358                                     <id>com.fasterxml.jackson.core:jackson-databind:${jackson.version}</id>
359                                     <source>true</source>
360                                     <excludes>
361                                         <exclude>com.fasterxml.jackson.*</exclude>
362                                     </excludes>
363                                 </artifact>
364                                 <artifact>
365                                     <id>com.fasterxml.jackson.dataformat:jackson-dataformat-csv:${jackson.version}</id>
366                                     <source>true</source>
367                                     <excludes>
368                                         <exclude>com.fasterxml.jackson.*</exclude>
369                                     </excludes>
370                                 </artifact>
371                                 <artifact>
372                                     <id>com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jackson.version}</id>
373                                     <source>true</source>
374                                     <excludes>
375                                         <exclude>com.fasterxml.jackson.*</exclude>
376                                     </excludes>
377                                 </artifact>
378                                 <artifact>
379                                     <id>com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jackson.version}</id>
380                                     <source>true</source>
381                                     <excludes>
382                                         <exclude>com.fasterxml.jackson.*</exclude>
383                                     </excludes>
384                                 </artifact>
385                                 <artifact>
386                                     <id>com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:${jackson.version}</id>
387                                     <source>true</source>
388                                     <excludes>
389                                         <exclude>com.fasterxml.jackson.*</exclude>
390                                     </excludes>
391                                 </artifact>
392                                 <artifact>
393                                     <id>com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:${jackson.version}</id>
394                                     <source>true</source>
395                                     <excludes>
396                                         <exclude>com.fasterxml.jackson.*</exclude>
397                                     </excludes>
398                                 </artifact>
399                                 <artifact>
400                                     <id>com.fasterxml.jackson.module:jackson-module-jaxb-annotations:${jackson.version}</id>
401                                     <source>true</source>
402                                     <excludes>
403                                         <exclude>com.fasterxml.jackson.*</exclude>
404                                     </excludes>
405                                 </artifact>
406                                 <artifact>
407                                     <id>org.slf4j:slf4j-api:${slf4j.version}</id>
408                                     <source>true</source>
409                                     <override>true</override>
410                                     <instructions>
411                                         <Bundle-Name>SLF4J API Module</Bundle-Name>
412                                         <Bundle-Version>${slf4j.version.actual}</Bundle-Version>
413                                         <Bundle-SymbolicName>org.slf4j.api</Bundle-SymbolicName>
414                                         <Export-Package>*;version=${slf4j.version}</Export-Package>
415                                     </instructions>
416                                 </artifact>
417                                 <artifact>
418                                     <id>ch.qos.logback:logback-classic:1.2.3</id>
419                                     <source>true</source>
420                                     <override>true</override>
421                                 </artifact>
422                                 <artifact>
423                                     <id>com.koloboke:koloboke-compile:0.5.1</id>
424                                     <source>true</source>
425                                 </artifact>
426                                 <artifact>
427                                     <id>com.koloboke:koloboke-impl-common-jdk8:1.0.0</id>
428                                     <source>true</source>
429                                 </artifact>
430                                 <artifact>
431                                     <id>com.esotericsoftware:kryo:4.0.0</id>
432                                     <source>true</source>
433                                 </artifact>
434                                  <artifact>
435                                      <id>org.apache.aries.spifly:org.apache.aries.spifly.dynamic.bundle:1.0.14</id>
436                                      <source>true</source>
437                                  </artifact>
438                                 <artifact>
439                                     <id>org.glassfish.jersey.core:jersey-server:${jersey.version}</id>
440                                     <source>true</source>
441                                 </artifact>
442                                 <artifact>
443                                     <id>org.glassfish.jersey.core:jersey-client:${jersey.version}</id>
444                                     <source>true</source>
445                                 </artifact>
446                                 <artifact>
447                                     <id>org.glassfish.jersey.media:jersey-media-multipart:${jersey.version}</id>
448                                     <source>true</source>
449                                 </artifact>
450                                 <artifact>
451                                     <id>org.glassfish.jersey.media:jersey-media-json-jackson:${jersey.version}</id>
452                                     <source>true</source>
453                                     <excludes>
454                                         <exclude>com.fasterxml.jackson.*</exclude>
455                                     </excludes>
456                                 </artifact>
457                                 <artifact>
458                                     <id>org.glassfish.jersey.containers:jersey-container-servlet-core:${jersey.version}</id>
459                                     <source>true</source>
460                                 </artifact>
461                                 <artifact>
462                                     <id>org.jboss.windup.decompiler:decompiler-procyon:4.0.0.Beta1</id>
463                                     <source>true</source>
464                                 </artifact>
465                                 <artifact>
466                                     <id>org.jsoup:jsoup:1.8.3</id>
467                                     <source>true</source>
468                                 </artifact>
469                                 <artifact>
470                                     <id>org.eclipse.jetty:jetty-servlets:9.4.5.v20170502</id>
471                                     <source>true</source>
472                                 </artifact>
473                                 <artifact>
474                                     <id>io.grpc:io.grpc:${grpc.version}</id>
475                                     <source>true</source>
476                                 </artifact>
477                                 <artifact>
478                                     <id>io.grpc:grpc-netty:${grpc.version}</id>
479                                     <source>true</source>
480                                     <override>true</override>
481                                     <instructions>
482                                         <Require-Bundle>
483                                              io.netty.buffer;bundle-version="4.1.27",
484                                              io.netty.codec;bundle-version="4.1.27",
485                                              io.netty.codec-http;bundle-version="4.1.27",
486                                              io.netty.codec-http2;bundle-version="4.1.27",
487                                              io.netty.codec-socks;bundle-version="4.1.27",
488                                              io.netty.common;bundle-version="4.1.27",
489                                              io.netty.handler;bundle-version="4.1.27",
490                                              io.netty.handler-proxy;bundle-version="4.1.27",
491                                              io.netty.resolver;bundle-version="4.1.27",
492                                              io.netty.transport;bundle-version="4.1.27",
493                                              io.grpc
494                                         </Require-Bundle>
495                                         <Import-Package>!io.netty.*,*;resolution:=optional</Import-Package>
496                                         <Require-Capability>
497                                             osgi.extender;
498                                                 filter:="(osgi.extender=osgi.serviceloader.registrar)"
499                                         </Require-Capability>
500                                         <Provide-Capability>
501                                             osgi.serviceloader;
502                                                 osgi.serviceloader=io.grpc.ServerProvider,
503                                             osgi.serviceloader;
504                                                 osgi.serviceloader=io.grpc.ManagedChannelProvider
505                                         </Provide-Capability>
506                                         <Bundle-Version>${grpc.version.actual}</Bundle-Version>
507                                     </instructions>
508                                 </artifact>
509                                 <artifact>
510                                     <id>com.google.protobuf:protobuf-java:${protobuf.version}</id>
511                                     <source>true</source>
512                                     <override>true</override>
513                                     <instructions>
514                                         <Import-Package>!sun.misc.*,*;resolution:=optional</Import-Package>
515                                     </instructions>
516                                 </artifact>
517                                 <artifact>
518                                     <id>com.impossibl.pgjdbc-ng:pgjdbc-ng:0.7.1</id>
519                                     <source>true</source>
520                                     <transitive>false</transitive>
521                                 </artifact>
522                             </artifacts>
523                         </configuration>
524                     </execution>
525                 </executions>
526             </plugin>
527
528             <plugin>
529                 <groupId>org.mortbay.jetty</groupId>
530                 <artifactId>jetty-maven-plugin</artifactId>
531                 <version>8.1.5.v20120716</version>
532                 <configuration>
533                     <scanIntervalSeconds>10</scanIntervalSeconds>
534                     <webAppSourceDirectory>${basedir}/target/repository/</webAppSourceDirectory>
535                     <webApp>
536                         <contextPath>/site</contextPath>
537                     </webApp>
538                 </configuration>
539             </plugin>
540         </plugins>
541     </build>
542
543 </project>