Advertisement
aironman

my pom.xml first scala project

Sep 3rd, 2015
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. <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/maven-v4_0_0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>org.glassfish.samples</groupId>
  4. <artifactId>scala-helloworld</artifactId>
  5. <version>1.0-SNAPSHOT</version>
  6. <name>${project.artifactId}</name>
  7. <description>My wonderfull scala app</description>
  8. <inceptionYear>2010</inceptionYear>
  9. <licenses>
  10. <license>
  11. <name>My License</name>
  12. <url>http://....</url>
  13. <distribution>repo</distribution>
  14. </license>
  15. </licenses>
  16.  
  17. <properties>
  18. <maven.compiler.source>1.5</maven.compiler.source>
  19. <maven.compiler.target>1.5</maven.compiler.target>
  20. <encoding>UTF-8</encoding>
  21. <scala.version>2.8.0</scala.version>
  22. <hadoop-hdfs.version>2.5.0-cdh5.2.0</hadoop-hdfs.version>
  23. <hadoop-common.version>2.5.0-cdh5.2.0</hadoop-common.version>
  24. </properties>
  25.  
  26.  
  27. <repositories>
  28. <!--
  29. <repository>
  30. <id>scala-tools.org</id>
  31. <name>Scala-Tools Maven2 Repository</name>
  32. <url>http://scala-tools.org/repo-releases</url>
  33. </repository>
  34. -->
  35. <repository>
  36. <id>Akka repository</id>
  37. <url>http://repo.akka.io/releases</url>
  38. </repository>
  39.  
  40. <repository>
  41. <id>cloudera-repos</id>
  42. <name>Cloudera Repos</name>
  43. <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
  44. </repository>
  45.  
  46. </repositories>
  47.  
  48. <!--
  49. <pluginRepositories>
  50. <pluginRepository>
  51. <id>scala-tools.org</id>
  52. <name>Scala-Tools Maven2 Repository</name>
  53. <url>http://scala-tools.org/repo-releases</url>
  54. </pluginRepository>
  55. </pluginRepositories>
  56. -->
  57. <dependencies>
  58. <dependency>
  59. <groupId>org.scala-lang</groupId>
  60. <artifactId>scala-library</artifactId>
  61. <version>${scala.version}</version>
  62. </dependency>
  63.  
  64. <!-- Test -->
  65. <dependency>
  66. <groupId>junit</groupId>
  67. <artifactId>junit</artifactId>
  68. <version>4.8.1</version>
  69. <scope>test</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.scala-tools.testing</groupId>
  73. <artifactId>specs_${scala.version}</artifactId>
  74. <version>1.6.5</version>
  75. <scope>test</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.scalatest</groupId>
  79. <artifactId>scalatest</artifactId>
  80. <version>1.2</version>
  81. <scope>test</scope>
  82. </dependency>
  83. <!-- necessary to write within HDFS -->
  84. <dependency>
  85. <groupId>org.apache.hadoop</groupId>
  86. <artifactId>hadoop-hdfs</artifactId>
  87. <version>${hadoop-hdfs.version}</version>
  88. </dependency>
  89.  
  90. <dependency>
  91. <groupId>org.apache.hadoop</groupId>
  92. <artifactId>hadoop-common</artifactId>
  93. <version>${hadoop-common.version}</version>
  94. </dependency>
  95. </dependencies>
  96.  
  97. <build>
  98. <sourceDirectory>src/main/scala</sourceDirectory>
  99. <testSourceDirectory>src/test/scala</testSourceDirectory>
  100. <plugins>
  101. <plugin>
  102. <groupId>org.scala-tools</groupId>
  103. <artifactId>maven-scala-plugin</artifactId>
  104. <version>2.15.0</version>
  105. <executions>
  106. <execution>
  107. <goals>
  108. <goal>compile</goal>
  109. <goal>testCompile</goal>
  110. </goals>
  111. <configuration>
  112. <args>
  113. <arg>-make:transitive</arg>
  114. <arg>-dependencyfile</arg>
  115. <arg>${project.build.directory}/.scala_dependencies</arg>
  116. </args>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. <configuration>
  121. <launchers>
  122. <launcher>
  123. <id>sample</id>
  124. <mainClass>org.glassfish.samples.App</mainClass>
  125. <args>
  126. <arg>${basedir}</arg>
  127. </args>
  128. </launcher>
  129. </launchers>
  130. </configuration>
  131.  
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-surefire-plugin</artifactId>
  136. <version>2.6</version>
  137. <configuration>
  138. <useFile>false</useFile>
  139. <disableXmlReport>true</disableXmlReport>
  140. <!-- If you have classpath issue like NoDefClassError,... -->
  141. <!-- useManifestOnlyJar>false</useManifestOnlyJar -->
  142. <includes>
  143. <include>**/*Test.*</include>
  144. <include>**/*Suite.*</include>
  145. </includes>
  146. </configuration>
  147. </plugin>
  148. </plugins>
  149. </build>
  150. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement