pom.xml 49.7 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>
M
Mathieu Bastian 已提交
160 161 162 163
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>utils</artifactId>
        </dependency>
164
        <dependency>
M
Mathieu Bastian 已提交
165 166
            <groupId>${project.groupId}</groupId>
            <artifactId>datalab-api</artifactId>
167
        </dependency>
M
Mathieu Bastian 已提交
168 169 170 171
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>visualization-api</artifactId>
        </dependency>
172
        <dependency>
M
Mathieu Bastian 已提交
173 174
            <groupId>${project.groupId}</groupId>
            <artifactId>preview-plugin</artifactId>
175
        </dependency>
M
Mathieu Bastian 已提交
176 177 178 179 180 181
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>db-drivers</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
182
            <artifactId>io-importer-api</artifactId>
M
Mathieu Bastian 已提交
183 184 185
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
186
            <artifactId>io-processor-plugin</artifactId>
M
Mathieu Bastian 已提交
187 188 189 190 191 192 193 194 195 196 197
        </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>
198
            <artifactId>ui-utils</artifactId>
M
Mathieu Bastian 已提交
199 200 201 202 203 204 205 206 207
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>ui-components</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>settings-upgrader</artifactId>
        </dependency>
208
        <!--        <dependency>
M
Mathieu Bastian 已提交
209 210 211 212 213 214
            <groupId>${project.groupId}</groupId>
            <artifactId>spigot-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>spigot-plugin-ui</artifactId>
215
        </dependency>-->
216 217 218 219 220 221 222 223 224 225 226 227
        <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>
228
        <!--        <dependency>
229
                     <groupId>${project.groupId}</groupId>
230 231 232
                    <artifactId>timeline</artifactId>
                </dependency>
        -->        
M
Mathieu Bastian 已提交
233 234 235
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>tools-api</artifactId>
236
        </dependency>       
M
Mathieu Bastian 已提交
237 238 239
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>algorithms-plugin</artifactId>
240
        </dependency>
M
Mathieu Bastian 已提交
241 242 243 244 245 246 247 248 249 250 251 252 253 254
        <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>
255
            <artifactId>visualization</artifactId>
M
Mathieu Bastian 已提交
256
        </dependency>
E
Eduardo Ramos 已提交
257
        <dependency>
M
Mathieu Bastian 已提交
258 259
            <groupId>${project.groupId}</groupId>
            <artifactId>tools-plugin</artifactId>
E
Eduardo Ramos 已提交
260
        </dependency>
M
Mathieu Bastian 已提交
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
        <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>
283
            <artifactId>io-generator-api</artifactId>
M
Mathieu Bastian 已提交
284 285 286
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
287
            <artifactId>io-generator-plugin</artifactId>
M
Mathieu Bastian 已提交
288 289 290 291 292
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>generator-plugin-ui</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
293
        <dependency>
M
Mathieu Bastian 已提交
294
            <groupId>${project.groupId}</groupId>
295
            <artifactId>io-exporter-plugin</artifactId>
M
Mathieu Bastian 已提交
296
        </dependency>
M
Mathieu Bastian 已提交
297 298 299
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-statistics</artifactId>
300
        </dependency>
301
        <!--        <dependency>
M
Mathieu Bastian 已提交
302 303 304 305 306 307
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>clustering-api</artifactId>
308
        </dependency>-->
309
        <!--        <dependency>
M
Mathieu Bastian 已提交
310
            <groupId>${project.groupId}</groupId>
311
            <artifactId>ui-propertyeditor</artifactId>
312
        </dependency>-->
M
Mathieu Bastian 已提交
313 314 315 316
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>layout-plugin</artifactId>
        </dependency>
317
        <!--        <dependency>
M
Mathieu Bastian 已提交
318 319
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-spigot</artifactId>
320
        </dependency>-->
M
Mathieu Bastian 已提交
321 322 323 324
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-generate</artifactId>
        </dependency>
