Advertisement
Guest User

scalaxb bpmn 2.0 pom

a guest
Nov 15th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.38 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.example</groupId>
  4. <artifactId>scalaxb-bpmn</artifactId>
  5. <version>0.0.1-SNAPSHOT</version>
  6. <name>${project.artifactId}</name>
  7. <description>bpmn scalaxb experiment</description>
  8. <properties>
  9. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  10. <project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
  11.  
  12. <!-- Dependency versions for those which should be consistent -->
  13. <scala.version>2.9.1</scala.version>
  14. <scala.plugin.version>2.15.2</scala.plugin.version>
  15. <resources.plugin.version>2.5</resources.plugin.version>
  16. </properties>
  17. <dependencyManagement>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.scala-lang</groupId>
  21. <artifactId>scala-library</artifactId>
  22. <version>${scala.version}</version>
  23. </dependency>
  24. </dependencies>
  25. </dependencyManagement>
  26. <dependencies>
  27. <dependency>
  28. <groupId>org.scala-lang</groupId>
  29. <artifactId>scala-library</artifactId>
  30. </dependency>
  31. </dependencies>
  32. <build>
  33. <sourceDirectory>src/main/scala</sourceDirectory>
  34. <testSourceDirectory>src/test/scala</testSourceDirectory>
  35. <pluginManagement>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.scalaxb</groupId>
  39. <artifactId>scalaxb-maven-plugin</artifactId>
  40. <version>0.6.6</version>
  41. <configuration>
  42. <packageName>org.example.bpmn</packageName>
  43. <!-- generate into the eclipse project src directory -->
  44. <outputDirectory>${project.basedir}/src/main/scala</outputDirectory>
  45. </configuration>
  46. <executions>
  47. <execution>
  48. <id>scalaxb</id>
  49. <goals>
  50. <goal>generate</goal>
  51. </goals>
  52. </execution>
  53. </executions>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-compiler-plugin</artifactId>
  58. <version>2.3.2</version>
  59. <configuration>
  60. <source>1.6</source>
  61. <target>1.6</target>
  62. </configuration>
  63. </plugin>
  64. <plugin>
  65. <groupId>org.scala-tools</groupId>
  66. <artifactId>maven-scala-plugin</artifactId>
  67. <version>${scala.plugin.version}</version>
  68. <configuration>
  69. <charset>${project.build.sourceEncoding}</charset>
  70. <jvmArgs>
  71. <jvmArg>-Xmx1024m</jvmArg>
  72. <jvmArg>-DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties</jvmArg>
  73. </jvmArgs>
  74. </configuration>
  75. <executions>
  76. <execution>
  77. <goals>
  78. <goal>compile</goal>
  79. <goal>testCompile</goal>
  80. </goals>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-resources-plugin</artifactId>
  87. <version>${resources.plugin.version}</version>
  88. <executions>
  89. <execution>
  90. <id>default-copy-resources</id>
  91. <phase>process-resources</phase>
  92. <goals>
  93. <goal>copy-resources</goal>
  94. </goals>
  95. <configuration>
  96. <overwrite>true</overwrite>
  97. <outputDirectory>${project.build.directory}</outputDirectory>
  98. <resources>
  99. <resource>
  100. <directory>${project.basedir}/src</directory>
  101. <includes>
  102. <include>packageLinkDefs.properties</include>
  103. </includes>
  104. <filtering>true</filtering>
  105. </resource>
  106. </resources>
  107. </configuration>
  108. </execution>
  109. </executions>
  110. </plugin>
  111.  
  112. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  113. <plugin>
  114. <groupId>org.eclipse.m2e</groupId>
  115. <artifactId>lifecycle-mapping</artifactId>
  116. <version>1.0.0</version>
  117. <configuration>
  118. <lifecycleMappingMetadata>
  119. <pluginExecutions>
  120. <pluginExecution>
  121. <pluginExecutionFilter>
  122. <groupId>org.scala-tools</groupId>
  123. <artifactId>maven-scala-plugin</artifactId>
  124. <versionRange>[2.15.2,)</versionRange>
  125. <goals>
  126. <goal>compile</goal>
  127. <goal>testCompile</goal>
  128. </goals>
  129. </pluginExecutionFilter>
  130. <action>
  131. <ignore></ignore>
  132. </action>
  133. </pluginExecution>
  134. <!-- make sure eclipse builds generate source -->
  135. <pluginExecution>
  136. <pluginExecutionFilter>
  137. <groupId>org.scalaxb</groupId>
  138. <artifactId>scalaxb-maven-plugin</artifactId>
  139. <versionRange>[0.6.6,)</versionRange>
  140. <goals>
  141. <goal>generate</goal>
  142. </goals>
  143. </pluginExecutionFilter>
  144. <action>
  145. <execute>
  146. <runOnIncremental>true</runOnIncremental>
  147. </execute>
  148. </action>
  149. </pluginExecution>
  150. </pluginExecutions>
  151. </lifecycleMappingMetadata>
  152. </configuration>
  153. </plugin>
  154. </plugins>
  155. </pluginManagement>
  156. <plugins>
  157. <plugin>
  158. <groupId>org.scala-tools</groupId>
  159. <artifactId>maven-scala-plugin</artifactId>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-resources-plugin</artifactId>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.scalaxb</groupId>
  167. <artifactId>scalaxb-maven-plugin</artifactId>
  168. </plugin>
  169. </plugins>
  170. </build>
  171. </project>
  172.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement