Scala和Java混合项目搭建:(Eclipse)

项目结构:

pom.xml:

4.0.0

com.citi.sky

AkkaPJ

0.0.1-SNAPSHOT

jar

AkkaPJ

http://maven.apache.org

UTF-8

1.8

2.11.8

2.5.9

3.0.4

junit

junit

4.12

test

org.scala-lang

scala-library

${scala.version}

org.scala-lang

scala-compiler

${scala.version}

org.scala-lang

scala-reflect

${scala.version}

com.typesafe.akka

akka-actor_2.11

${akka.version}

com.typesafe.akka

akka-testkit_2.11

${akka.version}

test

org.scalatest

scalatest_2.11

${scalatest.version}

test

org.codehaus.mojo

build-helper-maven-plugin

3.0.0

add-source

generate-sources

add-source

${basedir}/src/main/java

${basedir}/src/main/scala

add-test-source

generate-sources

add-test-source

${basedir}/src/test/java

${basedir}/src/test/scala

add-resource

generate-sources

add-resource

${basedir}/src/main/resources

true

**/*.java

add-test-resource

generate-sources

add-test-resource

${basedir}/src/test/resources

true

**/*.java

org.apache.maven.plugins

maven-compiler-plugin

3.1

${jdk.version}

${jdk.version}

${project.build.sourceEncoding}

org.apache.maven.plugins

maven-shade-plugin

3.0.0

false

package

shade

true

allInOne

*:*

*:*

