22<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" >
33 <modelVersion >4.0.0</modelVersion >
44 <groupId >net.sansa-stack</groupId >
5- <artifactId >sansa-inference-parent </artifactId >
5+ <artifactId >sansa-inference-parent_ ${scala.binary.version} </artifactId >
66 <version >0.1.0-SNAPSHOT</version >
77 <packaging >pom</packaging >
88 <name >Inference API - Parent</name >
5353 <properties >
5454 <maven .compiler.source>1.8</maven .compiler.source>
5555 <maven .compiler.target>1.8</maven .compiler.target>
56+ <maven .version>3.3.9</maven .version>
5657 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
5758 <scala .version>2.11.8</scala .version>
5859 <scala .binary.version>2.11</scala .binary.version>
6566 <sansa .owl.version>${sansa.stack.version} </sansa .owl.version>
6667 <jsa .subversion>1-SNAPSHOT</jsa .subversion>
6768 <jsa .version>${jena.version} -${jsa.subversion} </jsa .version>
69+ <PermGen >64m</PermGen >
70+ <MaxPermGen >512m</MaxPermGen >
71+ <CodeCacheSize >512m</CodeCacheSize >
6872 </properties >
6973
7074 <dependencyManagement >
155159 <dependency >
156160 <groupId >com.assembla.scala-incubator</groupId >
157161 <artifactId >graph-core_${scala.binary.version}</artifactId >
158- <version >1.11 .0</version >
162+ <version >1.10 .0</version >
159163 </dependency >
160164 <dependency >
161165 <groupId >com.assembla.scala-incubator</groupId >
162166 <artifactId >graph-dot_${scala.binary.version}</artifactId >
163- <version >1.11 .0</version >
167+ <version >1.9 .0</version >
164168 </dependency >
165169 <dependency >
166170 <groupId >org.jgrapht</groupId >
246250 <goal >testCompile</goal >
247251 </goals >
248252 <configuration >
253+ <scalaVersion >${scala.version} </scalaVersion >
254+ <recompileMode >incremental</recompileMode >
255+ <useZincServer >true</useZincServer >
249256 <args >
250- <!-- <arg>-make:transitive</arg>-->
257+ <arg >-unchecked</arg >
258+ <arg >-deprecation</arg >
259+ <arg >-feature</arg >
251260 <arg >-dependencyfile</arg >
252261 <arg >${project.build.directory} /.scala_dependencies</arg >
253262 </args >
263+ <jvmArgs >
264+ <jvmArg >-Xms1024m</jvmArg >
265+ <jvmArg >-Xmx1024m</jvmArg >
266+ <jvmArg >-XX:PermSize=${PermGen} </jvmArg >
267+ <jvmArg >-XX:MaxPermSize=${MaxPermGen} </jvmArg >
268+ <jvmArg >-XX:ReservedCodeCacheSize=${CodeCacheSize} </jvmArg >
269+ </jvmArgs >
270+ <javacArgs >
271+ <javacArg >-source</javacArg >
272+ <javacArg >${java.version} </javacArg >
273+ <javacArg >-target</javacArg >
274+ <javacArg >${java.version} </javacArg >
275+ <javacArg >-Xlint:all,-serial,-path</javacArg >
276+ </javacArgs >
277+
254278 </configuration >
255279 </execution >
256280 </executions >
262286
263287 <plugin >
264288 <artifactId >maven-compiler-plugin</artifactId >
265- <version >3.5.1 </version >
289+ <version >3.6.0 </version >
266290 <configuration >
267291 <source >${maven.compiler.source} </source >
268292 <target >${maven.compiler.target} </target >
290314 <artifactId >gitflow-maven-plugin</artifactId >
291315 <version >1.3.1</version >
292316 </plugin >
317+
318+ <plugin >
319+ <groupId >org.apache.maven.plugins</groupId >
320+ <artifactId >maven-enforcer-plugin</artifactId >
321+ <version >1.4.1</version >
322+ <executions >
323+ <execution >
324+ <id >enforce-versions</id >
325+ <goals >
326+ <goal >enforce</goal >
327+ </goals >
328+ <configuration >
329+ <rules >
330+ <requireMavenVersion >
331+ <version >${maven.version} </version >
332+ </requireMavenVersion >
333+ <requireJavaVersion >
334+ <version >${java.version} </version >
335+ </requireJavaVersion >
336+ <bannedDependencies >
337+ <excludes >
338+ <!--
339+ Akka depends on io.netty:netty, which puts classes under the org.jboss.netty
340+ package. This conflicts with the classes in org.jboss.netty:netty
341+ artifact, so we have to ban that artifact here. In Netty 4.x, the classes
342+ are under the io.netty package, so it's fine for us to depend on both
343+ io.netty:netty and io.netty:netty-all.
344+ -->
345+ <exclude >org.jboss.netty</exclude >
346+ <exclude >org.codehaus.groovy</exclude >
347+ </excludes >
348+ <searchTransitive >true</searchTransitive >
349+ </bannedDependencies >
350+ </rules >
351+ </configuration >
352+ </execution >
353+ </executions >
354+ </plugin >
355+
356+ <plugin >
357+ <groupId >org.codehaus.mojo</groupId >
358+ <artifactId >build-helper-maven-plugin</artifactId >
359+ <version >1.5</version >
360+ <executions >
361+ <execution >
362+ <id >add-source</id >
363+ <phase >generate-sources</phase >
364+ <goals >
365+ <goal >add-source</goal >
366+ </goals >
367+ <configuration >
368+ <sources >
369+ <source >src/main/scala_${scala.binary.version} </source >
370+ </sources >
371+ </configuration >
372+ </execution >
373+ </executions >
374+ </plugin >
293375 </plugins >
294376 </pluginManagement >
295377 </build >
324406 </repository >
325407 </repositories >
326408
409+ <profiles >
410+ <profile >
411+ <id >scala-2.10</id >
412+ <activation >
413+ <property ><name >scala-2.10</name ></property >
414+ </activation >
415+ <properties >
416+ <scala .version>2.10.6</scala .version>
417+ <scala .binary.version>2.10</scala .binary.version>
418+ <jline .version>${scala.version} </jline .version>
419+ <jline .groupid>org.scala-lang</jline .groupid>
420+ </properties >
421+ <build >
422+ <plugins >
423+ <plugin >
424+ <groupId >org.apache.maven.plugins</groupId >
425+ <artifactId >maven-enforcer-plugin</artifactId >
426+ <executions >
427+ <execution >
428+ <id >enforce-versions</id >
429+ <goals >
430+ <goal >enforce</goal >
431+ </goals >
432+ <configuration >
433+ <rules >
434+ <bannedDependencies >
435+ <excludes combine.children=" append" >
436+ <exclude >*:*_2.11</exclude >
437+ </excludes >
438+ </bannedDependencies >
439+ </rules >
440+ </configuration >
441+ </execution >
442+ </executions >
443+ </plugin >
444+ </plugins >
445+ </build >
446+ </profile >
447+ <profile >
448+ <id >scala-2.11</id >
449+ <activation >
450+ <property ><name >!scala-2.10</name ></property >
451+ </activation >
452+ <properties >
453+ <scala .version>2.11.8</scala .version>
454+ <scala .binary.version>2.11</scala .binary.version>
455+ <jline .version>2.12.1</jline .version>
456+ <jline .groupid>jline</jline .groupid>
457+ </properties >
458+ <build >
459+ <plugins >
460+ <plugin >
461+ <groupId >org.apache.maven.plugins</groupId >
462+ <artifactId >maven-enforcer-plugin</artifactId >
463+ <executions >
464+ <execution >
465+ <id >enforce-versions</id >
466+ <goals >
467+ <goal >enforce</goal >
468+ </goals >
469+ <configuration >
470+ <rules >
471+ <bannedDependencies >
472+ <excludes combine.children=" append" >
473+ <exclude >*:*_2.10</exclude >
474+ </excludes >
475+ </bannedDependencies >
476+ </rules >
477+ </configuration >
478+ </execution >
479+ </executions >
480+ </plugin >
481+ </plugins >
482+ </build >
483+ </profile >
484+
485+ </profiles >
486+
487+
327488</project >
0 commit comments