用Java在各种框架下编译Scala项目

欢迎进入Java社区论坛,与200万技术人员互动交流 >>进入

  87. <version>3.4.0.GA</version>

  88. </dependency>

  89. <dependency>

  90. <groupId>org.springframework</groupId>

  91. <artifactId>spring-orm</artifactId>

  92. </dependency>

  93. <dependency>

  94. <groupId>com.ttdev</groupId>

  95. <artifactId>wpt-core</artifactId>

  96. <version>1.5.2-SNAPSHOT</version>

  97. <scope>test</scope>

  98. </dependency>

  99. <dependency>

  100. <groupId>com.ttdev</groupId>

  101. <artifactId>wpt-runtime-spring</artifactId>

  102. <version>1.5.2-SNAPSHOT</version>

  103.

  104. </dependency>

  105. <dependency>

  106. <groupId>javax</groupId>

  107. <artifactId>javaee-web-api</artifactId>

  108.

  109. <version>6.0</version>

  110. <scope>provided</scope>

  111. </dependency>

  112. <dependency>

  113. <groupId>junit</groupId>

  114. <artifactId>junit</artifactId>

  115. <version>3.8.2</version>

  116. <scope>test</scope>

  117. </dependency>

  118. <dependency>

  119. <groupId>org.scala-lang</groupId>

  120. <artifactId>scala-library</artifactId>

  121. <version>2.8.0.RC3</version>

  122. </dependency>

  123. <dependency>

  124. <groupId>org.apache.wicket</groupId>

  125. <artifactId>wicket</artifactId>

  126. <version>1.4.9</version>

  127. </dependency>

  128. <dependency>

  129. <groupId>org.slf4j</groupId>

  130. <artifactId>slf4j-log4j12</artifactId>

  131. <version>1.4.2</version>

  132. </dependency>

  133. </dependencies>

  134. <build>

  135. <pluginManagement>

  136. <plugins>

  137. <plugin>

  138. <groupId>org.apache.maven.plugins</groupId>

  139.

  140. <artifactId>maven-compiler-plugin</artifactId>

  141. <version>2.0.2</version>

  142.

  143. </plugin>

  144. <plugin>

  145. <groupId>org.scala-tools</groupId>

  146. <artifactId>maven-scala-plugin</artifactId>

  147.

  148. <version>2.9.1</version>

  149. </plugin>

  150. </plugins>

  151. </pluginManagement>

  152. <plugins>

  153. <plugin>

  154. <groupId>org.apache.maven.plugins</groupId>

  155. <artifactId>maven-compiler-plugin</artifactId>

  156.

  157. <executions>

  158. <execution>

  159. <phase>compile</phase>

  160. <goals>

  161. <goal>compile</goal>

  162. </goals>

  163. </execution>

  164. </executions>

  165. <configuration>

  166. <source>1.6</source>

  167. <target>1.6</target>

  168. </configuration>

  169. </plugin>

  170. <plugin>

  171. <groupId>org.apache.maven.plugins</groupId>

  172. <artifactId>maven-war-plugin</artifactId>

  173.

  174. <version>2.1-beta-1</version>

  175. <configuration>

  176. <failOnMissingWebXml>false</failOnMissingWebXml>

  177. </configuration>

  178.

  179. </plugin>

  180. <plugin>

  181. <groupId>org.scala-tools</groupId>

  182. <artifactId>maven-scala-plugin</artifactId>

  183.

  184. <executions>

  185. <execution>

  186. <id>scala-compile-first</id>

  187. <phase>process-resources</phase>

  188.

  189. <goals>

  190. <goal>add-source</goal>

  191.

  192. <goal>compile</goal>

  193. </goals>

  194. </execution>

  195. <execution>

  196. <id>scala-test-compile</id>

  197. <phase>process-test-resources</phase>

  198.

  199. <goals>

  200. <goal>testCompile</goal>

  201.

  202. </goals>

  203. </execution>

  204. </executions>

  205. </plugin>

  206. </plugins>

  207. <finalName>myapp</finalName>

  208. </build>

  209.</project>

[1][2][3][4]

既有美妙的风景,也会有称不上景只有风的地方。

用Java在各种框架下编译Scala项目

相关文章:

你感兴趣的文章:

标签云: