pom.xml 10.2 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>
	<groupId>org.bonitasoft.studio</groupId>
	<artifactId>studio</artifactId>
bonita-ci's avatar
bonita-ci committed
8
	<version>6.2.0-SNAPSHOT</version>
Romain Bioteau's avatar
Romain Bioteau committed
9
	<packaging>pom</packaging>
10
	<name>Bonita Studio</name>
Romain Bioteau's avatar
Romain Bioteau committed
11
	<properties>
bonita-ci's avatar
bonita-ci committed
12
		<!--forceContextQualifier-->
13 14
		<tychoVersion>0.18.0</tychoVersion>
		<tychoExtrasVersion>0.18.0</tychoExtrasVersion>
Romain Bioteau's avatar
Romain Bioteau committed
15
		<os-jvm-flags></os-jvm-flags>
16 17
		<bundle.version>6.2.0-SNPASHOT</bundle.version>
		<engine.version>6.2.0-SNAPSHOT</engine.version>
18
		<connector.version>6.1.1</connector.version>
Romain Bioteau's avatar
Romain Bioteau committed
19
		<simulation.version>6.1.0</simulation.version>
20
		<filters.version>6.2.0-008</filters.version>
21
		<theme.builder.version>6.1.0</theme.builder.version>
Romain Bioteau's avatar
Romain Bioteau committed
22
		<watchdog.version>6.0.1</watchdog.version>
23
		<p2MirrorUrl>http://repositories.rd.lan/p2/6.2</p2MirrorUrl>
24
		<tycho.testArgLine></tycho.testArgLine>
Aurelien Pupier's avatar
Aurelien Pupier committed
25
		<sonar.jacoco.itReportPath>C:\jacoco.exec</sonar.jacoco.itReportPath>
Romain Bioteau's avatar
Romain Bioteau committed
26 27 28
	</properties>

	<modules>
29
		<module>platform</module>
Romain Bioteau's avatar
Romain Bioteau committed
30
		<module>patched-plugins</module>
31
		<module>bundles</module>
Romain Bioteau's avatar
Romain Bioteau committed
32
		<module>translations</module>
Romain Bioteau's avatar
Romain Bioteau committed
33
		<module>tests</module>
34
		<module>all-in-one</module>
Romain Bioteau's avatar
Romain Bioteau committed
35 36 37 38 39 40
	</modules>


	<build>
		<pluginManagement>
			<plugins>
Romain Bioteau's avatar
Romain Bioteau committed
41
				<plugin>
Aurelien Pupier's avatar
Aurelien Pupier committed
42
					<groupId>org.apache.maven.plugins</groupId>
Romain Bioteau's avatar
Romain Bioteau committed
43 44 45
					<artifactId>maven-clean-plugin</artifactId>
					<version>2.5</version>
				</plugin>
Romain Bioteau's avatar
Romain Bioteau committed
46 47 48
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-versions-plugin</artifactId>
Romain Bioteau's avatar
Romain Bioteau committed
49
					<version>${tychoVersion}</version>
Romain Bioteau's avatar
Romain Bioteau committed
50
				</plugin>
Romain Bioteau's avatar
Romain Bioteau committed
51 52 53 54 55
				<plugin>
					<groupId>org.eclipse.tycho.extras</groupId>
					<artifactId>tycho-eclipserun-plugin</artifactId>
					<version>${tychoExtrasVersion}</version>
				</plugin>
Romain Bioteau's avatar
Romain Bioteau committed
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
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-packaging-plugin</artifactId>
					<version>${tychoVersion}</version>
					<configuration>
						<strictBinIncludes>false</strictBinIncludes>
						<strictVersions>false</strictVersions>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.sonatype.tycho</groupId>
					<artifactId>maven-osgi-compiler-plugin</artifactId>
					<inherited>true</inherited>
					<version>${tychoVersion}</version>
					<configuration>
						<source>6.0</source>
						<target>6.0</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.6</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
82 83 84 85 86
					<artifactId>maven-assembly-plugin</artifactId>
					<version>2.4</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
Romain Bioteau's avatar
Romain Bioteau committed
87 88 89
					<artifactId>maven-antrun-plugin</artifactId>
					<version>1.7</version>
				</plugin>
Romain Bioteau's avatar
Romain Bioteau committed
90 91 92 93 94
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.2.1</version>
				</plugin>
Arelie Zara's avatar
Arelie Zara committed
95 96 97 98 99 100 101 102
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-surefire-plugin</artifactId>
					<version>${tycho.version}</version>
					<configuration>
						<useUIHarness>false</useUIHarness>
					</configuration>
				</plugin>
Arelie Zara's avatar
Arelie Zara committed
103 104 105 106 107
				<plugin>
					<groupId>org.jacoco</groupId>
					<artifactId>jacoco-maven-plugin</artifactId>
					<version>0.6.0.201210061924</version>
				</plugin>
Arelie Zara's avatar
Arelie Zara committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
				<!--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>
											[0.6.0.201210061924,)
										</versionRange>
										<goals>
											<goal>prepare-agent</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