325 326 327 328
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-datalab</artifactId>
        </dependency>
329
        <dependency>
M
Mathieu Bastian 已提交
330
            <groupId>${project.groupId}</groupId>
331
            <artifactId>appearance-api</artifactId>
M
Mathieu Bastian 已提交
332 333 334
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
335 336
            <artifactId>desktop-appearance</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
337
        <dependency>
M
Mathieu Bastian 已提交
338
            <groupId>${project.groupId}</groupId>
339
            <artifactId>io-importer-plugin</artifactId>
M
Mathieu Bastian 已提交
340
        </dependency>
341
        <!--
M
Mathieu Bastian 已提交
342 343 344 345 346 347 348
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-impl</artifactId>
M
Mathieu Bastian 已提交
349
        </dependency>-->
M
Mathieu Bastian 已提交
350 351 352
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>export-plugin-ui</artifactId>
M
Mathieu Bastian 已提交
353
        </dependency>
M
Mathieu Bastian 已提交
354 355 356 357
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-recent-files</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
358
        <dependency>
M
Mathieu Bastian 已提交
359
            <groupId>${project.groupId}</groupId>
360
            <artifactId>desktop-io-export</artifactId>
M
Mathieu Bastian 已提交
361
        </dependency>
M
Mathieu Bastian 已提交
362 363 364 365
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>perspective-api</artifactId>
        </dependency>
366
        <!--        <dependency>
M
Mathieu Bastian 已提交
367 368
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-clustering</artifactId>
369
        </dependency>-->
M
Mathieu Bastian 已提交
370 371 372 373 374 375
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>import-plugin-ui</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
376
            <artifactId>desktop-banner</artifactId>
M
Mathieu Bastian 已提交
377 378 379 380
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>datalab-plugin</artifactId>
381 382 383 384
        </dependency>
        <!--        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-plugin-ui</artifactId>
385
        </dependency>-->
M
Mathieu Bastian 已提交
386 387 388 389
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-layout</artifactId>
        </dependency>
390
        <!--        <dependency>
M
Mathieu Bastian 已提交
391 392
            <groupId>${project.groupId}</groupId>
            <artifactId>dynamic-impl</artifactId>
393
        </dependency>-->
M
Mathieu Bastian 已提交
394 395 396 397
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-import</artifactId>
        </dependency>
398
        <dependency>
M
Mathieu Bastian 已提交
399 400
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-preview</artifactId>
401
        </dependency>
M
Mathieu Bastian 已提交
402 403
        <dependency>
            <groupId>${project.groupId}</groupId>
404
            <artifactId>appearance-plugin</artifactId>
M
Mathieu Bastian 已提交
405 406 407
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
408
            <artifactId>appearance-plugin-ui</artifactId>
409
        </dependency>
M
Mathieu Bastian 已提交
410 411 412
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-tools</artifactId>
413
        </dependency><!--
M
Mathieu Bastian 已提交
414 415 416
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-timeline</artifactId>
417
        </dependency>-->
M
Mathieu Bastian 已提交
418 419 420 421
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>directory-chooser</artifactId>
        </dependency>
422
        <!--        <dependency>
M
Mathieu Bastian 已提交
423 424 425 426 427 428
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-filters</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>clustering-plugin</artifactId>
429
        </dependency>-->
430 431
        <dependency>
            <groupId>${project.groupId}</groupId>
432
            <artifactId>core-library-wrapper</artifactId>
433 434 435
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
436
            <artifactId>ui-library-wrapper</artifactId>
437
        </dependency>
M
Mathieu Bastian 已提交
438 439 440 441
    </dependencies>

    <build>
        <plugins>
442
            
443
            <!-- Disable the ZIP goal. Also set up the location of the gephi.conf -->
M
Mathieu Bastian 已提交
444 445 446
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
447 448 449 450
                <configuration>
                    <!-- Set up the gephi.conf for the final artifact -->
                    <etcConfFile>${basedir}/target/${brandingToken}.conf</etcConfFile>
                </configuration>
