pom.xml 44.1 KB
Newer Older
M
Mathieu Bastian 已提交
1 2 3 4
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
5 6
    
    <!-- Parent POM -->
M
Mathieu Bastian 已提交
7 8 9
    <parent>
        <groupId>org.gephi</groupId>
        <artifactId>gephi-parent</artifactId>
10
        <version>0.9-SNAPSHOT</version>
11
        <relativePath>../..</relativePath>
M
Mathieu Bastian 已提交
12 13
    </parent>

M
Mathieu Bastian 已提交
14
    <artifactId>gephi</artifactId>
M
Mathieu Bastian 已提交
15 16 17
    <packaging>nbm-application</packaging>
    <name>gephi-app</name>

18
    <!-- Dependencies -->
M
Mathieu Bastian 已提交
19 20 21 22 23
    <dependencies>
        <dependency>
            <groupId>org.netbeans.cluster</groupId>
            <artifactId>platform</artifactId>
            <type>pom</type>
M
Mathieu Bastian 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36
            <exclusions>
                <exclusion>
                    <artifactId>org-jdesktop-layout</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-api-search</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-api-visual</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
37
                <exclusion>
M
Mathieu Bastian 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
                    <artifactId>org-netbeans-core-execution</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-core-netigso</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-core-osgi</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-core-output2</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-libs-osgi</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-libs-felix</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-libs-jsr223</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-libs-testng</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-core-kit</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-netbinox</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-openide-compat</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-openide-execution</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-openide-options</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-openide-util-enumerations</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-editor-mimelookup-impl</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-print</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-favorites</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-javahelp</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-sampler</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-spi-actions</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
            </exclusions>
M
Mathieu Bastian 已提交
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>gephi-branding</artifactId>
        </dependency>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-modules-nbjunit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>utils-longtask</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>project-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>graph-api</artifactId>
        </dependency>
140
        <dependency>
M
Mathieu Bastian 已提交
141
            <groupId>${project.groupId}</groupId>
142
            <artifactId>io-exporter-api</artifactId>
143 144
        </dependency>
        <dependency>
M
Mathieu Bastian 已提交
145 146
            <groupId>${project.groupId}</groupId>
            <artifactId>preview-api</artifactId>
147
        </dependency>
148
        <dependency>
M
Mathieu Bastian 已提交
149
            <groupId>${project.groupId}</groupId>
150
            <artifactId>io-exporter-preview</artifactId>
151
        </dependency>
M
Mathieu Bastian 已提交
152 153
        <dependency>
            <groupId>${project.groupId}</groupId>
154
            <artifactId>lib.validation</artifactId>
M
Mathieu Bastian 已提交
155
        </dependency>
156
        <dependency>
M
Mathieu Bastian 已提交
157 158
            <groupId>${project.groupId}</groupId>
            <artifactId>preview-export-ui</artifactId>
159
        </dependency>
160
        <!--        <dependency>
M
Mathieu Bastian 已提交
161 162
            <groupId>${project.groupId}</groupId>
            <artifactId>dynamic-api</artifactId>
163
        </dependency>-->
M
Mathieu Bastian 已提交
164 165 166 167
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>utils</artifactId>
        </dependency>
168
        <dependency>
M
Mathieu Bastian 已提交
169 170
            <groupId>${project.groupId}</groupId>
            <artifactId>datalab-api</artifactId>
171
        </dependency>
M
Mathieu Bastian 已提交
172 173 174 175
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>visualization-api</artifactId>
        </dependency>
176
        <dependency>
M
Mathieu Bastian 已提交
177 178
            <groupId>${project.groupId}</groupId>
            <artifactId>preview-plugin</artifactId>
179
        </dependency>
M
Mathieu Bastian 已提交
180 181 182 183 184 185
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>db-drivers</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
186
            <artifactId>io-importer-api</artifactId>
M
Mathieu Bastian 已提交
187 188 189
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
190
            <artifactId>io-processor-plugin</artifactId>
