pom.xml 52.3 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
                    <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>
69 70 71 72
                <exclusion>
                    <artifactId>org-netbeans-libs-junit4</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
M
Mathieu Bastian 已提交
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
                <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-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>
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
                <exclusion>
                    <artifactId>org-netbeans-modules-junitlib</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-api-htmlui</artifactId>
                    <groupId>org.netbeans.api</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>org-netbeans-modules-templatesui</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>net-java-html</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>net-java-html-boot</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>net-java-html-boot-fx</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>net-java-html-boot-script</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>net-java-html-geo</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>net-java-html-json</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>net-java-html-sound</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.netbeans.external</groupId>
                    <artifactId>org-netbeans-html-ko4j</artifactId>
                </exclusion>
M
Mathieu Bastian 已提交
161
            </exclusions>
M
Mathieu Bastian 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
        </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>
184
        <dependency>
M
Mathieu Bastian 已提交
185
            <groupId>${project.groupId}</groupId>
186
            <artifactId>io-exporter-api</artifactId>
187 188
        </dependency>
        <dependency>
M
Mathieu Bastian 已提交
189 190
            <groupId>${project.groupId}</groupId>
            <artifactId>preview-api</artifactId>
191
        </dependency>
192
        <dependency>
M
Mathieu Bastian 已提交
193
            <groupId>${project.groupId}</groupId>
194
            <artifactId>io-exporter-preview</artifactId>
195
        </dependency>
M
Mathieu Bastian 已提交
196 197
        <dependency>
            <groupId>${project.groupId}</groupId>
198
            <artifactId>lib.validation</artifactId>
M
Mathieu Bastian 已提交
199
        </dependency>
200
        <dependency>
M
Mathieu Bastian 已提交
201 202
            <groupId>${project.groupId}</groupId>
            <artifactId>preview-export-ui</artifactId>
203
        </dependency>
M
Mathieu Bastian 已提交
204 205 206 207
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>utils</artifactId>
        </dependency>
208
        <dependency>
M
Mathieu Bastian 已提交
209 210
            <groupId>${project.groupId}</groupId>
            <artifactId>datalab-api</artifactId>
211
        </dependency>
M
Mathieu Bastian 已提交
212 213 214 215
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>visualization-api</artifactId>
        </dependency>
216
        <dependency>
M
Mathieu Bastian 已提交
217 218
            <groupId>${project.groupId}</groupId>
            <artifactId>preview-plugin</artifactId>
219
        </dependency>
M
Mathieu Bastian 已提交
220 221 222 223 224 225
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>db-drivers</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
226
            <artifactId>io-importer-api</artifactId>
M
Mathieu Bastian 已提交
227 228 229
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
230
            <artifactId>io-processor-plugin</artifactId>
M
Mathieu Bastian 已提交
231 232 233 234 235 236 237 238 239 240 241
        </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>
242
            <artifactId>ui-utils</artifactId>
M
Mathieu Bastian 已提交
243 244 245 246 247 248 249 250 251
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>ui-components</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>settings-upgrader</artifactId>
        </dependency>
252
        <!--        <dependency>
M
Mathieu Bastian 已提交
253 254 255 256 257 258
            <groupId>${project.groupId}</groupId>
            <artifactId>spigot-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>spigot-plugin-ui</artifactId>
259
        </dependency>-->
260 261 262 263 264 265 266 267 268 269 270 271
        <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>
272
        <!--        <dependency>
273
                     <groupId>${project.groupId}</groupId>
274 275 276
                    <artifactId>timeline</artifactId>
                </dependency>
        -->        
M
Mathieu Bastian 已提交
277 278 279
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>tools-api</artifactId>
280
        </dependency>       
M
Mathieu Bastian 已提交
281 282 283
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>algorithms-plugin</artifactId>
284
        </dependency>
M
Mathieu Bastian 已提交
285 286 287 288 289 290 291 292 293 294 295 296 297 298
        <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>
299
            <artifactId>visualization</artifactId>
M
Mathieu Bastian 已提交
300
        </dependency>
E
Eduardo Ramos 已提交
301
        <dependency>
M
Mathieu Bastian 已提交
302 303
            <groupId>${project.groupId}</groupId>
            <artifactId>tools-plugin</artifactId>
E
Eduardo Ramos 已提交
304
        </dependency>
M
Mathieu Bastian 已提交
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
        <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>
327
            <artifactId>io-generator-api</artifactId>
M
Mathieu Bastian 已提交
328 329 330
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
331
            <artifactId>io-generator-plugin</artifactId>