M
Mathieu Bastian 已提交
451 452
                <executions>
                    <execution>
453 454 455 456
                        <id>default-standalone-zip</id>
                        <phase>none</phase>       
                    </execution>
                </executions>
457
            </plugin>
458 459 460 461 462 463 464 465 466 467

            <!-- Do not generate a source jar -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <configuration>
                    <skipSource>true</skipSource>
                </configuration>
            </plugin>

468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
            <!-- 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>
495 496 497 498
        </plugins>
    </build>

    <profiles>
499 500
        <!-- 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. -->
501
        <profile>
M
Mathieu Bastian 已提交
502
            <id>deployment</id>
M
Mathieu Bastian 已提交
503 504 505 506
            
            <!-- Localization dependency -->
            <dependencies>
                <dependency>
507 508
                    <groupId>nl.cloudfarming.client</groupId>
                    <artifactId>lib-platform-l10n</artifactId>
M
Mathieu Bastian 已提交
509
                    <version>${gephi.platform.localization.version}</version>
510
                </dependency>
M
Mathieu Bastian 已提交
511 512
            </dependencies>
            
513 514
            <build>
                <plugins>
515 516 517 518 519 520 521 522 523 524 525 526 527 528
                    <!-- 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 已提交
529
                    <!-- Enable artifact deploy -->
530
                    <plugin>
M
Mathieu Bastian 已提交
531 532
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
533
                        <configuration>
M
Mathieu Bastian 已提交
534
                            <skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
535
                        </configuration>
536
                    </plugin>
537
                    
538 539 540 541
                    <!-- Permits NbModuleSuite to be run in integration-test phase: -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
M
Mathieu Bastian 已提交
542
                        <configuration>
543 544 545 546 547 548
                            <systemPropertyVariables>
                                <all.clusters>${all.clusters}</all.clusters>
                                <branding.token>${brandingToken}</branding.token>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
549

M
Mathieu Bastian 已提交
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570
                    <!-- 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>
571 572 573 574 575 576 577 578 579 580
                </plugins>
            </build>
        </profile>

        <!-- Profile used along with deployment to create the autoupdate site -->
        <profile>
            <id>create-autoupdate</id>
            <build>
                <plugins>
                    <!-- NBM Plugin settings. Enable the autoupdate generation -->
581
                    <plugin>
582 583
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>nbm-maven-plugin</artifactId>
584 585
                        <executions>
                            <execution>
586 587 588 589
                                <id>autoupdate</id>
                                <goals>
                                    <goal>autoupdate</goal>
                                </goals>
590
                                <configuration>
591
                                    <outputDirectory>${project.build.directory}/site</outputDirectory>
592
                                </configuration>
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- Profile used along with deployment to create the sources artifact -->
        <profile>
            <id>create-sources</id>
            <build>
                <plugins>
                    <!-- Attach parent's sources artifact -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <phase>pre-integration-test</phase>
613
                                <goals>
614
                                    <goal>attach-artifact</goal>
615
                                </goals>
616 617 618 619 620 621 622 623 624
                                <configuration>
                                    <artifacts>
                                        <artifact>
                                            <file>${basedir}/../../target/${brandingToken}-${project.version}-sources.tar.gz</file>
                                            <type>tar.gz</type>
                                            <classifier>sources</classifier>
                                        </artifact>
                                    </artifacts>
                                </configuration>
625 626 627
                            </execution>
                        </executions>
                    </plugin>
628 629 630
                </plugins>
            </build>
        </profile>
631

632 633 634 635 636
        <!-- Profile used along with deployment to create the tar.gz artifact -->
        <profile>
            <id>create-targz</id>
            <build>
                <plugins>
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658
                    <!-- Assembler to produce linux's tar.gz -->
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>linux-assembly</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                                <configuration>
                                    <tarLongFileMode>gnu</tarLongFileMode>
                                    <finalName>${brandingToken}-${project.version}</finalName>
                                    <descriptors>
                                        <descriptor>src/assemble/linux.xml</descriptor>
                                    </descriptors>
                                    <attach>false</attach>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