M
Mathieu Bastian 已提交
191 192 193 194 195 196 197 198 199 200 201
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>processor-plugin-ui</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>project-ui</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
202
            <artifactId>ui-utils</artifactId>
M
Mathieu Bastian 已提交
203 204 205 206 207 208 209 210 211
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>ui-components</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>settings-upgrader</artifactId>
        </dependency>
212
        <!--        <dependency>
M
Mathieu Bastian 已提交
213 214 215 216 217 218
            <groupId>${project.groupId}</groupId>
            <artifactId>spigot-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>spigot-plugin-ui</artifactId>
219
        </dependency>-->
220 221 222 223 224 225 226 227 228 229 230 231
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>statistics-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>statistics-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>statistics-plugin-ui</artifactId>
        </dependency>
232
        <!--        <dependency>
233
                     <groupId>${project.groupId}</groupId>
234 235 236
                    <artifactId>timeline</artifactId>
                </dependency>
        -->        
M
Mathieu Bastian 已提交
237 238 239
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>tools-api</artifactId>
240
        </dependency>       
M
Mathieu Bastian 已提交
241 242 243
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>algorithms-plugin</artifactId>
244
        </dependency>
M
Mathieu Bastian 已提交
245 246 247 248 249 250 251 252 253 254 255 256 257 258
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>gleem</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>mostrecentfiles-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-project</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
259
            <artifactId>visualization</artifactId>
M
Mathieu Bastian 已提交
260
        </dependency>
E
Eduardo Ramos 已提交
261
        <dependency>
M
Mathieu Bastian 已提交
262 263
            <groupId>${project.groupId}</groupId>
            <artifactId>tools-plugin</artifactId>
E
Eduardo Ramos 已提交
264
        </dependency>
M
Mathieu Bastian 已提交
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>welcome-screen</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-context</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-progress</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-branding</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>layout-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
287
            <artifactId>io-generator-api</artifactId>
M
Mathieu Bastian 已提交
288 289 290
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
291
            <artifactId>io-generator-plugin</artifactId>
M
Mathieu Bastian 已提交
292 293 294 295 296
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>generator-plugin-ui</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
297
        <dependency>
M
Mathieu Bastian 已提交
298
            <groupId>${project.groupId}</groupId>
299
            <artifactId>io-exporter-plugin</artifactId>
M
Mathieu Bastian 已提交
300
        </dependency>
M
Mathieu Bastian 已提交
301 302 303
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-statistics</artifactId>
304
        </dependency>
305
        <!--        <dependency>
M
Mathieu Bastian 已提交
306 307 308 309 310 311
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>clustering-api</artifactId>
312
        </dependency>-->
313
        <!--        <dependency>
M
Mathieu Bastian 已提交
314
            <groupId>${project.groupId}</groupId>
315
            <artifactId>ui-propertyeditor</artifactId>
316
        </dependency>-->
M
Mathieu Bastian 已提交
317 318 319 320
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>layout-plugin</artifactId>
        </dependency>
321
        <!--        <dependency>
M
Mathieu Bastian 已提交
322 323
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-spigot</artifactId>
324
        </dependency>-->
M
Mathieu Bastian 已提交
325 326 327 328
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-generate</artifactId>
        </dependency>
329 330 331 332
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-datalab</artifactId>
        </dependency>
333
        <dependency>
M
Mathieu Bastian 已提交
334
            <groupId>${project.groupId}</groupId>
335
            <artifactId>appearance-api</artifactId>
M
Mathieu Bastian 已提交
336 337 338
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
339 340
            <artifactId>desktop-appearance</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
341
        <dependency>
M
Mathieu Bastian 已提交
342
            <groupId>${project.groupId}</groupId>
343
            <artifactId>io-importer-plugin</artifactId>
M
Mathieu Bastian 已提交
344
        </dependency>
345
        <!--
M
Mathieu Bastian 已提交
346 347 348 349 350 351 352
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-impl</artifactId>
M
Mathieu Bastian 已提交
353
        </dependency>-->
