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