]> gerrit.simantics Code Review - simantics/platform.git/blob - releng/org.simantics.sdk.build.p2.site/pom.xml
Tycho compilation changes for SVN version also.
[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                                     </instructions>\r
118                                 </artifact>\r
119                                 <artifact>\r
120                                     <id>org.apache.lucene:lucene-sandbox:${lucene.version}</id>\r
121                                     <source>true</source>\r
122                                     <instructions>\r
123                                         <Bundle-SymbolicName>${lucene.prefix}.sandbox</Bundle-SymbolicName>\r
124                                     </instructions>\r
125                                 </artifact>\r
126                                 <artifact>\r
127                                     <id>org.apache.lucene:lucene-queryparser:${lucene.version}</id>\r
128                                     <source>true</source>\r
129                                     <instructions>\r
130                                         <Bundle-SymbolicName>${lucene.prefix}.queryparser</Bundle-SymbolicName>\r
131                                     </instructions>\r
132                                 </artifact>\r
133                                 <artifact>\r
134                                     <id>org.apache.lucene:lucene-analyzers-common:${lucene.version}</id>\r
135                                     <source>true</source>\r
136                                     <instructions>\r
137                                         <Bundle-SymbolicName>${lucene.prefix}.analyzers-common</Bundle-SymbolicName>\r
138                                     </instructions>\r
139                                 </artifact>\r
140                                 <artifact>\r
141                                     <id>org.jdom:jdom2:2.0.6</id>\r
142                                     <source>true</source>\r
143                                     <instructions>\r
144                                         <Bundle-SymbolicName>org.jdom2</Bundle-SymbolicName>\r
145                                     </instructions>\r
146                                 </artifact>\r
147                                 <artifact>\r
148                                     <id>org.jfree:jfreechart:1.0.19</id>\r
149                                     <source>true</source>\r
150                                     <instructions>\r
151                                         <Bundle-SymbolicName>org.jfree.jchart</Bundle-SymbolicName>\r
152                                     </instructions>\r
153                                 </artifact>\r
154                                 <!--\r
155                                 <artifact>\r
156                                     <id>org.ow2.asm:asm:5.0.4</id>\r
157                                     <source>true</source>\r
158                                     <override>true</override>\r
159                                     <instructions>\r
160                                         <Bundle-SymbolicName>org.objectweb.asm5</Bundle-SymbolicName>\r
161                                     </instructions>\r
162                                 </artifact>\r
163                                 -->\r
164                                 <artifact>\r
165                                     <id>net.sf.supercsv:super-csv:2.4.0</id>\r
166                                     <source>true</source>\r
167                                     <override>true</override>\r
168                                     <instructions>\r
169                                         <Bundle-SymbolicName>org.supercsv</Bundle-SymbolicName>\r
170                                     </instructions>\r
171                                 </artifact>\r
172                                 <artifact>\r
173                                     <id>org.ini4j:ini4j:0.5.4</id>\r
174                                     <source>true</source>\r
175                                 </artifact>\r
176                                 <artifact>\r
177                                     <id>commons-collections:commons-collections:3.2.2</id>\r
178                                     <source>true</source>\r
179                                 </artifact>\r
180                                 <artifact>\r
181                                     <id>org.apache.commons:commons-compress:1.12</id>\r
182                                     <source>true</source>\r
183                                 </artifact>\r
184                                 <artifact>\r
185                                     <id>commons-lang:commons-lang:2.6</id>\r
186                                     <source>true</source>\r
187                                 </artifact>\r
188                                 <artifact>\r
189                                     <id>commons-io:commons-io:1.4</id>\r
190                                     <source>true</source>\r
191                                 </artifact>\r
192                                 <artifact>\r
193                                     <id>org.apache.pdfbox:pdfbox:2.0.2</id>\r
194                                     <source>true</source>\r
195                                 </artifact>\r
196                                 <artifact>\r
197                                     <id>org.apache.pdfbox:fontbox:2.0.2</id>\r
198                                     <source>true</source>\r
199                                 </artifact>\r
200                                 <artifact>\r
201                                     <id>log4j:log4j:1.2.17</id>\r
202                                     <source>true</source>\r
203                                     <override>true</override>\r
204                                     <instructions>\r
205                                         <Bundle-SymbolicName>org.apache.log4j</Bundle-SymbolicName>\r
206                                     </instructions>\r
207                                 </artifact>\r
208                                 <artifact>\r
209                                     <id>net.sf.ucanaccess:ucanaccess:3.0.6</id>\r
210                                     <source>true</source>\r
211                                     <instructions>\r
212                                         <Bundle-SymbolicName>net.ucanaccess</Bundle-SymbolicName>\r
213                                     </instructions>\r
214                                 </artifact>\r
215                                 <artifact>\r
216                                     <id>it.unimi.dsi:fastutil:7.0.12</id>\r
217                                     <source>true</source>\r
218                                 </artifact>\r
219                                 <artifact>\r
220                                     <id>org.eclipse.collections:eclipse-collections-api:7.1.0</id>\r
221                                     <source>true</source>\r
222                                 </artifact>\r
223                                 <artifact>\r
224                                     <id>org.eclipse.collections:eclipse-collections:7.1.0</id>\r
225                                     <source>true</source>\r
226                                 </artifact>\r
227                                 <artifact>\r
228                                     <id>net.sf.trove4j:trove4j:2.1.0</id>\r
229                                     <source>true</source>\r
230                                     <instructions>\r
231                                         <Bundle-Name>GNU Trove 2</Bundle-Name>\r
232                                         <Bundle-SymbolicName>gnu.trove2</Bundle-SymbolicName>\r
233                                     </instructions>\r
234                                 </artifact>\r
235                                 <artifact>\r
236                                     <id>net.sf.trove4j:trove4j:3.0.3</id>\r
237                                     <source>true</source>\r
238                                     <instructions>\r
239                                         <Bundle-Name>GNU Trove 3</Bundle-Name>\r
240                                         <Bundle-SymbolicName>gnu.trove3</Bundle-SymbolicName>\r
241                                     </instructions>\r
242                                 </artifact>\r
243                                 <artifact>\r
244                                     <id>org.freemarker:freemarker:2.3.23</id>\r
245                                     <source>true</source>\r
246                                     <override>true</override>\r
247                                     <instructions>\r
248                                         <Bundle-SymbolicName>freemarker</Bundle-SymbolicName>\r
249                                     </instructions>\r
250                                 </artifact>\r
251                                 <artifact>\r
252                                     <id>com.lowagie:itext:2.1.7</id>\r
253                                     <source>true</source>\r
254                                     <instructions>\r
255                                         <Bundle-SymbolicName>com.lowagie.text</Bundle-SymbolicName>\r
256                                     </instructions>\r
257                                 </artifact>\r
258                                 <artifact>\r
259                                     <id>javax.vecmath:vecmath:1.5.2</id>\r
260                                     <transitive>false</transitive>\r
261                                     <override>true</override>\r
262                                     <instructions>\r
263                                         <Export-Package>javax.vecmath</Export-Package>\r
264                                     </instructions>\r
265                                 </artifact>\r
266                                 <artifact>\r
267                                     <id>org.mozilla:rhino:1.7.7.1</id>\r
268                                     <source>true</source>\r
269                                 </artifact>\r
270                             </artifacts>\r
271                         </configuration>\r
272                     </execution>\r
273                 </executions>\r
274             </plugin>\r
275 \r
276             <plugin>\r
277                 <groupId>org.mortbay.jetty</groupId>\r
278                 <artifactId>jetty-maven-plugin</artifactId>\r
279                 <version>8.1.5.v20120716</version>\r
280                 <configuration>\r
281                     <scanIntervalSeconds>10</scanIntervalSeconds>\r
282                     <webAppSourceDirectory>${basedir}/target/repository/</webAppSourceDirectory>\r
283                     <webApp>\r
284                         <contextPath>/site</contextPath>\r
285                     </webApp>\r
286                 </configuration>\r
287             </plugin>\r
288 \r
289         </plugins>\r
290     </build>\r
291 \r
292     <pluginRepositories>\r
293         <pluginRepository>\r
294             <id>reficio</id>\r
295             <url>http://repo.reficio.org/maven/</url>\r
296         </pluginRepository>\r
297     </pluginRepositories>\r
298 \r
299 </project>\r