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

    <build>
        <plugins>
469 470
            
            <!-- Disable the ZIP goal in the non-deployment or release mode. Also set up the location of the gephi.conf -->
M
Mathieu Bastian 已提交
471 472 473
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
474 475 476 477
                <configuration>
                    <!-- Set up the gephi.conf for the final artifact -->
                    <etcConfFile>${basedir}/target/${brandingToken}.conf</etcConfFile>
                </configuration>
M
Mathieu Bastian 已提交
478 479
                <executions>
                    <execution>
480 481 482 483
                        <id>default-standalone-zip</id>
                        <phase>none</phase>       
                    </execution>
                </executions>
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512
            </plugin>
            
            <!-- Copy ressources gephi.conf and Info.plist with filtering (replacing 'project.version' by the actual version -->
            <plugin> 
                <artifactId>maven-resources-plugin</artifactId> 
                <executions> 
                    <execution> 
                        <id>generate-app-conf-file</id> 
                        <phase>generate-resources</phase> 
                        <goals> 
                            <goal>copy-resources</goal> 
                        </goals> 
                        <configuration> 
                            <outputDirectory>${basedir}/target/</outputDirectory> 
                            <resources> 
                                <resource> 
                                    <directory>src/main/resources</directory> 
                                    <includes> 
                                        <include>${brandingToken}.conf</include>
                                        <include>Info.plist</include>
                                    </includes> 
                                    <filtering>true</filtering> 
                                </resource> 
                            </resources>
                            <escapeString>\</escapeString>
                        </configuration> 
                    </execution> 
                </executions> 
            </plugin>
513 514 515 516
        </plugins>
    </build>

    <profiles>
517 518
        <!-- 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. -->
519
        <profile>
M
Mathieu Bastian 已提交
520
            <id>deployment</id>
M
Mathieu Bastian 已提交
521 522 523 524 525 526 527 528 529 530 531
            
            <!-- Localization dependency -->
            <dependencies>
                <dependency>
                    <groupId>org.netbeans</groupId>
                    <artifactId>platform-localization</artifactId>
                    <type>zip</type>
                    <version>${gephi.platform.localization.version}</version>
                </dependency>
            </dependencies>
            
532 533
            <build>
                <plugins>
534 535
                    
                    <!-- NBM Plugin settings. Enable the zip and autoupdate generation -->
536 537 538 539 540 541 542 543
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>nbm-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>default-standalone-zip</id>
                                <phase>package</phase>       
                            </execution>
544
                            <execution>
M
Mathieu Bastian 已提交
545
                                <id>autoupdate</id>
546
                                <goals>
M
Mathieu Bastian 已提交
547
                                    <goal>autoupdate</goal>
548 549
                                </goals>
                            </execution>
550 551
                        </executions>
                    </plugin>
552
                    
553 554 555 556
                    <!-- Permits NbModuleSuite to be run in integration-test phase: -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
M
Mathieu Bastian 已提交
557
                        <configuration>
558 559 560 561 562 563
                            <systemPropertyVariables>
                                <all.clusters>${all.clusters}</all.clusters>
                                <branding.token>${brandingToken}</branding.token>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
M
Mathieu Bastian 已提交
564 565 566 567 568 569 570 571 572 573 574 575 576 577
                    
                    <!-- 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 已提交
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599

                    <!-- 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>
600 601 602 603 604 605 606 607
                </plugins>
            </build>
        </profile>
        
        <profile>
            <id>upload-updates</id>
            <build>
                <plugins>
608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623
                    <!-- Upload the autoupdate site automatically -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>wagon-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>upload-jar-to-folder</id>
                                <phase>deploy</phase>
                                <goals>
                                    <goal>upload</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <fromDir>${gephi.updates.site}</fromDir>
                            <includes>*</includes>
624 625 626
                            <url>${gephi.default.repository.url}</url>
                            <toDir>${gephi.updates.repository.path}</toDir>
                            <serverId>${gephi.default.repository.id}</serverId>
627
                        </configuration>
628
                    </plugin>
629 630 631 632 633 634
                </plugins>
            </build>
        </profile>
        
        <!-- Profile used along with deployment to create the dmg archive -->
        <profile>
M
Mathieu Bastian 已提交
635
            <id>create-dmg</id>
636 637
            <build>
                <plugins>
638
                    
639 640 641 642 643 644 645 646 647 648 649 650 651
                    <!-- Create the Mac OS X application bundle and dmg file -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>create-app-bundle</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
M
Mathieu Bastian 已提交
652
                                
653 654 655
                                        <delete includeEmptyDirs="true" failonerror="false">
                                            <fileset dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
                                        </delete>
M
Mathieu Bastian 已提交
656
                                
657 658
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app"/>
                                        <mkdir dir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS"/>
659 660 661 662
                                        
                                        <copy todir="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}">
                                            <fileset dir="${project.build.directory}/${brandingToken}"/>
                                        </copy>
M
Mathieu Bastian 已提交
663
                                
664 665
                                        <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 已提交
666
                                
667
                                        <chmod file="${project.build.directory}/${gephi.appbundle.name}.app/Contents/Resources/${brandingToken}/bin/${brandingToken}" perm="ugo+rx"/>
M
Mathieu Bastian 已提交
668
                                
M
Mathieu Bastian 已提交
669
                                        <symlink link="${project.build.directory}/${gephi.appbundle.name}.app/Contents/MacOS/Gephi" resource="../Resources/${brandingToken}/bin/${brandingToken}" failonerror="false" />
M
Mathieu Bastian 已提交
670

671 672 673 674 675 676 677
                                        <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>
                                        
678 679 680 681
                                        <exec dir="${project.build.directory}" os="Mac OS X" executable="hdiutil">
                                            <arg value="create"/> 
                                            <arg value="-noanyowners"/> 
                                            <arg value="-imagekey"/> 
682
                                            <arg value="zlib-level=9"/> 
683 684 685 686
                                            <arg value="-srcfolder"/> 
                                            <arg value="${gephi.appbundle.name}.app"/> 
                                            <arg value="${project.artifactId}-${project.version}.dmg"/>
                                        </exec>
M
Mathieu Bastian 已提交
687

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