M
Mathieu Bastian 已提交
332 333 334 335 336
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>generator-plugin-ui</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
337
        <dependency>
M
Mathieu Bastian 已提交
338
            <groupId>${project.groupId}</groupId>
339
            <artifactId>io-exporter-plugin</artifactId>
M
Mathieu Bastian 已提交
340
        </dependency>
M
Mathieu Bastian 已提交
341 342 343
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-statistics</artifactId>
344
        </dependency>
345
<!--        <dependency>
M
Mathieu Bastian 已提交
346 347
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-api</artifactId>
348
        </dependency>-->
M
Mathieu Bastian 已提交
349
        <dependency>
M
Mathieu Bastian 已提交
350
            <groupId>${project.groupId}</groupId>
351
            <artifactId>ui-propertyeditor</artifactId>
M
Mathieu Bastian 已提交
352
        </dependency>
M
Mathieu Bastian 已提交
353 354 355 356
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>layout-plugin</artifactId>
        </dependency>
357
        <!--        <dependency>
M
Mathieu Bastian 已提交
358 359
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-spigot</artifactId>
360
        </dependency>-->
M
Mathieu Bastian 已提交
361 362 363 364
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-generate</artifactId>
        </dependency>
365 366 367 368
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-datalab</artifactId>
        </dependency>
369
        <dependency>
M
Mathieu Bastian 已提交
370
            <groupId>${project.groupId}</groupId>
371
            <artifactId>appearance-api</artifactId>
M
Mathieu Bastian 已提交
372 373 374
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
375 376
            <artifactId>desktop-appearance</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
377
        <dependency>
M
Mathieu Bastian 已提交
378
            <groupId>${project.groupId}</groupId>
379
            <artifactId>io-importer-plugin</artifactId>
M
Mathieu Bastian 已提交
380
        </dependency>
381
<!--        <dependency>
M
Mathieu Bastian 已提交
382 383 384 385 386 387
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-plugin</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-impl</artifactId>
M
Mathieu Bastian 已提交
388
        </dependency>-->
M
Mathieu Bastian 已提交
389 390 391
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>export-plugin-ui</artifactId>
M
Mathieu Bastian 已提交
392
        </dependency>
M
Mathieu Bastian 已提交
393 394 395 396
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-recent-files</artifactId>
        </dependency>
M
Mathieu Bastian 已提交
397
        <dependency>
M
Mathieu Bastian 已提交
398
            <groupId>${project.groupId}</groupId>
399
            <artifactId>desktop-io-export</artifactId>
M
Mathieu Bastian 已提交
400
        </dependency>
M
Mathieu Bastian 已提交
401 402 403 404 405 406 407 408 409 410
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>perspective-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>import-plugin-ui</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
411
            <artifactId>desktop-banner</artifactId>
M
Mathieu Bastian 已提交
412 413 414 415
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>datalab-plugin</artifactId>
416
        </dependency>
417
<!--        <dependency>
418 419
            <groupId>${project.groupId}</groupId>
            <artifactId>filters-plugin-ui</artifactId>
420
        </dependency>-->
M
Mathieu Bastian 已提交
421 422 423 424
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-layout</artifactId>
        </dependency>
425
        <!--        <dependency>
M
Mathieu Bastian 已提交
426 427
            <groupId>${project.groupId}</groupId>
            <artifactId>dynamic-impl</artifactId>
428
        </dependency>-->
M
Mathieu Bastian 已提交
429 430 431 432
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-import</artifactId>
        </dependency>
433
        <dependency>
M
Mathieu Bastian 已提交
434 435
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-preview</artifactId>
436
        </dependency>
M
Mathieu Bastian 已提交
437 438
        <dependency>
            <groupId>${project.groupId}</groupId>
439
            <artifactId>appearance-plugin</artifactId>
M
Mathieu Bastian 已提交
440 441 442
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
443
            <artifactId>appearance-plugin-ui</artifactId>
444
        </dependency>
M
Mathieu Bastian 已提交
445 446 447
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-tools</artifactId>
448
        </dependency><!--
M
Mathieu Bastian 已提交
449 450 451
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-timeline</artifactId>
452
        </dependency>-->
M
Mathieu Bastian 已提交
453 454 455 456
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>directory-chooser</artifactId>
        </dependency>
457
<!--        <dependency>
M
Mathieu Bastian 已提交
458 459
            <groupId>${project.groupId}</groupId>
            <artifactId>desktop-filters</artifactId>
460
        </dependency>-->