M
Mathieu Bastian 已提交
354 355 356
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>export-plugin-ui</artifactId>
M
Mathieu Bastian 已提交
357
        </dependency>
M
Mathieu Bastian 已提交
358 359 360 361
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-recent-files</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
362
        <dependency>
M
Mathieu Bastian 已提交
363
            <groupId>${project.groupId}</groupId>
364
            <artifactId>desktop-io-export</artifactId>
M
Mathieu Bastian 已提交
365
        </dependency>
M
Mathieu Bastian 已提交
366 367 368 369
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>perspective-api</artifactId>
        </dependency>
370
        <!--        <dependency>
M
Mathieu Bastian 已提交
371 372
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-clustering</artifactId>
373
        </dependency>-->
M
Mathieu Bastian 已提交
374 375 376 377 378 379
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>import-plugin-ui</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
380
            <artifactId>desktop-banner</artifactId>
M
Mathieu Bastian 已提交
381 382 383 384
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>datalab-plugin</artifactId>
385 386 387 388
        </dependency>
        <!--        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-plugin-ui</artifactId>
389
        </dependency>-->
M
Mathieu Bastian 已提交
390 391 392 393
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-layout</artifactId>
        </dependency>
394
        <!--        <dependency>
M
Mathieu Bastian 已提交
395 396
            <groupId>${project.groupId}</groupId>
            <artifactId>dynamic-impl</artifactId>
397
        </dependency>-->
M
Mathieu Bastian 已提交
398 399 400 401
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-import</artifactId>
        </dependency>
402
        <dependency>
M
Mathieu Bastian 已提交
403 404
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-preview</artifactId>
405
        </dependency>
M
Mathieu Bastian 已提交
406 407
        <dependency>
            <groupId>${project.groupId}</groupId>
408
            <artifactId>appearance-plugin</artifactId>
M
Mathieu Bastian 已提交
409 410 411
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
412 413
            <artifactId>appearance-plugin-ui</artifactId>
        </dependency><!--
M
Mathieu Bastian 已提交
414 415 416 417 418 419 420
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-tools</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-timeline</artifactId>
421
        </dependency>-->
M
Mathieu Bastian 已提交
422 423 424 425
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>directory-chooser</artifactId>
        </dependency>
426
        <!--        <dependency>
M
Mathieu Bastian 已提交
427 428 429 430 431 432
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-filters</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>clustering-plugin</artifactId>
433
        </dependency>-->
434 435
        <dependency>
            <groupId>${project.groupId}</groupId>
436
            <artifactId>core-library-wrapper</artifactId>
437 438 439
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
440
            <artifactId>ui-library-wrapper</artifactId>
441
        </dependency>
M
Mathieu Bastian 已提交
442 443 444 445
    </dependencies>

    <build>
        <plugins>
446 447
            
            <!-- Disable the ZIP goal in the non-deployment or release mode. Also set up the location of the gephi.conf -->
M
Mathieu Bastian 已提交
448 449 450
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
451 452 453 454
                <configuration>
                    <!-- Set up the gephi.conf for the final artifact -->
                    <etcConfFile>${basedir}/target/${brandingToken}.conf</etcConfFile>
                </configuration>
M
Mathieu Bastian 已提交
455 456
                <executions>
                    <execution>