659
                    <!-- Attach tar.gz artifact -->
660 661
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
662
                        <artifactId>build-helper-maven-plugin</artifactId>
663
                        <executions>
664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679
                            <execution>
                                <id>attach-linux</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>attach-artifact</goal>
                                </goals>
                                <configuration>
                                    <artifacts>
                                        <artifact>
                                            <file>${basedir}/target/${brandingToken}-${project.version}-linux.tar.gz</file>
                                            <type>tar.gz</type>
                                            <classifier>linux</classifier>
                                        </artifact>
                                    </artifacts>
                                </configuration>
                            </execution>
680
                        </executions>
681
                    </plugin>
682 683 684 685 686 687
                </plugins>
            </build>
        </profile>
        
        <!-- Profile used along with deployment to create the dmg archive -->
        <profile>
M
Mathieu Bastian 已提交
688
            <id>create-dmg</id>
689 690
            <build>
                <plugins>
691
                    
692 693 694 695 696 697 698
                    <!-- 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>
699
                                <phase>package</phase>
700 701 702 703 704
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
M
Mathieu Bastian 已提交
705
                                        <!-- Clean -->
706 707
                                        <delete includeEmptyDirs="true" failonerror="false">
                                            <fileset dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
M
Mathieu Bastian 已提交
708 709
                                            <fileset dir="${project.build.directory}/${gephi.app.title}"/>
                                            <fileset dir="${project.build.directory}/${project.artifactId}-${project.version}.dmg"/>
710
                                        </delete>
M
Mathieu Bastian 已提交
711
                                
M
Mathieu Bastian 已提交
712
                                        <!-- Create folders -->
713 714
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS"/>
715
                                        
M
Mathieu Bastian 已提交
716
                                        <!-- Copy application -->
717 718 719
                                        <copy todir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}">
                                            <fileset dir="${project.build.directory}/${brandingToken}"/>
                                        </copy>
M
Mathieu Bastian 已提交
720
                                
M
Mathieu Bastian 已提交
721
                                        <!-- Copy logo and configuration files -->
722 723
                                        <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 已提交
724
                                
M
Mathieu Bastian 已提交
725
                                        <!-- Move bin/gephi script into MacOS/gephi and modify the script so it founds its resources -->
M
Mathieu Bastian 已提交
726 727 728
                                        <move file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}/bin/${brandingToken}" todir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS"/>
                                        <replace file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS/${brandingToken}" token="`dirname &quot;$PRG&quot;`" value="`dirname &quot;$PRG&quot;`&quot;/../Resources/gephi/bin&quot;"/>
                                        <chmod file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS/${brandingToken}" perm="ugo+rx"/>
M
Mathieu Bastian 已提交
729