461 462
        <dependency>
            <groupId>${project.groupId}</groupId>
463
            <artifactId>core-library-wrapper</artifactId>
464 465 466
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
467
            <artifactId>ui-library-wrapper</artifactId>
468
        </dependency>
M
Mathieu Bastian 已提交
469 470 471 472
    </dependencies>

    <build>
        <plugins>
473
            
474
            <!-- Disable the ZIP goal. Also set up the location of the gephi.conf -->
M
Mathieu Bastian 已提交
475 476 477
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
478 479 480 481
                <configuration>
                    <!-- Set up the gephi.conf for the final artifact -->
                    <etcConfFile>${basedir}/target/${brandingToken}.conf</etcConfFile>
                </configuration>
M
Mathieu Bastian 已提交
482 483
                <executions>
                    <execution>
484 485 486 487
                        <id>default-standalone-zip</id>
                        <phase>none</phase>       
                    </execution>
                </executions>
488
            </plugin>
489 490 491 492 493 494 495 496 497 498

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

499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525
            <!-- 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>
526 527 528 529
        </plugins>
    </build>

    <profiles>
530 531
        <!-- 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. -->
532
        <profile>
M
Mathieu Bastian 已提交
533
            <id>deployment</id>
M
Mathieu Bastian 已提交
534 535 536 537
            
            <!-- Localization dependency -->
            <dependencies>
                <dependency>
538 539
                    <groupId>nl.cloudfarming.client</groupId>
                    <artifactId>lib-platform-l10n</artifactId>
M
Mathieu Bastian 已提交
540
                    <version>${gephi.platform.localization.version}</version>
541
                </dependency>
M
Mathieu Bastian 已提交
542 543
            </dependencies>
            
544 545
            <build>
                <plugins>
546 547 548 549 550 551 552 553 554 555 556 557 558 559
                    <!-- 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 已提交
560
                    <!-- Enable artifact deploy -->
561
                    <plugin>
M
Mathieu Bastian 已提交
562 563
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
564
                        <configuration>
M
Mathieu Bastian 已提交
565
                            <skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
566
                        </configuration>
567
                    </plugin>
568
                    
569 570 571 572
                    <!-- Permits NbModuleSuite to be run in integration-test phase: -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
M
Mathieu Bastian 已提交
573
                        <configuration>
574 575 576 577 578 579
                            <systemPropertyVariables>
                                <all.clusters>${all.clusters}</all.clusters>
                                <branding.token>${brandingToken}</branding.token>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
580

M
Mathieu Bastian 已提交
581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601
                    <!-- 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>
602 603 604 605 606 607 608 609 610 611
                </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 -->
612
                    <plugin>
613 614
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>nbm-maven-plugin</artifactId>
615 616
                        <executions>
                            <execution>
617 618 619 620
                                <id>autoupdate</id>
                                <goals>
                                    <goal>autoupdate</goal>
                                </goals>
621
                                <configuration>
622
                                    <outputDirectory>${project.build.directory}/site</outputDirectory>
623
                                </configuration>
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643
                            </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>
644
                                <goals>
645
                                    <goal>attach-artifact</goal>
646
                                </goals>
647 648 649 650 651 652 653 654 655
                                <configuration>
                                    <artifacts>
                                        <artifact>
                                            <file>${basedir}/../../target/${brandingToken}-${project.version}-sources.tar.gz</file>
                                            <type>tar.gz</type>
                                            <classifier>sources</classifier>
                                        </artifact>
                                    </artifacts>
                                </configuration>
656 657 658
                            </execution>
                        </executions>
                    </plugin>
659 660 661
                </plugins>
            </build>
        </profile>
662

663 664 665 666 667
        <!-- Profile used along with deployment to create the tar.gz artifact -->
        <profile>
            <id>create-targz</id>
            <build>
                <plugins>
668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689
                    <!-- 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>

690
                    <!-- Attach tar.gz artifact -->
691 692
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
693
                        <artifactId>build-helper-maven-plugin</artifactId>
694
                        <executions>
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710
                            <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>
711
                        </executions>
712
                    </plugin>
713 714 715 716 717 718
                </plugins>
            </build>
        </profile>
        
        <!-- Profile used along with deployment to create the dmg archive -->
        <profile>
M
Mathieu Bastian 已提交
719
            <id>create-dmg</id>
720 721
            <build>
                <plugins>
722
                    
723 724 725 726 727 728 729
                    <!-- 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>
730
                                <phase>package</phase>
731 732 733 734 735
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
M
Mathieu Bastian 已提交
736
                                        <!-- Clean -->
