pom.xml 26.7 KB
Newer Older
Romain Bioteau's avatar
Romain Bioteau committed
1 2 3 4 5 6 7
<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.bonitasoft.studio</groupId>
Romain Bioteau's avatar
Romain Bioteau committed
8
		<artifactId>studio</artifactId>
9
        <version>7.2.2</version>
Romain Bioteau's avatar
Romain Bioteau committed
10
    </parent>
11

Romain Bioteau's avatar
Romain Bioteau committed
12 13 14
    <groupId>org.bonitasoft.studio</groupId>
    <artifactId>all-in-one</artifactId>
    <packaging>eclipse-repository</packaging>
Romain Bioteau's avatar
Romain Bioteau committed
15

Romain Bioteau's avatar
Romain Bioteau committed
16 17 18 19 20 21 22
    <dependencies>
        <dependency>
            <groupId>ant-contrib</groupId>
            <artifactId>ant-contrib</artifactId>
            <version>1.0b3</version>
        </dependency>
    </dependencies>
23

Romain Bioteau's avatar
Romain Bioteau committed
24 25 26 27
    <properties>
        <product.short.name>BonitaBPMCommunity</product.short.name>
        <repositoryId>studio-repository</repositoryId>
        <productId>org.bonitasoft.studio.product</productId>
Romain Bioteau's avatar
Romain Bioteau committed
28 29 30 31
        <antRunner>-application org.eclipse.ant.core.antRunner</antRunner>
        <p2BuildFile>-buildfile p2AllInOne.xml -clean -noSplash -consoleLog</p2BuildFile>
        <root.dir.arg>-Droot.dir=${project.build.directory}/${product.short.name}-${project.version}</root.dir.arg>
        <argLine>${antRunner} ${p2BuildFile} ${root.dir.arg}</argLine>
Romain Bioteau's avatar
Romain Bioteau committed
32
    </properties>
Romain Bioteau's avatar
Romain Bioteau committed
33

Romain Bioteau's avatar
BS-8680  
Romain Bioteau committed
34

Romain Bioteau's avatar
Romain Bioteau committed
35 36 37

    <build>
        <plugins>
Romain Bioteau's avatar
BS-8680  
Romain Bioteau committed
38
            <plugin>
Romain Bioteau's avatar
Romain Bioteau committed
39
                <groupId>org.bonitasoft.maven</groupId>
Romain Bioteau's avatar
BS-8680  
Romain Bioteau committed
40
                <artifactId>image-overlay-plugin</artifactId>
Romain Bioteau's avatar
BS-8680  
Romain Bioteau committed
41 42
                <executions>
                    <execution>
Romain Bioteau's avatar
Romain Bioteau committed
43
                        <id>splashVersion</id>
Romain Bioteau's avatar
Romain Bioteau committed
44
                        <configuration>
Romain Bioteau's avatar
BS-8680  
Romain Bioteau committed
45 46 47
                            <baseImgPath>${basedir}/installer/images/splash_without_version.png</baseImgPath>
                            <outputImagePath>${basedir}/installer/images/splash.png</outputImagePath>
                            <outputImageFormat>png</outputImageFormat>
48 49
                            <xLocation>88</xLocation>
                            <yLocation>128</yLocation>
azara's avatar
azara committed
50 51
                            <fontSize>22</fontSize>
                            <color>#0B4361</color>
Romain Bioteau's avatar
Romain Bioteau committed
52
                            <versionLabel>${project.version}</versionLabel>
Romain Bioteau's avatar
Romain Bioteau committed
53
                        </configuration>
Romain Bioteau's avatar
BS-8680  
Romain Bioteau committed
54 55 56 57 58 59
                        <goals>
                            <goal>create-image</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
Romain Bioteau's avatar
Romain Bioteau committed
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
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-repository-plugin</artifactId>
                <version>${tychoVersion}</version>
                <configuration>
                    <includeAllDependencies>true</includeAllDependencies>
                    <finalName>${repositoryId}-${project.version}</finalName>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-director-plugin</artifactId>
                <version>${tychoVersion}</version>
                <configuration>
                    <formats>
                        <macosx>tar.gz</macosx>
                        <linux>tar.gz</linux>
                        <win>zip</win>
                    </formats>
                </configuration>
                <executions>
                    <execution>
                        <id>materialize-products</id>
                        <goals>
                            <goal>materialize-products</goal>
                        </goals>
                        <phase>package</phase>
                    </execution>
                </executions>
            </plugin>
rbioteau's avatar
BS-6664  
rbioteau committed
90

Romain Bioteau's avatar
Romain Bioteau committed
91 92 93 94 95 96 97 98
            <!-- all-in-one assembly with all platforms -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>make-directory-assembly</id>
                        <phase>package</phase>