Romain Bioteau's avatar
Romain Bioteau committed
137 138 139 140 141
			</plugins>
		</pluginManagement>


		<plugins>
Romain Bioteau's avatar
Romain Bioteau committed
142 143 144 145
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-versions-plugin</artifactId>
			</plugin>
Romain Bioteau's avatar
Romain Bioteau committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
			<!-- 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>
					<executionEnvironment>JavaSE-1.6</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</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>
Romain Bioteau's avatar
Romain Bioteau committed
193
							<groupId>org.bonitasoft.studio</groupId>
Romain Bioteau's avatar
Romain Bioteau committed
194
							<artifactId>platform</artifactId>
bonita-ci's avatar
bonita-ci committed
195
							<version>6.2.0-SNAPSHOT</version>
Romain Bioteau's avatar
Romain Bioteau committed
196 197
						</artifact>
					</target>
Romain Bioteau's avatar
Romain Bioteau committed
198 199 200 201 202 203
					<filters>
						<filter>
							<type>eclipse-plugin</type>
							<id>org.bonitasoft.studioEx.console.libs</id>
							<removeAll />
						</filter>
Romain Bioteau's avatar
Romain Bioteau committed
204
						
Romain Bioteau's avatar
Romain Bioteau committed
205
					</filters>
Romain Bioteau's avatar
Romain Bioteau committed
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
				</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>
Romain Bioteau's avatar
Romain Bioteau committed
223

224
		<profile>
225
			<id>codeCoverage</id>
226
			<modules>
Aurelien Pupier's avatar
Aurelien Pupier committed
227
				<module>bundles</module>
228 229
				<module>tests</module>
			</modules>
230 231
			<properties>
    			<!-- Properties to enable jacoco code coverage analysis -->
Aurelien Pupier's avatar
Aurelien Pupier committed
232
    			<jacoco.version>0.6.3.201306030806</jacoco.version>
233 234
    			<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
    			<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Aurelien Pupier's avatar
Aurelien Pupier committed
235
   				<!-- <sonar.jacoco.itReportPath>../target/jacoco.exec</sonar.jacoco.itReportPath> -->
236 237 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
  			</properties>
			<build>
			<plugins>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<configuration>
					<destFile>${sonar.jacoco.reportPath}</destFile>
				</configuration>
				<executions>
					<execution>
						<id>prepare-agent</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
						 <configuration>
              				<!-- Where to put jacoco coverage report -->
              				<destFile>${sonar.jacoco.itReportPath}</destFile>
              				<includes>
								<include>org.bonitasoft.studio.*</include>
							</includes>
							<append>true</append>
            			</configuration>
					</execution>
				</executions>
			</plugin>
			</plugins>
			</build>
264
		</profile>
Romain Bioteau's avatar
Romain Bioteau committed
265 266
		
		<profile>
Romain Bioteau's avatar
Romain Bioteau committed
267
			<id>tag-trunk</id>
Romain Bioteau's avatar
Romain Bioteau committed
268 269 270 271 272 273 274
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
Romain Bioteau's avatar
Romain Bioteau committed
275
								<id>tag-trunk</id>
Romain Bioteau's avatar
Romain Bioteau committed
276
								<phase>pre-clean</phase>
Romain Bioteau's avatar
Romain Bioteau committed
277 278 279
								<configuration>
									<tasks>
										<echo>Updating pom version from ${current.version} to ${tag.version}</echo>
Romain Bioteau's avatar
Romain Bioteau committed
280
										<replace token="&lt;version&gt;${current.version}&lt;/version&gt;" value="&lt;version&gt;${tag.version}&lt;/version&gt;"
Romain Bioteau's avatar
Romain Bioteau committed
281 282 283 284 285 286 287 288 289 290 291 292
											file="${basedir}/pom.xml" />
									</tasks>
								</configuration>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
Romain Bioteau's avatar
Romain Bioteau committed
293
		<profile>
Romain Bioteau's avatar
Romain Bioteau committed
294
			<id>revert-trunk-snapshot</id>
Romain Bioteau's avatar
Romain Bioteau committed
295 296 297 298 299 300 301
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
Romain Bioteau's avatar
Romain Bioteau committed
302
								<id>revert-trunk-snapshot</id>
Romain Bioteau's avatar
Romain Bioteau committed
303
								<phase>pre-clean</phase>
Romain Bioteau's avatar
Romain Bioteau committed
304 305 306
								<configuration>
									<tasks>
										<echo>Updating pom version from ${tag.version} to ${current.version}</echo>
Romain Bioteau's avatar
Romain Bioteau committed
307
										<replace token="&lt;version&gt;${tag.version}&lt;/version&gt;" value="&lt;version&gt;${current.version}&lt;/version&gt;"
Romain Bioteau's avatar
Romain Bioteau committed
308 309 310 311 312 313 314 315 316 317 318 319
											file="${basedir}/pom.xml" />
									</tasks>
								</configuration>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
Romain Bioteau's avatar
Romain Bioteau committed
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346
		<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>
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
		<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>
Romain Bioteau's avatar
Romain Bioteau committed
363 364 365 366
	</profiles>


</project>