457 458 459 460
                        <id>default-standalone-zip</id>
                        <phase>none</phase>       
                    </execution>
                </executions>
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489
            </plugin>
            
            <!-- Copy ressources gephi.conf and Info.plist with filtering (replacing 'project.version' by the actual version -->
            <plugin> 
                <artifactId>maven-resources-plugin</artifactId> 
                <executions> 
                    <execution> 
                        <id>generate-app-conf-file</id> 
                        <phase>generate-resources</phase> 
                        <goals> 
                            <goal>copy-resources</goal> 
                        </goals> 
                        <configuration> 
                            <outputDirectory>${basedir}/target/</outputDirectory> 
                            <resources> 
                                <resource> 
                                    <directory>src/main/resources</directory> 
                                    <includes> 
                                        <include>${brandingToken}.conf</include>
                                        <include>Info.plist</include>
                                    </includes> 
                                    <filtering>true</filtering> 
                                </resource> 
                            </resources>
                            <escapeString>\</escapeString>
                        </configuration> 
                    </execution> 
                </executions> 
            </plugin>
490 491 492 493
        </plugins>
    </build>

    <profiles>
494 495
        <!-- The deployment profile is built for daily releases. It builds the standalone 
        zip and the autoupdate site. It can be used with deploy-dmg to include the dmg as well. -->
496
        <profile>
M
Mathieu Bastian 已提交
497
            <id>deployment</id>
M
Mathieu Bastian 已提交
498 499 500 501
            
            <!-- Localization dependency -->
            <dependencies>
                <dependency>
502 503
                    <groupId>nl.cloudfarming.client</groupId>
                    <artifactId>lib-platform-l10n</artifactId>
M
Mathieu Bastian 已提交
504
                    <version>${gephi.platform.localization.version}</version>
505
               </dependency>
M
Mathieu Bastian 已提交
506 507
            </dependencies>
            
508 509
            <build>
                <plugins>
510 511
                    
                    <!-- NBM Plugin settings. Enable the zip and autoupdate generation -->
512 513 514 515 516 517 518 519
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>nbm-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>default-standalone-zip</id>
                                <phase>package</phase>       
                            </execution>
520
                            <execution>
M
Mathieu Bastian 已提交
521
                                <id>autoupdate</id>
522
                                <goals>
M
Mathieu Bastian 已提交
523
                                    <goal>autoupdate</goal>
524
                                </goals>
525 526 527
                                <configuration>
                                    <outputDirectory>${project.build.directory}/site</outputDirectory>
                                </configuration>
528
                            </execution>
529 530
                        </executions>
                    </plugin>
531
                    
532 533 534 535
                    <!-- Permits NbModuleSuite to be run in integration-test phase: -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
M
Mathieu Bastian 已提交
536
                        <configuration>
537 538 539 540 541 542
                            <systemPropertyVariables>
                                <all.clusters>${all.clusters}</all.clusters>
                                <branding.token>${brandingToken}</branding.token>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
M
Mathieu Bastian 已提交
543 544 545 546 547 548 549 550 551 552 553 554 555 556
                    
                    <!-- Avoid jar goal -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jar-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>none</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
M
Mathieu Bastian 已提交
557

558 559 560 561 562 563 564 565 566
                    <!-- Do not generate a source jar -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <configuration>
                            <skipSource>true</skipSource>
                        </configuration>
                    </plugin>

M
Mathieu Bastian 已提交
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587
                    <!-- Unpack the localization dependency -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>unpack</id>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>unpack-dependencies</goal>
                                </goals>
                                <configuration>
                                    <includeGroupIds>org.netbeans</includeGroupIds>
                                    <includeArtifactIds>platform-localization</includeArtifactIds>
                                    <outputDirectory>
                                        ${project.build.directory}/${brandingToken}
                                    </outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
                    
                    <!-- Copy parent's site into target/site -->
                    <plugin>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>site</phase>
                                <configuration>
                                    <target>
                                        <copy todir="${project.build.directory}/site">
                                            <fileset dir="${basedir}/../../target/site"/>
                                        </copy>
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- Attach parent's sources artifact -->
610 611
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
612
                        <artifactId>build-helper-maven-plugin</artifactId>
613 614
                        <executions>
                            <execution>
615 616
                                <id>attach-sources</id>
                                <phase>pre-integration-test</phase>
617
                                <goals>
618
                                    <goal>attach-artifact</goal>
619
                                </goals>
620 621 622 623 624 625 626 627 628
                                <configuration>
                                    <artifacts>
                                        <artifact>
                                            <file>${basedir}/../../target/${brandingToken}-${project.version}-sources.tar.gz</file>
                                            <type>tar.gz</type>
                                            <classifier>sources</classifier>
                                        </artifact>
                                    </artifacts>
                                </configuration>
629 630
                            </execution>
                        </executions>
631
                    </plugin>
632 633 634 635 636 637
                </plugins>
            </build>
        </profile>
        
        <!-- Profile used along with deployment to create the dmg archive -->
        <profile>
M
Mathieu Bastian 已提交
638
            <id>create-dmg</id>
639 640
            <build>
                <plugins>
641
                    
642 643 644 645 646 647 648 649 650 651 652 653 654
                    <!-- Create the Mac OS X application bundle and dmg file -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>create-app-bundle</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
M
Mathieu Bastian 已提交
655
                                
656 657
                                        <delete includeEmptyDirs="true" failonerror="false">
                                            <fileset dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
M
Mathieu Bastian 已提交
658 659
                                            <fileset dir="${project.build.directory}/${gephi.app.title}"/>
                                            <fileset dir="${project.build.directory}/${project.artifactId}-${project.version}.dmg"/>
660
                                        </delete>
M
Mathieu Bastian 已提交
661
                                
662 663
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS"/>
664 665 666 667
                                        
                                        <copy todir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}">
                                            <fileset dir="${project.build.directory}/${brandingToken}"/>
                                        </copy>