737 738
                                        <delete includeEmptyDirs="true" failonerror="false">
                                            <fileset dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
M
Mathieu Bastian 已提交
739 740
                                            <fileset dir="${project.build.directory}/${gephi.app.title}"/>
                                            <fileset dir="${project.build.directory}/${project.artifactId}-${project.version}.dmg"/>
741
                                        </delete>
M
Mathieu Bastian 已提交
742
                                
M
Mathieu Bastian 已提交
743
                                        <!-- Create folders -->
744 745
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS"/>
746
                                        
M
Mathieu Bastian 已提交
747
                                        <!-- Copy application -->
748 749 750
                                        <copy todir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}">
                                            <fileset dir="${project.build.directory}/${brandingToken}"/>
                                        </copy>
M
Mathieu Bastian 已提交
751
                                
M
Mathieu Bastian 已提交
752
                                        <!-- Copy logo and configuration files -->
753 754
                                        <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 已提交
755
                                
M
Mathieu Bastian 已提交
756
                                        <!-- Move bin/gephi script into MacOS/gephi and modify the script so it founds its resources -->
M
Mathieu Bastian 已提交
757 758 759
                                        <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 已提交
760

M
Mathieu Bastian 已提交
761 762 763 764 765 766 767 768 769 770
                                        <!-- 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>
771 772 773 774 775 776 777 778
                                        
                                        <!-- Unzip archive -->
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/PlugIns"/>
                                        <exec dir="${project.build.directory}" executable="tar">
                                            <arg line="-zxf"/>
                                            <arg line="${gephi.bundle.jre.version}.tar.gz"/>
                                            <arg line="-C ${gephi.appbundle.name}.app/Contents/PlugIns"/>
                                        </exec>
M
Mathieu Bastian 已提交
779

780
                                        <!-- Remove quarantine bit set recursively on JRE -->
781
                                        <exec dir="${project.build.directory}" os="Mac OS X" executable="xattr">
782 783 784 785 786
                                            <arg line="-rd"/>
                                            <arg line="com.apple.quarantine"/>
                                            <arg line="${gephi.appbundle.name}.app/Contents/PlugIns"/>
                                        </exec>

M
Mathieu Bastian 已提交
787 788 789 790 791 792 793 794 795 796 797 798
                                        <!-- 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 -->
799 800
                                        <delete file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/PlugIns/${bundle.jre.name}/Contents/MacOS/libjli.dylib"/>
                                        <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"/>
M
Mathieu Bastian 已提交
801

802 803 804 805 806 807 808 809 810
                                        <!-- 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 -->
811 812 813 814 815 816 817
                                        <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>
                                        
818
                                        <!-- Create application folder and add Applications dynamic link -->   
M
Mathieu Bastian 已提交
819 820 821 822
                                        <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" />
                                        
823
                                        <!-- Create DMG (Mac OS X) --> 
824 825 826 827
                                        <exec dir="${project.build.directory}" os="Mac OS X" executable="hdiutil">
                                            <arg value="create"/> 
                                            <arg value="-noanyowners"/> 
                                            <arg value="-imagekey"/> 
828
                                            <arg value="zlib-level=9"/> 
829
                                            <arg value="-srcfolder"/> 
M
Mathieu Bastian 已提交
830
                                            <arg value="${project.build.directory}/${gephi.app.title}"/> 
831 832
                                            <arg value="${project.artifactId}-${project.version}.dmg"/>
                                        </exec>
M
Mathieu Bastian 已提交
833

834
                                        <!-- Create DMG (Linux), only for testing -->  
835
                                        <exec dir="${project.build.directory}" os="Linux" executable="genisoimage">
836 837 838 839 840 841 842 843 844 845 846
                                            <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 已提交
847
                                            <arg value="${project.artifactId}-${project.version}.dmg"/>
848
                                            <arg value="-root"/>
M
Mathieu Bastian 已提交
849 850
                                            <arg value="${project.build.directory}/${gephi.app.title}"/>
                                            <arg value="${project.build.directory}/${gephi.app.title}"/>
851 852 853 854 855 856
                                        </exec>
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
857
                    
858
                    <!-- Attach the final DMG for deployment -->
859 860 861 862 863 864
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-dmg</id>
865
                                <phase>package</phase>
866 867 868 869 870
                                <goals>
                                    <goal>attach-artifact</goal>
                                </goals>
                                <configuration>
                                    <artifacts>
871
                                        <artifact>
