Last active
February 16, 2017 06:08
-
-
Save codingmiao/90e7f8482892e66ce7402103b2fbf874 to your computer and use it in GitHub Desktop.
maven中配置scala依赖和插件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.wowtools.lean-opencv</groupId> | |
<artifactId>opencvcookbook</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.bytedeco</groupId> | |
<artifactId>javacv-platform</artifactId> | |
<version>1.3</version> | |
</dependency> | |
<dependency> | |
<!-- 必选 --> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>2.12.1</version> | |
</dependency> | |
<dependency> | |
<!-- 可选 scala-swing依赖 --> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-swing</artifactId> | |
<version>2.11.0-M7</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<!-- 编译scala的插件 --> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.8.1</version> | |
<configuration> | |
<includes> | |
<include>**/*.java</include> | |
<include>**/*.scala</include> | |
</includes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.scala-tools</groupId> | |
<artifactId>maven-scala-plugin</artifactId> | |
<version>2.15.2</version> | |
<executions> | |
<execution> | |
<id>scala-compile-first</id> | |
<phase>process-resources</phase> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>scala-test-compile</id> | |
<phase>process-test-resources</phase> | |
<goals> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment