]> gerrit.simantics Code Review - simantics/platform.git/blob - releng/org.simantics.sdk.build.p2.site/pom.xml
org.apache.lucene4 bundles now define import-packages with version 4.9.0
[simantics/platform.git] / releng / org.simantics.sdk.build.p2.site / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001 XMLSchema-instance"\r
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
4         <modelVersion>4.0.0</modelVersion>\r
5 \r
6     <groupId>org.simantics</groupId>\r
7     <artifactId>org.simantics.sdk.build.p2.site</artifactId>\r
8     <packaging>pom</packaging>\r
9     <version>1.25.0</version>\r
10 \r
11     <properties>\r
12         <lucene.version>4.9.0</lucene.version>\r
13         <lucene.prefix>org.apache.lucene4</lucene.prefix>\r
14     </properties>\r
15 \r
16 \r
17     <repositories>\r
18         <!--\r
19         <repository>\r
20             <id>project-specific-deps</id>\r
21             <name>project-specific-deps</name>\r
22             <url>file:///${basedir}/repo</url>\r
23         </repository>\r
24         -->\r
25     </repositories>\r
26 \r
27     <build>\r
28         <plugins>\r
29             <plugin>\r
30                 <groupId>org.eclipse.tycho.extras</groupId>\r
31                 <artifactId>tycho-p2-extras-plugin</artifactId>\r
32                 <version>0.25.0</version>\r
33             </plugin>\r
34             <plugin>\r
35                 <groupId>org.reficio</groupId>\r
36                 <artifactId>p2-maven-plugin</artifactId>\r
37                 <version>1.2.0-SNAPSHOT</version>\r
38                 <executions>\r
39                     <execution>\r
40                         <id>default-cli</id>\r
41                         <!-- QUICK-START EXAMPLE -->\r
42                         <!--\r
43                         This is the default quick-start configuration.\r
44 \r
45                         Expected behavior:\r
46                           - specified dependencies will be fetched\r
47                           - transitive dependencies will be fetched (no default exclusions)\r
48                           - jars containing source source code will NOT be fetched\r
49                           - jars that are NOT OSGi bundles will be "bundled" using bnd tool,\r
50                             if you specify instructions for these jars they will be APPLIED\r
51                           - jars that are OSGi bundles will be simply included\r
52                             if you specify instructions for these jars they will be IGNORED (see <override> option)\r
53                           - p2 site will be generated\r
54 \r
55                         How the instructions works:\r
56                           - instructions are applied only to the root artifact that you specify!\r
57                           - instructions are not applied to the TRANSITIVE dependencies!\r
58                           - transitive dependencies are never overridden (see <override> option)\r
59                           - transitive dependencies are bundled using the default instructions:\r
60                               <instructions>\r
61                                   <Import-Package>*;resolution:=optional</Import-Package>\r
62                                   <Export-Package>*</Export-Package>\r
63                               </instructions>\r
64                           - other instructions, such as, Bundle-SymbolicName, Bundle-Name, Bundle-Version, etc.\r
65                             are calculated according to the following rules:\r
66                             http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html\r
67                           - if you specify any instructions they will be applied only if\r
68                             the jar is not already an OSGi bundle - otherwise you have to use the override\r
69                             option - please see the /examples/override/pom.xml example\r
70 \r
71                         The following definition of an artifact:\r
72                             <artifact>\r
73                                 <id>commons-io:commons-io:2.1</id>\r
74                             </artifact>\r
75 \r
76                         is an equivalent of the following definition:\r
77                             <artifact>\r
78                                 <id>commons-io:commons-io:2.1</id>\r
79                                 <transitive>true</transitive>\r
80                                 <source>false</source>\r
81                                 <override>false</override>\r
82                                 <instructions>\r
83                                     <Import-Package>*;resolution:=optional</Import-Package>\r
84                                     <Export-Package>*</Export-Package>\r
85                                 </instructions>\r
86                                 <excludes/>\r
87                             </artifact>\r
88 \r
89                         To run the example please invoke: mvn p2:site\r
90                         -->\r
91                         <configuration>\r
92                             <artifacts>\r
93                                 <artifact>\r
94                                     <id>org.antlr:antlr-runtime:3.5.2</id>\r
95                                     <source>true</source>\r
96                                 </artifact>\r
97                                 <artifact>\r
98                                     <id>org.apache.poi:poi:3.14</id>\r
99                                     <source>true</source>\r
100                                 </artifact>\r
101                                 <artifact>\r
102                                     <id>org.apache.poi:poi-ooxml:3.14</id>\r
103                                     <source>true</source>\r
104                                 </artifact>\r
105                                 <artifact>\r
106                                     <id>org.apache.lucene:lucene-core:${lucene.version}</id>\r
107                                     <source>true</source>\r
108                                     <instructions>\r
109                                         <Bundle-SymbolicName>${lucene.prefix}.core</Bundle-SymbolicName>\r
110                                     </instructions>\r
111                                 </artifact>\r
112                                 <artifact>\r
113                                     <id>org.apache.lucene:lucene-queries:${lucene.version}</id>\r
114                                     <source>true</source>\r
115                                     <instructions>\r
116                                         <Bundle-SymbolicName>${lucene.prefix}.queries</Bundle-SymbolicName>\r
117                                         <Import-Package>org.apache.lucene.*;version="${lucene.version}";resolution:=optional,*;resolution:=optional</Import-Package>\r
118                                     </instructions>\r
119                                 </artifact>\r
120                                 <artifact>\r
121                                     <id>org.apache.lucene:lucene-sandbox:${lucene.version}</id>\r
122                                     <source>true</source>\r
123                                     <instructions>\r
124                                         <Bundle-SymbolicName>${lucene.prefix}.sandbox</Bundle-SymbolicName>\r
125                                         <Import-Package>org.apache.lucene.*;version="${lucene.version}";resolution:=optional,*;resolution:=optional</Import-Package>\r
126                                     </instructions>\r
127                                 </artifact>\r
128                                 <artifact>\r
129                                     <id>org.apache.lucene:lucene-queryparser:${lucene.version}</id>\r
130                                     <source>true</source>\r
131                                     <instructions>\r
132                                         <Bundle-SymbolicName>${lucene.prefix}.queryparser</Bundle-SymbolicName>\r
133                                         <Import-Package>org.apache.lucene.*;version="${lucene.version}";resolution:=optional,*;resolution:=optional</Import-Package>\r
134                                     </instructions>\r
135                                 </artifact>\r
136                                 <artifact>\r
137                                     <id>org.apache.lucene:lucene-analyzers-common:${lucene.version}</id>\r
138                                     <source>true</source>\r
139                                     <instructions>\r
140                                         <Bundle-SymbolicName>${lucene.prefix}.analyzers-common</Bundle-SymbolicName>\r
141                                         <Import-Package>org.apache.lucene.*;version="${lucene.version}";resolution:=optional,*;resolution:=optional</Import-Package>\r
142                                     </instructions>\r
143                                 </artifact>\r
144                                 <artifact>\r
145                                     <id>org.jdom:jdom2:2.0.6</id>\r
146                                     <source>true</source>\r
147                                     <instructions>\r
148                                         <Bundle-SymbolicName>org.jdom2</Bundle-SymbolicName>\r
149                                     </instructions>\r
150                                 </artifact>\r
151                                 <artifact>\r
152                                     <id>org.jfree:jfreechart:1.0.19</id>\r
153                                     <source>true</source>\r
154                                     <instructions>\r
155                                         <Bundle-SymbolicName>org.jfree.jchart</Bundle-SymbolicName>\r
156                                     </instructions>\r
157                                 </artifact>\r
158                                 <!--\r
159                                 <artifact>\r
160                                     <id>org.ow2.asm:asm:5.0.4</id>\r
161                                     <source>true</source>\r
162                                     <override>true</override>\r
163                                     <instructions>\r
164                                         <Bundle-SymbolicName>org.objectweb.asm5</Bundle-SymbolicName>\r
165                                     </instructions>\r
166                                 </artifact>\r
167                                 -->\r
168                                 <artifact>\r
169                                     <id>net.sf.supercsv:super-csv:2.4.0</id>\r
170                                     <source>true</source>\r
171                                     <override>true</override>\r
172                                     <instructions>\r
173                                         <Bundle-SymbolicName>org.supercsv</Bundle-SymbolicName>\r
174                                     </instructions>\r
175                                 </artifact>\r
176                                 <artifact>\r
177                                     <id>org.ini4j:ini4j:0.5.4</id>\r
178                                     <source>true</source>\r
179                                 </artifact>\r
180                                 <artifact>\r
181                                     <id>commons-collections:commons-collections:3.2.2</id>\r
182                                     <source>true</source>\r
183                                 </artifact>\r
184                                 <artifact>\r
185                                     <id>org.apache.commons:commons-compress:1.12</id>\r
186                                     <source>true</source>\r
187                                 </artifact>\r
188                                 <artifact>\r
189                                     <id>commons-lang:commons-lang:2.6</id>\r
190                                     <source>true</source>\r
191                                 </artifact>\r
192                                 <artifact>\r
193                                     <id>commons-io:commons-io:1.4</id>\r
194                                     <source>true</source>\r
195                                 </artifact>\r
196                                 <artifact>\r
197                                     <id>org.apache.pdfbox:pdfbox:2.0.2</id>\r
198                                     <source>true</source>\r
199                                 </artifact>\r
200                                 <artifact>\r
201                                     <id>org.apache.pdfbox:fontbox:2.0.2</id>\r
202                                     <source>true</source>\r
203                                 </artifact>\r
204                                 <artifact>\r
205                                     <id>org.apache.pdfbox:xmpbox:2.0.2</id>\r
206                                     <source>true</source>\r
207                                 </artifact>\r
208                                 <artifact>\r
209                                     <id>log4j:log4j:1.2.17</id>\r
210                                     <source>true</source>\r
211                                     <override>true</override>\r
212                                     <instructions>\r
213                                         <Bundle-SymbolicName>org.apache.log4j</Bundle-SymbolicName>\r
214                                     </instructions>\r
215                                 </artifact>\r
216                                 <artifact>\r
217                                     <id>net.sf.ucanaccess:ucanaccess:3.0.6</id>\r
218                                     <source>true</source>\r
219                                     <instructions>\r
220                                         <Bundle-SymbolicName>net.ucanaccess</Bundle-SymbolicName>\r
221                                     </instructions>\r
222                                 </artifact>\r
223                                 <artifact>\r
224                                     <id>it.unimi.dsi:fastutil:7.0.12</id>\r
225                                     <source>true</source>\r
226                                 </artifact>\r
227                                 <artifact>\r
228                                     <id>org.eclipse.collections:eclipse-collections-api:7.1.0</id>\r
229                                     <source>true</source>\r
230                                 </artifact>\r
231                                 <artifact>\r
232                                     <id>org.eclipse.collections:eclipse-collections:7.1.0</id>\r
233                                     <source>true</source>\r
234                                 </artifact>\r
235                                 <artifact>\r
236                                     <id>net.sf.trove4j:trove4j:2.1.0</id>\r
237                                     <source>true</source>\r
238                                     <instructions>\r
239                                         <Bundle-Name>GNU Trove 2</Bundle-Name>\r
240                                         <Bundle-SymbolicName>gnu.trove2</Bundle-SymbolicName>\r
241                                     </instructions>\r
242                                 </artifact>\r
243                                 <artifact>\r
244                                     <id>net.sf.trove4j:trove4j:3.0.3</id>\r
245                                     <source>true</source>\r
246                                     <instructions>\r
247                                         <Bundle-Name>GNU Trove 3</Bundle-Name>\r
248                                         <Bundle-SymbolicName>gnu.trove3</Bundle-SymbolicName>\r
249                                     </instructions>\r
250                                 </artifact>\r
251                                 <artifact>\r
252                                     <id>org.freemarker:freemarker:2.3.23</id>\r
253                                     <source>true</source>\r
254                                     <override>true</override>\r
255                                     <instructions>\r
256                                         <Bundle-SymbolicName>freemarker</Bundle-SymbolicName>\r
257                                     </instructions>\r
258                                 </artifact>\r
259                                 <artifact>\r
260                                     <id>com.lowagie:itext:2.1.7</id>\r
261                                     <source>true</source>\r
262                                     <instructions>\r
263                                         <Bundle-SymbolicName>com.lowagie.text</Bundle-SymbolicName>\r
264                                         <Bundle-Version>2.1.7.b1</Bundle-Version>\r
265                                     </instructions>\r
266                                 </artifact>\r
267                                 <artifact>\r
268                                     <id>javax.vecmath:vecmath:1.5.2</id>\r
269                                     <transitive>false</transitive>\r
270                                     <override>true</override>\r
271                                     <instructions>\r
272                                         <Export-Package>javax.vecmath</Export-Package>\r
273                                     </instructions>\r
274                                 </artifact>\r
275                                 <artifact>\r
276                                     <id>org.mozilla:rhino:1.7.7.1</id>\r
277                                     <source>true</source>\r
278                                 </artifact>\r
279                                 <artifact>\r
280                                     <id>net.java.dev.jna:jna:4.2.2</id>\r
281                                     <source>true</source>\r
282                                 </artifact>\r
283                                 <artifact>\r
284                                     <id>net.java.dev.jna:jna-platform:4.2.2</id>\r
285                                     <source>true</source>\r
286                                 </artifact>\r
287                             </artifacts>\r
288                         </configuration>\r
289                     </execution>\r
290                 </executions>\r
291             </plugin>\r
292 \r
293             <plugin>\r
294                 <groupId>org.mortbay.jetty</groupId>\r
295                 <artifactId>jetty-maven-plugin</artifactId>\r
296                 <version>8.1.5.v20120716</version>\r
297                 <configuration>\r
298                     <scanIntervalSeconds>10</scanIntervalSeconds>\r
299                     <webAppSourceDirectory>${basedir}/target/repository/</webAppSourceDirectory>\r
300                     <webApp>\r
301                         <contextPath>/site</contextPath>\r
302                     </webApp>\r
303                 </configuration>\r
304             </plugin>\r
305         </plugins>\r
306     </build>\r
307 \r
308     <pluginRepositories>\r
309         <pluginRepository>\r
310             <id>reficio</id>\r
311             <url>http://repo.reficio.org/maven/</url>\r
312         </pluginRepository>\r
313     </pluginRepositories>\r
314 \r
315 </project>\r