Romain Bioteau's avatar
Romain Bioteau committed
99
                        <configuration>
Romain Bioteau's avatar
Romain Bioteau committed
100 101 102
                            <appendAssemblyId>false</appendAssemblyId>
                            <descriptor>${basedir}/assembly-descriptor.xml</descriptor>
                            <finalName>${product.short.name}-${project.version}</finalName>
Romain Bioteau's avatar
Romain Bioteau committed
103
                        </configuration>
Romain Bioteau's avatar
Romain Bioteau committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>make-zip-assembly</id>
                        <phase>install</phase>
                        <configuration>
                            <appendAssemblyId>false</appendAssemblyId>
                            <descriptor>${basedir}/assembly-zip-descriptor.xml</descriptor>
                            <finalName>${product.short.name}-${project.version}</finalName>
                        </configuration>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
122

Romain Bioteau's avatar
Romain Bioteau committed
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 161 162 163 164 165 166 167
            <!-- Create a proper bundles.info for all-in-one -->
            <plugin>
                <groupId>org.eclipse.tycho.extras</groupId>
                <artifactId>tycho-eclipserun-plugin</artifactId>
                <configuration>
                    <appArgLine>${os-jvm-flags} ${argLine}/</appArgLine>
                    <argLine>-Xmx512m -Xms256m -XX:MaxPermSize=512m</argLine>
                    <repositories>
                        <repository>
                            <id>BonitaBPM P2 Repository</id>
                            <layout>p2</layout>
                            <url>${p2MirrorUrl}</url>
                        </repository>
                        <repository>
                            <id>Additional Build Dependencies P2 Repository</id>
                            <layout>p2</layout>
                            <url>${project.baseUri}/repository/</url>
                        </repository>
                    </repositories>
                    <dependencies>
                        <dependency>
                            <artifactId>org.bonitasoft.studio_antTasks</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.apache.ant</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.equinox.ds</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                    </dependencies>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>eclipse-run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
168

Romain Bioteau's avatar
Romain Bioteau committed
169
    <profiles>
Romain Bioteau's avatar
Romain Bioteau committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
        <profile>
            <id>buildInstaller</id>
            <activation>
                <file>
                    <exists>${project.build.directory}/products/${productId}/</exists>
                </file>
                <property>
                    <name>BITROCK_HOME</name>
                </property>
            </activation>
            <properties>
                <if.task>net.sf.antcontrib.logic.IfTask</if.task>
                <jre.url>http://repositories.rd.lan/tools/studio-tools</jre.url>
                <jre.winx86.url>jre1.7.0_55-windows</jre.winx86.url>
                <jre.winx86.x64.url>jre1.7.0_55-windows-x64</jre.winx86.x64.url>
                <jre.linuxx86.url>jre1.7.0_55-linux</jre.linuxx86.url>
                <jre.linuxx86.x64.url>jre1.7.0_55-linux-x64</jre.linuxx86.x64.url>
Romain Bioteau's avatar
Romain Bioteau committed
187
                <jre.osx.url>jre-8u45-macosx-x64</jre.osx.url>
Romain Bioteau's avatar
Romain Bioteau committed
188 189 190 191 192 193 194 195
            </properties>
            <build>
                <plugins>
                    <!-- Build installers for each platform -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
Romain Bioteau's avatar
Romain Bioteau committed
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
                            <execution>
                                <id>linux-x86</id>
                                <phase>install</phase>
                                <configuration>
                                    <arguments>
                                        <argument>build</argument>
                                        <argument>${basedir}/installer/installer_project_linux_x86.xml</argument>
                                        <argument>linux</argument>
                                    </arguments>
                                </configuration>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>linux-x86_64</id>
                                <phase>install</phase>
                                <configuration>
                                    <arguments>
                                        <argument>build</argument>
                                        <argument>${basedir}/installer/installer_project_linux_x86_64.xml</argument>
                                        <argument>linux-x64</argument>
                                    </arguments>
                                </configuration>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
Romain Bioteau's avatar
Romain Bioteau committed
224 225 226 227 228 229 230 231 232 233 234 235 236 237
                            <execution>
                                <id>macosx-x86_64</id>
                                <phase>install</phase>
                                <configuration>
                                    <arguments>
                                        <argument>build</argument>
                                        <argument>${basedir}/installer/installer_project_macosx_x86_64.xml</argument>
                                        <argument>osx</argument>
                                    </arguments>
                                </configuration>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
