Skip to content
pom.xml 14.3 KiB
Newer Older
<?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>
	<groupId>org.bonitasoft.studio</groupId>
	<artifactId>studio</artifactId>
Bonita CI's avatar
Bonita CI committed
	<version>7.3.0-SNAPSHOT</version>
	<packaging>pom</packaging>
	<name>Bonita Studio</name>
	<properties>
		<!--forceContextQualifier -->
		<tychoVersion>0.22.0</tychoVersion>
		<tychoExtrasVersion>0.22.0</tychoExtrasVersion>
		<os-jvm-flags></os-jvm-flags>
Bonita CI's avatar
Bonita CI committed
		<bundle.version>7.3.0-SNAPSHOT</bundle.version>
		<ui.designer.version>1.3.6</ui.designer.version>
Bonita CI's avatar
Bonita CI committed
		<engine.version>7.3.0-SNAPSHOT</engine.version>
		<connector.version>6.1.1</connector.version>
		<simulation.version>6.1.0</simulation.version>
Bonita CI's avatar
Bonita CI committed
		<filters.version>7.3.0-SNAPSHOT</filters.version>
Romain Bioteau's avatar
Romain Bioteau committed
		<theme.builder.version>1.1.0</theme.builder.version>
		<watchdog.version>7.2.0</watchdog.version>
Romain Bioteau's avatar
Romain Bioteau committed
		<p2MirrorUrl>http://repositories.rd.lan/p2/7.2</p2MirrorUrl>
		<jacoco.version>0.7.2.201409121644</jacoco.version>
		<sonar.language>java</sonar.language>
		<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
		<sonar.junit.reportsPath>target/surefire-reports/</sonar.junit.reportsPath>
		<sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath>
		<sonar.jacoco.itReportPath>${project.basedir}/../../../target/jacoco-it.exec</sonar.jacoco.itReportPath>
		<!-- Skip generated code -->
		<sonar.skippedModules>org.bonitasoft.studio.model,org.bonitasoft.studio.model.edit,org.bonitasoft.studio.diagram,org.bonitasoft.studio.diagram.form,org.bonitasoft.studio.connector.model,org.bonitasoft.studio.connector.model.edit,org.bonitasoft.studio.tests-utils</sonar.skippedModules>
		<sonar.exclusions>src/org/w3/**/*,src/org/omg/**/*,src/org/wfmc/**/*,src/org/jbpm/**/*,**/Messages.java,file:**/src-gen/**/*,src/org/bonitasoft/studio/connector/model/definition/provider/**/*,src/org/bonitasoft/studio/connector/model/implementation/provider/**/*,src/org/bonitasoft/studio/actors/model/organization/**/*,src/org/bonitasoft/studio/validators/descriptor/validator/**/*</sonar.exclusions>
		<sonar.skipDesign>true</sonar.skipDesign><!-- Takes too much time -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<modules>
		<module>platform</module>
		<module>patched-plugins</module>
		<module>bundles</module>
		<module>translations</module>
		<module>tests-dependencies</module>
		<module>tests</module>
		<module>all-in-one</module>
	</modules>


	<build>
		<pluginManagement>
			<plugins>
Romain Bioteau's avatar
Romain Bioteau committed
                    <groupId>org.bonitasoft.maven</groupId>
                    <artifactId>image-overlay-plugin</artifactId>
                    <version>1.0.1</version>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.5.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.19.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-clean-plugin</artifactId>
					<version>2.5</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-versions-plugin</artifactId>
					<version>${tychoVersion}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho.extras</groupId>
					<artifactId>tycho-eclipserun-plugin</artifactId>
					<version>${tychoExtrasVersion}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-packaging-plugin</artifactId>
					<version>${tychoVersion}</version>
					<configuration>
						<strictBinIncludes>false</strictBinIncludes>
						<strictVersions>false</strictVersions>