872 873
                                            <file>${project.build.directory}/${project.artifactId}-${project.version}.dmg</file>
                                            <type>dmg</type>
874
                                            <classifier>macos</classifier>
875 876 877 878 879 880
                                        </artifact>
                                    </artifacts>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
M
Mathieu Bastian 已提交
881 882 883
                </plugins>
            </build>
        </profile>
884
        
885
        <!-- Profile activated for windows release in addition of deployement. Create the installer. -->
M
Mathieu Bastian 已提交
886
        <profile>
887
            <id>create-exe</id>
M
Mathieu Bastian 已提交
888 889
            <build>
                <plugins>
890 891
                    
                    <!-- Copy and filter the InnoSetup config file, as well as icons -->
892 893 894 895 896 897 898 899 900 901
                    <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 已提交
902
                                    <outputDirectory>${basedir}/target</outputDirectory> 
903 904 905 906 907 908 909 910 911 912 913 914 915
                                    <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>
916
                                                <include>COPYING.txt</include>
917 918 919 920 921 922 923
                                            </includes> 
                                            <filtering>false</filtering> 
                                        </resource> 
                                    </resources> 
                                </configuration> 
                            </execution> 
                        </executions> 
924 925 926 927 928 929 930
                    </plugin>   
                    
                    <!-- Execute InnoSetup with the gephi.iss script -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
931 932 933 934 935 936 937
                            <execution>
                                <id>replace-windows-icon</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
938
                                    <!-- Target that replaces the icon for the launcher exe with our own icon. -->
939
                                    <target name="replaceWindowsLauncherIcon" description="Replace the icon for the Windows launcher exe">
940
                                        <!-- Windows -->
941
                                        <echo message="Replacing icon of Windows launcher executable."/>
942
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
943 944
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephi.ico 0"/>
                                        </exec>
945
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
946 947
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephifile.ico 1"/>
                                        </exec>
948
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
949 950
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephi.ico 0"/>
                                        </exec>
951
                                        <exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" osfamily="windows">
952 953
                                            <arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephifile.ico 1"/>
                                        </exec>
954 955 956 957 958 959 960 961 962 963 964 965 966 967 968

                                        <!-- 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>
969 970 971
                                    </target>
                                </configuration>
                            </execution>
972 973
                            <execution>
                                <id>create-windows-installer</id>
974
                                <phase>package</phase>
975 976 977 978
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
979
                                    <target name="createInstaller" description="Create Windows installer with InnoSetup">
980
                                        <echo message="Creating windows installer with InnoSetup"/>
M
Mathieu Bastian 已提交
981
                                        <delete file="${project.artifactId}-${project.version}.setup.exe" failonerror="false"/>
982
                                        
983
                                        <!-- Windows -->
984 985
                                        <exec dir="${project.build.directory}" executable="${gephi.innosetup.path}/Compil32.exe" osfamily="windows">
                                            <arg line="/cc &quot;${brandingToken}.iss&quot;" /> 
986
                                        </exec>
987 988

                                        <!-- Linux (assuming the right wine configuration) -->
989 990 991
                                        <exec dir="${project.build.directory}" executable="iscc" os="Linux">
                                            <arg line="${brandingToken}.iss" /> 
                                        </exec>
992 993 994 995 996 997
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    
998
                    <!-- Attach the final exe installer for deployment -->
999
                    <plugin>
1000 1001
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
1002 1003
                        <executions>
                            <execution>
1004 1005
                                <id>attach-exe</id>
                                <phase>package</phase>
1006
                                <goals>
1007
                                    <goal>attach-artifact</goal>
1008 1009
                                </goals>
                                <configuration>
1010 1011 1012 1013
                                    <artifacts>
                                        <artifact>
                                            <file>${project.build.directory}/${project.artifactId}-${project.version}.setup.exe</file>
                                            <type>exe</type>
1014
                                            <classifier>windows</classifier>
1015 1016
                                        </artifact>
                                    </artifacts>
1017 1018 1019
                                </configuration>
                            </execution>
                        </executions>
M
Mathieu Bastian 已提交
1020
                    </plugin>
1021 1022 1023
                </plugins>
            </build>
        </profile>
1024 1025 1026 1027 1028 1029

        <!-- Profile that pushes the /site folder to GitHub's gh-pages -->
        <profile>
            <id>push-site</id>
            <build>
                <plugins>
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049
                    <!-- 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>

1050
                    <!-- Publish site folder to GitHub's gh-pages branch -->
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070
                    <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 已提交
1071 1072
    </profiles>
</project>