Romain Bioteau's avatar
Romain Bioteau committed
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
                            <execution>
                                <id>win-x86</id>
                                <phase>install</phase>
                                <configuration>
                                    <arguments>
                                        <argument>build</argument>
                                        <argument>${basedir}/installer/installer_project_win_x86.xml</argument>
                                        <argument>windows</argument>
                                    </arguments>
                                </configuration>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>win-x86_64</id>
                                <phase>install</phase>
                                <configuration>
                                    <arguments>
                                        <argument>build</argument>
                                        <argument>${basedir}/installer/installer_project_win_x86_64.xml</argument>
                                        <argument>windows</argument>
                                    </arguments>
                                </configuration>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
Romain Bioteau's avatar
Romain Bioteau committed
266 267 268 269 270 271 272 273 274 275
                        </executions>
                        <configuration>
                            <executable>${BITROCK_HOME}/bin/builder</executable>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
Romain Bioteau's avatar
Romain Bioteau committed
276
                                <id>linux x86 installer file</id>
Romain Bioteau's avatar
Romain Bioteau committed
277 278 279
                                <phase>prepare-package</phase>
                                <configuration>
                                    <target>
Romain Bioteau's avatar
Romain Bioteau committed
280
                                        <property name="studio.dir" value="${project.build.directory}/products/${productId}/linux/gtk/x86" />
Romain Bioteau's avatar
Romain Bioteau committed
281 282 283
                                        <property name="bitrock.install" value="${project.build.directory}/installers" />
                                        <property name="os_arch" value="32" />
                                        <property file="installer/installer.properties" />
Romain Bioteau's avatar
Romain Bioteau committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
                                        <property name="installer.name" value="${product.short.name}-${product.version}-x86.run" />
                                        <property name="updated.project.file" value="${basedir}/installer/installer_project_linux_x86.xml" />
                                        <ant antfile="createInstallerProject.xml" />
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>linux x86_64 installer file</id>
                                <phase>prepare-package</phase>
                                <configuration>
                                    <target>
                                        <property name="studio.dir" value="${project.build.directory}/products/${productId}/linux/gtk/x86_64" />
                                        <property name="bitrock.install" value="${project.build.directory}/installers" />
                                        <property name="os_arch" value="64" />
                                        <property file="installer/installer.properties" />
                                        <property name="installer.name" value="${product.short.name}-${product.version}-x86_64.run" />
                                        <property name="updated.project.file" value="${basedir}/installer/installer_project_linux_x86_64.xml" />
Romain Bioteau's avatar
Romain Bioteau committed
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
                                        <ant antfile="createInstallerProject.xml" />
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>macosx x86_64 installer file</id>
                                <phase>prepare-package</phase>
                                <configuration>
                                    <target>
                                        <property name="studio.dir" value="${project.build.directory}/products/${productId}/macosx/cocoa/x86_64" />
                                        <property name="bitrock.install" value="${project.build.directory}/installers" />
                                        <property name="os_arch" value="64" />
                                        <property file="installer/installer.properties" />
                                        <property name="installer.name" value="${product.short.name}-${product.version}-x86_64" />
                                        <property name="updated.project.file" value="${basedir}/installer/installer_project_macosx_x86_64.xml" />
                                        <ant antfile="createInstallerProject.xml" />
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
Romain Bioteau's avatar
Romain Bioteau committed
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
                            <execution>
                                <id>windows x86 installer file</id>
                                <phase>prepare-package</phase>
                                <configuration>
                                    <target>
                                        <property name="studio.dir" value="${project.build.directory}/products/${productId}/win32/win32/x86" />
                                        <property name="bitrock.install" value="${project.build.directory}/installers" />
                                        <property name="os_arch" value="32" />
                                        <property file="installer/installer.properties" />
                                        <property name="installer.name" value="${product.short.name}-${product.version}-x86.exe" />
                                        <property name="updated.project.file" value="${basedir}/installer/installer_project_win_x86.xml" />
                                        <ant antfile="createInstallerProject.xml" />
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>windows x86_64 installer file</id>
                                <phase>prepare-package</phase>
                                <configuration>
                                    <target>
                                        <property name="studio.dir" value="${project.build.directory}/products/${productId}/win32/win32/x86_64" />
                                        <property name="bitrock.install" value="${project.build.directory}/installers" />
                                        <property name="os_arch" value="64" />
                                        <property file="installer/installer.properties" />
                                        <property name="installer.name" value="${product.short.name}-${product.version}-x86_64.exe" />
                                        <property name="updated.project.file" value="${basedir}/installer/installer_project_win_x86_64.xml" />
                                        <ant antfile="createInstallerProject.xml" />
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>jre-win-x86</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <tasks>
                                        <taskdef name="if" classname="${if.task}" classpathref="maven.runtime.classpath" />
                                        <available property="jre.present" file="${user.home}/${jre.winx86.url}" />
                                        <if>
                                            <not>
                                                <isset property="jre.present" />
                                            </not>
                                            <then>
                                                <get src="${jre.url}/${jre.winx86.url}.zip" dest="${user.home}" verbose="true" />
                                                <unzip src="${user.home}/${jre.winx86.url}.zip" dest="${user.home}" />