Romain Bioteau's avatar
Romain Bioteau committed
                        <archive>
                           <addMavenDescriptor>false</addMavenDescriptor>
                        </archive>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.sonatype.tycho</groupId>
                    <artifactId>maven-osgi-compiler-plugin</artifactId>
                    <inherited>true</inherited>
                    <version>${tychoVersion}</version>
                    <configuration>
                        <source>7.0</source>
                        <target>7.0</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.8</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.7</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <version>1.2.1</version>
                </plugin>
                <plugin>
                    <groupId>org.eclipse.tycho</groupId>
                    <artifactId>tycho-surefire-plugin</artifactId>
                    <version>${tycho.version}</version>
                    <configuration>
                        <useUIHarness>false</useUIHarness>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>${jacoco.version}</version>
                </plugin>
                <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.jacoco</groupId>
                                        <artifactId>
                                            jacoco-maven-plugin
                                        </artifactId>
                                        <versionRange>
                                            [${jacoco.version},)
                                        </versionRange>
                                        <goals>
                                            <goal>prepare-agent</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore></ignore>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <configuration>
                    <includes>
                        <include>org.bonitasoft.studio.*</include>
                    </includes>
                    <append>true</append>
                </configuration>
                <executions>
                    <execution>
                        <id>pre-test</id>
                        <phase>initialize</phase>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>post-test</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-versions-plugin</artifactId>
            </plugin>
            <!-- enable tycho build extension -->
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-maven-plugin</artifactId>
                <version>${tychoVersion}</version>
                <extensions>true</extensions>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tychoVersion}</version>
                <configuration>
Romain Bioteau's avatar
Romain Bioteau committed
                    <executionEnvironment>JavaSE-1.7</executionEnvironment>
                    <environments>
                        <environment>
                            <os>linux</os>
                            <ws>gtk</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>linux</os>
                            <ws>gtk</ws>
                            <arch>x86</arch>
                        </environment>
                        <environment>
                            <os>macosx</os>
                            <ws>cocoa</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86</arch>
                        </environment>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86_64</arch>
                        </environment>
                    </environments>
                    <target>
                        <artifact>
                            <groupId>org.bonitasoft.studio</groupId>
                            <artifactId>platform</artifactId>
Bonita CI's avatar
Bonita CI committed
                            <version>7.3.0-SNAPSHOT</version>
                        </artifact>
                    </target>
                    <filters>
                        <filter>
                            <type>eclipse-plugin</type>
                            <id>org.bonitasoft.studioEx.console.libs</id>
                            <removeAll />
                        </filter>
                    </filters>
                </configuration>
            </plugin>
        </plugins>
    </build>

	<profiles>
		<profile>
			<id>macosx-jvm-flags</id>
			<activation>
				<os>
					<family>mac</family>
				</os>
			</activation>
			<properties>
				<os-jvm-flags>-XstartOnFirstThread</os-jvm-flags>
			</properties>
		</profile>		
		<profile>
			<id>tag-trunk</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
								<id>tag-trunk</id>
								<phase>pre-clean</phase>
								<configuration>
									<tasks>
										<echo>Updating pom version from ${current.version} to ${tag.version}</echo>
										<replace token="&lt;version&gt;${current.version}&lt;/version&gt;" value="&lt;version&gt;${tag.version}&lt;/version&gt;"
											file="${basedir}/pom.xml" />
									</tasks>
								</configuration>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>revert-trunk-snapshot</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
								<id>revert-trunk-snapshot</id>
								<phase>pre-clean</phase>
								<configuration>
									<tasks>
										<echo>Updating pom version from ${tag.version} to ${current.version}</echo>
										<replace token="&lt;version&gt;${tag.version}&lt;/version&gt;" value="&lt;version&gt;${current.version}&lt;/version&gt;"
											file="${basedir}/pom.xml" />
									</tasks>
								</configuration>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>upgrade-trunk-snapshot</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
								<id>upgrade-trunk-snapshot</id>
								<phase>pre-clean</phase>
								<configuration>
									<tasks>
										<echo>Updating pom version from ${current.version} to ${next.snapshot.version}</echo>
										<replace token="&lt;version&gt;${current.version}&lt;/version&gt;" value="&lt;version&gt;${next.snapshot.version}&lt;/version&gt;"
											file="${basedir}/pom.xml" />
									</tasks>
								</configuration>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
		<id>StaticCodeAnalysis</id>
		<properties>
			<maven.pmd.cpd.enable>true</maven.pmd.cpd.enable>
			<aggregate>true</aggregate>
		</properties>
		<reporting>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-pmd-plugin</artifactId>
					<version>3.0.1</version>
				</plugin>
			</plugins>
		</reporting>
	</profile>
	</profiles>


</project>