M
Mathieu Bastian 已提交
730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755
                                        <!-- Download and untar JRE -->
                                        <exec dir="${project.build.directory}" executable="curl">
                                            <arg line="-L"/>
                                            <arg line="-C"/>
                                            <arg line="-"/>
                                            <arg line="-b"/>
                                            <arg line="&quot;oraclelicense=accept-securebackup-cookie&quot;"/>
                                            <arg line="-O"/>
                                            <arg line="${gephi.bundle.jre.url}/${gephi.bundle.jre.version}.tar.gz"/>
                                        </exec>
                                        <untar src="${project.build.directory}/${gephi.bundle.jre.version}.tar.gz" dest="${project.build.directory}/${gephi.appbundle.name}.app/Contents/PlugIns" compression="gzip"/>

                                        <!-- Get the JRE folder name -->
                                        <path id="jre_name">
                                            <dirset dir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/PlugIns" includes="jre*" />
                                        </path>
                                        <property name="bundle.jre.path" refid="jre_name" />
                                        <basename property="bundle.jre.name" file="${bundle.jre.path}"/>

                                        <!-- Configure relative JRE path into gephi.conf -->
                                        <replace file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}/etc/${brandingToken}.conf" token="#jdkhome=&quot;/path/to/jdk&quot;" value="jdkhome=&quot;../../PlugIns/${bundle.jre.name}/Contents/Home&quot;"/>
                                        <chmod file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/PlugIns/**" perm="+x" type="both"/>

                                        <!-- Fix JRE by replacing libjli.dylib symlink with real file -->
                                        <copy file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/PlugIns/${bundle.jre.name}/Contents/Home/lib/jli/libjli.dylib" todir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/PlugIns/${bundle.jre.name}/Contents/MacOS" overwrite="true"/>

756 757 758 759 760 761 762 763 764
                                        <!-- Codesign JRE -->
                                        <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/Contents/PlugIns/${bundle.jre.name}/"/> 
                                        </exec>
            
                                        <!-- Codesign app -->
765 766 767 768 769 770 771
                                        <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 已提交
772
                                        <!-- Create application folder and add Applications dynamic link -->
M
Mathieu Bastian 已提交
773 774 775 776
                                        <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" />
                                        
M
Mathieu Bastian 已提交
777
                                        <!-- Create DMG (Mac OS X) -->
778 779 780 781
                                        <exec dir="${project.build.directory}" os="Mac OS X" executable="hdiutil">
                                            <arg value="create"/> 
                                            <arg value="-noanyowners"/> 
                                            <arg value="-imagekey"/> 
782
                                            <arg value="zlib-level=9"/> 
783
                                            <arg value="-srcfolder"/> 
M
Mathieu Bastian 已提交
784
                                            <arg value="${project.build.directory}/${gephi.app.title}"/> 
785 786
                                            <arg value="${project.artifactId}-${project.version}.dmg"/>
                                        </exec>
M
Mathieu Bastian 已提交
787

M
Mathieu Bastian 已提交
788
                                        <!-- Create DMG (Linux), only for testing -->
789
                                        <exec dir="${project.build.directory}" os="Linux" executable="genisoimage">
790 791 792 793 794 795 796 797 798 799 800
                                            <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 已提交
801
                                            <arg value="${project.artifactId}-${project.version}.dmg"/>
802
                                            <arg value="-root"/>
M
Mathieu Bastian 已提交
803 804
                                            <arg value="${project.build.directory}/${gephi.app.title}"/>
                                            <arg value="${project.build.directory}/${gephi.app.title}"/>
805 806 807 808 809 810
                                        </exec>
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
811
                    
812
                    <!-- Attach the final DMG for deployment -->
813 814 815 816 817 818
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-dmg</id>
819
                                <phase>package</phase>
820 821 822 823 824
                                <goals>
                                    <goal>attach-artifact</goal>
                                </goals>
                                <configuration>
                                    <artifacts>
825
                                        <artifact>
826 827
                                            <file>${project.build.directory}/${project.artifactId}-${project.version}.dmg</file>
                                            <type>dmg</type>
828
                                            <classifier>macos</classifier>
829 830 831 832 833 834
                                        </artifact>
                                    </artifacts>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
M
Mathieu Bastian 已提交
835 836 837
                </plugins>
            </build>
        </profile>
838
        
839
        <!-- Profile activated for windows release in addition of deployement. Create the installer. -->
M
Mathieu Bastian 已提交
840
        <profile>
841
            <id>create-exe</id>
M
Mathieu Bastian 已提交
842 843
            <build>
                <plugins>
844 845
                    
                    <!-- Copy and filter the InnoSetup config file, as well as icons -->
846 847 848 849 850 851 852 853 854 855
                    <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 已提交
856
                                    <outputDirectory>${basedir}/target</outputDirectory> 
857 858 859 860 861 862 863 864 865 866 867 868 869
                                    <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>
870
                                                <include>COPYING.txt</include>
871 872 873 874 875 876 877
                                            </includes> 
                                            <filtering>false</filtering> 
                                        </resource> 
                                    </resources> 
                                </configuration> 
                            </execution> 
                        </executions> 
878 879 880 881 882 883 884
                    </plugin>   
                    
                    <!-- Execute InnoSetup with the gephi.iss script -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
885 886 887 888 889 890 891
                            <execution>
                                <id>replace-windows-icon</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
892
                                    <!-- Target that replaces the icon for the launcher exe with our own icon. -->
893
                                    <target name="replaceWindowsLauncherIcon" description="Replace the icon for the Windows launcher exe">
894
                                        <!-- Windows -->
895
                                        <echo message="Replacing icon of Windows launcher executable."/>
896
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
897 898
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephi.ico 0"/>
                                        </exec>
899
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
900 901
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephifile.ico 1"/>
                                        </exec>
902
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
903 904
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephi.ico 0"/>
                                        </exec>
905
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
906 907
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephifile.ico 1"/>
                                        </exec>
908 909 910 911 912 913 914 915 916 917 918 919 920 921 922

                                        <!-- Linux (assuming the right wine configuration) -->
                                        <echo message="Replacing icon of Windows launcher executable."/>
                                        <exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephi.ico 0"/>
                                        </exec>
                                        <exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephifile.ico 1"/>
                                        </exec>
                                        <exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephi.ico 0"/>
                                        </exec>
                                        <exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephifile.ico 1"/>
                                        </exec>
923 924 925
                                    </target>
                                </configuration>
                            </execution>
926 927
                            <execution>
                                <id>create-windows-installer</id>
928
                                <phase>package</phase>
929 930 931 932
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
933
                                    <target name="createInstaller" description="Create Windows installer with InnoSetup">
934
                                        <echo message="Creating windows installer with InnoSetup"/>
M
Mathieu Bastian 已提交
935
                                        <delete file="${project.artifactId}-${project.version}.setup.exe" failonerror="false"/>
936
                                        
937
                                        <!-- Windows -->
938 939
                                        <exec dir="${project.build.directory}" executable="${gephi.innosetup.path}/Compil32.exe" osfamily="windows">
                                            <arg line="/cc &quot;${brandingToken}.iss&quot;" /> 
940
                                        </exec>
941 942

                                        <!-- Linux (assuming the right wine configuration) -->
943 944 945
                                        <exec dir="${project.build.directory}" executable="iscc" os="Linux">
                                            <arg line="${brandingToken}.iss" /> 
                                        </exec>
946 947 948 949 950 951
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    
952
                    <!-- Attach the final exe installer for deployment -->
953
                    <plugin>
954 955
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
956 957
                        <executions>
                            <execution>
958 959
                                <id>attach-exe</id>
                                <phase>package</phase>
960
                                <goals>
961
                                    <goal>attach-artifact</goal>
962 963
                                </goals>
                                <configuration>
964 965 966 967
                                    <artifacts>
                                        <artifact>
                                            <file>${project.build.directory}/${project.artifactId}-${project.version}.setup.exe</file>
                                            <type>exe</type>
968
                                            <classifier>windows</classifier>
969 970
                                        </artifact>
                                    </artifacts>
971 972 973
                                </configuration>
                            </execution>
                        </executions>
M
Mathieu Bastian 已提交
974
                    </plugin>
975 976 977
                </plugins>
            </build>
        </profile>
978 979 980 981 982 983

        <!-- Profile that pushes the /site folder to GitHub's gh-pages -->
        <profile>
            <id>push-site</id>
            <build>
                <plugins>
984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003
                    <!-- 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>

1004
                    <!-- Publish site folder to GitHub's gh-pages branch -->
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024
                    <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 已提交
1025 1026
    </profiles>
</project>