M
Mathieu Bastian 已提交
668
                                
669 670
                                        <copy tofile="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}.icns" file="src/main/app-resources/${brandingToken}.icns" />
                                        <copy tofile="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Info.plist" file="${project.build.directory}/Info.plist"/>
M
Mathieu Bastian 已提交
671
                                
672
                                        <chmod file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}/bin/${brandingToken}" perm="ugo+rx"/>
M
Mathieu Bastian 已提交
673
                                
M
Mathieu Bastian 已提交
674
                                        <symlink link="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS/Gephi" resource="../Resources/${brandingToken}/bin/${brandingToken}" failonerror="false" />
M
Mathieu Bastian 已提交
675

676 677 678 679 680 681 682
                                        <exec dir="${project.build.directory}" os="Mac OS X" executable="codesign">
                                            <arg value="-fs"/> 
                                            <arg value="${gephi.codesign.identity}"/> 
                                            <arg value="-v"/> 
                                            <arg value="${gephi.appbundle.name}.app"/> 
                                        </exec>
                                        
M
Mathieu Bastian 已提交
683 684 685 686
                                        <mkdir dir="${project.build.directory}/${gephi.app.title}"/>
                                        <move file="${project.build.directory}/${gephi.appbundle.name}.app" todir="${project.build.directory}/${gephi.app.title}/" />
                                        <symlink link="${project.build.directory}/${gephi.app.title}/Applications" resource="/Applications" failonerror="false" />
                                        
687 688 689 690
                                        <exec dir="${project.build.directory}" os="Mac OS X" executable="hdiutil">
                                            <arg value="create"/> 
                                            <arg value="-noanyowners"/> 
                                            <arg value="-imagekey"/> 
691
                                            <arg value="zlib-level=9"/> 
692
                                            <arg value="-srcfolder"/> 
M
Mathieu Bastian 已提交
693
                                            <arg value="${project.build.directory}/${gephi.app.title}"/> 
694 695
                                            <arg value="${project.artifactId}-${project.version}.dmg"/>
                                        </exec>
M
Mathieu Bastian 已提交
696

697
                                        <exec dir="${project.build.directory}" os="Linux" executable="genisoimage">
698 699 700 701 702 703 704 705 706 707 708
                                            <arg value="-V"/> 
                                            <arg value="${gephi.appbundle.name}"/>
                                            <arg value="-U"/>
                                            <arg value="-D"/>
                                            <arg value="-l"/>
                                            <arg value="-allow-multidot"/>
                                            <arg value="-max-iso9660-filenames"/>
                                            <arg value="-relaxed-filenames"/>
                                            <arg value="-no-iso-translate"/>
                                            <arg value="-r"/>
                                            <arg value="-o"/>