META-INF/*.SF

META-INF/*.DSA

META-INF/*.RSA

com.citi.dw.client.ClientTest

net.alchim31.maven

scala-maven-plugin

3.3.1

compile-scala

compile

add-source

compile

test-compile-scala

test-compile

add-source

testCompile

${scala.version}

.classpath:

Log:

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building AkkaPJ 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ AkkaPJ ---

[INFO] Deleting E:\git\AkkaPJ\target

[INFO]

[INFO] --- build-helper-maven-plugin:3.0.0:add-source (add-source) @ AkkaPJ ---

[INFO] Source directory: E:\git\AkkaPJ\src\main\java added.

[INFO] Source directory: E:\git\AkkaPJ\src\main\scala added.

[INFO]

[INFO] --- build-helper-maven-plugin:3.0.0:add-test-source (add-test-source) @ AkkaPJ ---

[INFO] Test Source directory: E:\git\AkkaPJ\src\test\java added.

[INFO] Test Source directory: E:\git\AkkaPJ\src\test\scala added.

[INFO]

[INFO] --- build-helper-maven-plugin:3.0.0:add-resource (add-resource) @ AkkaPJ ---

[INFO]

[INFO] --- build-helper-maven-plugin:3.0.0:add-test-resource (add-test-resource) @ AkkaPJ ---

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ AkkaPJ ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 1 resource

[INFO] Copying 1 resource

[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ AkkaPJ ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 2 source files to E:\git\AkkaPJ\target\classes

[INFO]

[INFO] --- scala-maven-plugin:3.3.1:add-source (compile-scala) @ AkkaPJ ---

[INFO]

[INFO] --- scala-maven-plugin:3.3.1:compile (compile-scala) @ AkkaPJ ---

[WARNING] Expected all dependencies to require Scala version: 2.11.8

[WARNING] com.citi.sky:AkkaPJ:0.0.1-SNAPSHOT requires scala version: 2.11.8

[WARNING] com.citi.sky:AkkaPJ:0.0.1-SNAPSHOT requires scala version: 2.11.8

[WARNING] org.scala-lang:scala-compiler:2.11.8 requires scala version: 2.11.8

[WARNING] org.scala-lang.modules:scala-xml_2.11:1.0.4 requires scala version: 2.11.4

[WARNING] Multiple versions of scala libraries detected!

[INFO] E:\git\AkkaPJ\src\main\java:-1: info: compiling

[INFO] E:\git\AkkaPJ\src\main\scala:-1: info: compiling

[INFO] Compiling 5 source files to E:\git\AkkaPJ\target\classes at 1517634353428

[INFO] prepare-compile in 0 s

[INFO] compile in 2 s

[INFO]

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ AkkaPJ ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 1 resource

[INFO] Copying 1 resource

[INFO]

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ AkkaPJ ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 1 source file to E:\git\AkkaPJ\target\test-classes

[INFO]

[INFO] --- scala-maven-plugin:3.3.1:add-source (test-compile-scala) @ AkkaPJ ---

[INFO]

[INFO] --- scala-maven-plugin:3.3.1:testCompile (test-compile-scala) @ AkkaPJ ---

[WARNING] Expected all dependencies to require Scala version: 2.11.8

[WARNING] com.citi.sky:AkkaPJ:0.0.1-SNAPSHOT requires scala version: 2.11.8

[WARNING] com.citi.sky:AkkaPJ:0.0.1-SNAPSHOT requires scala version: 2.11.8

[WARNING] org.scala-lang:scala-compiler:2.11.8 requires scala version: 2.11.8

[WARNING] org.scala-lang.modules:scala-xml_2.11:1.0.4 requires scala version: 2.11.4

[WARNING] Multiple versions of scala libraries detected!

[INFO] E:\git\AkkaPJ\src\test\java:-1: info: compiling

[INFO] E:\git\AkkaPJ\src\test\scala:-1: info: compiling

[INFO] Compiling 20 source files to E:\git\AkkaPJ\target\test-classes at 1517634355968

[WARNING] warning: there were 10 feature warnings; re-run with -feature for details

[WARNING] one warning found

[INFO] prepare-compile in 0 s

[INFO] compile in 4 s

[INFO]

[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ AkkaPJ ---

[INFO] Surefire report directory: E:\git\AkkaPJ\target\surefire-reports

[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.pom

[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.pom (3 KB at 1.9 KB/sec)

[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.12.4/surefire-providers-2.12.4.pom

[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.12.4/surefire-providers-2.12.4.pom (3 KB at 6.1 KB/sec)

[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.jar

[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.jar (37 KB at 56.6 KB/sec)

-------------------------------------------------------

T E S T S

-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ AkkaPJ ---

[INFO] Building jar: E:\git\AkkaPJ\target\AkkaPJ-0.0.1-SNAPSHOT.jar

[INFO]

[INFO] --- maven-shade-plugin:3.0.0:shade (default) @ AkkaPJ ---

[INFO] Including org.scala-lang:scala-library:jar:2.11.8 in the shaded jar.

[INFO] Including org.scala-lang:scala-compiler:jar:2.11.8 in the shaded jar.

[INFO] Including org.scala-lang.modules:scala-xml_2.11:jar:1.0.4 in the shaded jar.

[INFO] Including org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.4 in the shaded jar.

[INFO] Including org.scala-lang:scala-reflect:jar:2.11.8 in the shaded jar.

[INFO] Including com.typesafe.akka:akka-actor_2.11:jar:2.5.9 in the shaded jar.

[INFO] Including com.typesafe:config:jar:1.3.2 in the shaded jar.

[INFO] Including org.scala-lang.modules:scala-java8-compat_2.11:jar:0.7.0 in the shaded jar.

[INFO] Attaching shaded artifact.

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 15.142 s

[INFO] Finished at: 2018-02-03T13:06:06+08:00

[INFO] Final Memory: 27M/317M

[INFO] ------------------------------------------------------------------------

scala java混合_Scala和Java混合项目搭建:(Eclipse)相关推荐

  1. java ssj_java中ssj框架的项目搭建流程

    1.新建一个maven项目 2.在pom.xml中,配置所需的jar包及其版本号 4.1.7.RELEASE 4.3.11.Final org.springframework spring-core ...

  2. scala调用java代码_scala调用java代码

    scala调用java代码 @(SCALA)[scala] 在scala中调用java代替非常非常简单,直接调用即可 (一)一个简单示例 1.创建一个java类 package com.lujinho ...

  3. scala和java类_Scala(和Java)中的类和类型有什么区别?

    当你说"打字"时,我会假设你的意思是静态类型.但我很快就会讨论动态类型. 静态类型是程序的一部分的属性,可以静态证明(静态意味着"不运行它").在静态类型语言中 ...

  4. java ssj_java中ssj框架的项目搭建

    java中ssj框架的搭建流程 ssj即:Spring SpringMVC JPA 首先打开eclipse,并在里面新建一个mavan项目 然后开始进行打包,下图为mavan的打包方式 1.引入pom ...

  5. Scala和Java混合项目搭建:(Eclipse)

     Scala和Java混合项目搭建:(Eclipse)  项目结构: pom.xml: <projectxmlns="http://maven.apache.org/POM/4.0.0 ...

  6. java与python之间的混合开发

    java与python之间的混合开发 1. 项目需求 使用java进行进行数据库的访问,并对查询出的数据进行的数据清理,使用python进行无监督分类 应用场景: . 整个项目是BS架构,基于Spri ...

  7. scala语言的底层是java实现的_Scala学习笔记一(与Java、Jvm的关系以及程序执行流程分析)...

    一.Scala语言与Java.Jvm的关系分析 Scala语言是马丁奥德斯基接触Java语言后,针对Java语言的特点,将函数式编程语言的特点融合到Java中,由此发明的.Scala语言和Java语言 ...

  8. Java Swing/AWT和GTK混合GUI编程

    首先用C语言的GTK生成动态链接库,然后利用java的native方法调用该动态链接库就可以了,是不是很简单. 环境: JDK 8: OS:CentOS5: GTK:gtk+-2.0 首先看下我的文件 ...

  9. java 四则混合运算_四则混合运算,java实现

    package com.interview.prepare; /* * 四则运算,没有括号,数字均小于零,其中中间运算过程取整. * 首先将运算时转换为逆波兰式(后缀式) * 然后通过一个栈辅助运算. ...

最新文章

  1. 不要轻易挑战用户的习惯,否则会被用户打脸!
  2. c# mongodb or查询_C# 查询MongoDB中的数据
  3. 在 Swift 语言中更好的处理 JSON 数据:SwiftyJSON
  4. oracle RAC切换归档
  5. 超大规模集成电路先进光刻理论与应用_中科院上海光机所光刻机投影物镜热效应模型研究取得进展...
  6. 第七届蓝桥杯省赛C/C++大学B组真题解析
  7. 黑马程序员Java零基础视频教程(2022最新Java)B站视频学习笔记-Day6-方法
  8. TensorFlow实现图像风格迁移
  9. 消息队列返回错误:Resource temporarily unavailable
  10. python greedy 加油次数
  11. java语言画图_Java语言实现画图工具
  12. 如何制作Chrome扩展?<详细教程>
  13. 在Firefox中以电影院风格观看YouTube视频
  14. matlab上机绘图实验心得,matlab实验心得总结
  15. ubuntu 百度云盘
  16. 大学什么专业会学python-学会python有哪些好处?python抓取知乎神回复
  17. 硅谷创业教父保罗·格雷厄姆给的创业建议书
  18. 于狼人杀角度思考中国的站队问题
  19. 【Python自动化制作PPT材料(模仿人工操作)】
  20. YMIR-人脸检测-深度学习模型一站式开发

热门文章

  1. EF和Dapper之争的关键
  2. 高性能webdav服务器,webdav服务器
  3. 传世藏书 医部目录(1-6册)
  4. 干货丨小米自研主动降噪技术在Redmi Buds Pro4上的应用
  5. Windows与Linux的命令行命令对比
  6. 基于stm32的秒表计时器设计系统Proteus仿真(源码+仿真+全套资料)
  7. mysql 加盐_【mysql】当加盐算法需要改变,数据库该如何更新?
  8. 家电行业竞争日趋白热化,海尔缘何能创造七连冠奇迹?
  9. ES High Level Rest Client 超时问题排查及解决
  10. 不在上学了能不能考计算机二级,好多学生都问到底要不要参加计算机二级考试?...