code_junkie

Building a scala app with maven (that has java source mixed in)

Nov 12th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 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>demo</groupId>
  4. <artifactId>scala-java-app</artifactId>
  5. <version>0.0.1-SNAPSHOT</version>
  6. <packaging>jar</packaging>
  7. <name>scala-java-app</name>
  8. <repositories>
  9. <repository>
  10. <id>scala-tools.org</id>
  11. <name>Scala-tools Maven2 Repository</name>
  12. <url>http://scala-tools.org/repo-releases</url>
  13. </repository>
  14. </repositories>
  15. <pluginRepositories>
  16. <pluginRepository>
  17. <id>scala-tools.org</id>
  18. <name>Scala-tools Maven2 Repository</name>
  19. <url>http://scala-tools.org/repo-releases</url>
  20. </pluginRepository>
  21. </pluginRepositories>
  22. <build>
  23. <plugins>
  24. <plugin>
  25. <groupId>org.scala-tools</groupId>
  26. <artifactId>maven-scala-plugin</artifactId>
  27. <executions>
  28.  
  29. <execution>
  30. <id>compile</id>
  31. <goals>
  32. <goal>compile</goal>
  33. </goals>
  34. <phase>compile</phase>
  35. </execution>
  36. <execution>
  37. <id>test-compile</id>
  38. <goals>
  39. <goal>testCompile</goal>
  40. </goals>
  41. <phase>test-compile</phase>
  42. </execution>
  43. <execution>
  44. <phase>process-resources</phase>
  45. <goals>
  46. <goal>compile</goal>
  47. </goals>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <plugin>
  52. <artifactId>maven-compiler-plugin</artifactId>
  53. <configuration>
  54. <source>1.5</source>
  55. <target>1.5</target>
  56. </configuration>
  57. </plugin>
  58. </plugins>
  59. </build>
  60. <dependencies>
  61. <dependency>
  62. <groupId>org.scala-lang</groupId>
  63. <artifactId>scala-library</artifactId>
  64. <version>2.7.2</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>junit</groupId>
  68. <artifactId>junit</artifactId>
  69. <version>3.8.1</version>
  70. <scope>test</scope>
  71. </dependency>
  72. </dependencies>
  73.  
  74. src/
  75. |-- main
  76. | |-- bin
  77. | |-- sh
  78. | |-- sql
  79. | |-- scala
  80. | |-- java
  81. | `-- resources
  82. |-- site
  83. ...
Add Comment
Please, Sign In to add comment