M
Mathieu Bastian 已提交
709
                                            <arg value="${project.artifactId}-${project.version}.dmg"/>
710
                                            <arg value="-root"/>
M
Mathieu Bastian 已提交
711 712
                                            <arg value="${project.build.directory}/${gephi.app.title}"/>
                                            <arg value="${project.build.directory}/${gephi.app.title}"/>
713 714 715 716 717 718
                                        </exec>
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
M
Mathieu Bastian 已提交
719 720 721 722 723 724 725 726 727
                </plugins>
            </build>
        </profile>
        
        <!-- Profile used along with deployment to attach the dmg archive -->
        <profile>
            <id>deploy-dmg</id>
            <build>
                <plugins>
728
                    <!-- Attach the final DMG for deployment -->
729 730 731 732 733 734 735 736 737 738 739 740
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-dmg</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>attach-artifact</goal>
                                </goals>
                                <configuration>
                                    <artifacts>
741
                                        <artifact>
742 743 744 745 746 747 748
                                            <file>${project.build.directory}/${project.artifactId}-${project.version}.dmg</file>
                                            <type>dmg</type>
                                        </artifact>
                                    </artifacts>
                                </configuration>
                            </execution>
                        </executions>
M
Mathieu Bastian 已提交
749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772
                    </plugin>   
                </plugins>
            </build>
        </profile>
        
        <!-- Profile activated for windows/macos release only. Should be called alone so it only creates the windows installer/compressed dmg -->
        <profile>
            <id>release-extra</id>
            <build>
                <plugins>
                    <!-- Avoid updatesite.xml.gz attach -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>nbm-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>default-standalone-zip</id>
                                <phase>none</phase>       
                            </execution>
                            <execution>
                                <id>autoupdate</id>
                                <phase>none</phase>
                            </execution>
                        </executions>
773
                    </plugin>
M
Mathieu Bastian 已提交
774 775 776
                </plugins>
            </build>
        </profile>
777
        
778
        <!-- Profile activated for windows release in addition of deployement. Create the installer. -->
M
Mathieu Bastian 已提交
779
        <profile>
780
            <id>release-windows</id>
M
Mathieu Bastian 已提交
781 782
            <build>
                <plugins>
783 784
                    
                    <!-- Copy and filter the InnoSetup config file, as well as icons -->
785 786 787 788 789 790 791 792 793 794
                    <plugin> 
                        <artifactId>maven-resources-plugin</artifactId> 
                        <executions> 
                            <execution> 
                                <id>generate-iss-file</id> 
                                <phase>generate-resources</phase> 
                                <goals> 
                                    <goal>copy-resources</goal> 
                                </goals> 
                                <configuration> 
M
Mathieu Bastian 已提交
795
                                    <outputDirectory>${basedir}/target</outputDirectory> 
796 797 798 799 800 801 802 803 804 805 806 807 808
                                    <resources> 
                                        <resource> 
                                            <directory>src/main/app-resources</directory> 
                                            <includes> 
                                                <include>${brandingToken}.iss</include>
                                            </includes> 
                                            <filtering>true</filtering> 
                                        </resource>
                                        <resource> 
                                            <directory>src/main/app-resources</directory> 
                                            <includes> 
                                                <include>${brandingToken}.ico</include>
                                                <include>${brandingToken}file128.png</include>
809
                                                <include>COPYING.txt</include>
810 811 812 813 814 815 816
                                            </includes> 
                                            <filtering>false</filtering> 
                                        </resource> 
                                    </resources> 
                                </configuration> 
                            </execution> 
                        </executions> 
817 818 819 820 821 822 823
                    </plugin>   
                    
                    <!-- Execute InnoSetup with the gephi.iss script -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