382

Romain Bioteau's avatar
Romain Bioteau committed
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408
                                                <delete file="${user.home}/${jre.winx86.url}.zip" />
                                            </then>
                                        </if>
                                        <copy todir="${project.build.directory}/products/${productId}/win32/win32/x86/jre">
                                            <fileset dir="${user.home}/${jre.winx86.url}/jre" />
                                        </copy>
                                    </tasks>
                                </configuration>
                            </execution>
                            <execution>
                                <id>jre-win-x86-x64</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <tasks>
                                        <taskdef name="if" classname="${if.task}" classpathref="maven.runtime.classpath" />
                                        <available property="jre.present" file="${user.home}/${jre.winx86.x64.url}" />
                                        <if>
                                            <not>
                                                <isset property="jre.present" />
                                            </not>
                                            <then>
                                                <get src="${jre.url}/${jre.winx86.x64.url}.zip" dest="${user.home}" verbose="true" />
                                                <unzip src="${user.home}/${jre.winx86.x64.url}.zip" dest="${user.home}" />
Romain Bioteau's avatar
Romain Bioteau committed
409

Romain Bioteau's avatar
Romain Bioteau committed
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
                                                <delete file="${user.home}/${jre.winx86.x64.url}.zip" />
                                            </then>
                                        </if>
                                        <copy todir="${project.build.directory}/products/${productId}/win32/win32/x86_64/jre">
                                            <fileset dir="${user.home}/${jre.winx86.x64.url}/jre" />
                                        </copy>
                                    </tasks>
                                </configuration>
                            </execution>
                            <execution>
                                <id>jre-linux-x86</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <tasks>
                                        <taskdef name="if" classname="${if.task}" classpathref="maven.runtime.classpath" />
                                        <available property="jre.present" file="${user.home}/${jre.linuxx86.url}" />
                                        <if>
                                            <not>
                                                <isset property="jre.present" />
                                            </not>
                                            <then>
                                                <get src="${jre.url}/${jre.linuxx86.url}.zip" dest="${user.home}" />
                                                <unzip src="${user.home}/${jre.linuxx86.url}.zip" dest="${user.home}" />
Romain Bioteau's avatar
Romain Bioteau committed
436

Romain Bioteau's avatar
Romain Bioteau committed
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462
                                                <delete file="${user.home}/${jre.linuxx86.url}.zip" />
                                            </then>
                                        </if>
                                        <copy todir="${project.build.directory}/products/${productId}/linux/gtk/x86/jre">
                                            <fileset dir="${user.home}/${jre.linuxx86.url}/jre" />
                                        </copy>
                                    </tasks>
                                </configuration>
                            </execution>
                            <execution>
                                <id>jre-linux-x86-64</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <tasks>
                                        <taskdef name="if" classname="${if.task}" classpathref="maven.runtime.classpath" />
                                        <available property="jre.present" file="${user.home}/${jre.linuxx86.x64.url}" />
                                        <if>
                                            <not>
                                                <isset property="jre.present" />
                                            </not>
                                            <then>
                                                <get src="${jre.url}/${jre.linuxx86.x64.url}.zip" dest="${user.home}" />
                                                <unzip src="${user.home}/${jre.linuxx86.x64.url}.zip" dest="${user.home}" />
Romain Bioteau's avatar
Romain Bioteau committed
463

Romain Bioteau's avatar
Romain Bioteau committed
464 465 466 467 468 469 470 471 472
                                                <delete file="${user.home}/${jre.linuxx86.x64.url}.zip" />
                                            </then>
                                        </if>
                                        <copy todir="${project.build.directory}/products/${productId}/linux/gtk/x86_64/jre">
                                            <fileset dir="${user.home}/${jre.linuxx86.x64.url}/jre" />
                                        </copy>
                                    </tasks>
                                </configuration>
                            </execution>
Romain Bioteau's avatar
Romain Bioteau committed
473 474 475 476 477 478 479 480
                            <execution>
                                <id>jre-osx-x86-x64</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <tasks>
Romain Bioteau's avatar
Romain Bioteau committed
481
                                       <get src="${jre.url}/${jre.osx.url}.gz" dest="${project.build.directory}/products/${productId}/macosx/cocoa/x86_64/${jre.osx.url}.gz" />
Romain Bioteau's avatar
Romain Bioteau committed
482 483 484 485 486 487 488 489 490
                                    </tasks>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
Romain Bioteau's avatar
Romain Bioteau committed
491
</project>