824 825 826 827 828 829 830 831 832 833
                            <execution>
                                <id>replace-windows-icon</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <!-- Windows-only target that replaces the icon for the launcher exe with our own icon. -->
                                    <target name="replaceWindowsLauncherIcon" description="Replace the icon for the Windows launcher exe">
                                        <echo message="Replacing icon of Windows launcher executable."/>
834
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
835 836
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephi.ico 0"/>
                                        </exec>
837
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
838 839
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephifile.ico 1"/>
                                        </exec>
840
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
841 842
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephi.ico 0"/>
                                        </exec>
843
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
844 845
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephifile.ico 1"/>
                                        </exec>
846 847 848
                                    </target>
                                </configuration>
                            </execution>
849 850 851 852 853 854 855 856
                            <execution>
                                <id>create-windows-installer</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
M
Mathieu Bastian 已提交
857
                                        <delete file="${project.artifactId}-${project.version}.setup.exe" failonerror="false"/>
858
                                        
859
                                        <exec dir="${project.build.directory}" executable="${gephi.innosetup.path}/Compil32.exe" os="Windows">
M
Mathieu Bastian 已提交
860
                                            <arg line="/cc '${brandingToken}.iss'" /> 
861 862 863 864 865
                                        </exec>
                                        
                                        <exec dir="${project.build.directory}" executable="iscc" os="Linux">
                                            <arg line="${brandingToken}.iss" /> 
                                        </exec>
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    
                    <!-- Deploy exe artifact -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-deploy-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>deploy</phase>
                                <goals>
                                    <goal>deploy-file</goal>
                                </goals>
                                <configuration>
                                    <packaging>exe</packaging>
                                    <generatePom>false</generatePom>
M
Debug  
Mathieu Bastian 已提交
885
                                    <repositoryId>${gephi.release.repository.id}</repositoryId>
886 887 888 889
                                    <url>${gephi.release.repository.url}</url>
                                    <artifactId>${project.artifactId}</artifactId>
                                    <groupId>${project.groupId}</groupId>
                                    <version>${project.version}</version>
M
Mathieu Bastian 已提交
890
                                    <file>${project.build.directory}/${project.artifactId}-${project.version}.setup.exe</file>
891 892 893 894 895 896 897 898 899 900 901 902 903
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        
        <!-- Profile activated for macos release. Need to be called with profile deploy-dmg. -->
        <profile>
            <id>release-macos</id>
            <build>
                <plugins>
M
Mathieu Bastian 已提交
904
                    <!-- Deploy dmg artifact -->
905 906 907 908 909 910 911 912 913 914 915 916
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-deploy-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>deploy</phase>
                                <goals>
                                    <goal>deploy-file</goal>
                                </goals>
                                <configuration>
                                    <packaging>dmg</packaging>
                                    <generatePom>false</generatePom>
M
Debug  
Mathieu Bastian 已提交
917
                                    <repositoryId>${gephi.release.repository.id}</repositoryId>
918 919 920 921 922 923 924 925
                                    <url>${gephi.release.repository.url}</url>
                                    <artifactId>${project.artifactId}</artifactId>
                                    <groupId>${project.groupId}</groupId>
                                    <version>${project.version}</version>
                                    <file>${project.build.directory}/${project.artifactId}-${project.version}.dmg</file>
                                </configuration>
                            </execution>
                        </executions>
M
Mathieu Bastian 已提交
926
                    </plugin>
927 928 929
                </plugins>
            </build>
        </profile>
930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956

        <!-- Profile that pushes the /site folder to GitHub's gh-pages -->
        <profile>
            <id>push-site</id>
            <build>
                <plugins>
                     <!-- Publish site folder to GitHub's gh-pages branch -->
                    <plugin>
                        <groupId>com.github.github</groupId>
                        <artifactId>site-maven-plugin</artifactId>
                        <configuration>
                            <message>Creating site for ${project.version}</message>
                            <path>${project.version}</path>
                            <merge>true</merge>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>site</goal>
                                </goals>
                                <phase>site</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
M
Mathieu Bastian 已提交
957 958
    </profiles>
</project>