sbt和maven

sbt全局仓库设置:

在C:\Users\usename\.sbt\repositories文件中添加

[repositories]
  local
  Local-Maven-Repository: file:///root/maven_repository, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
  #self_repo:http://139.196.172.226:8081/nexus/content/repositories/releases/
  #self_repo:http://27.115.8.210:18081/nexus/content/repositories/releases/
  #self_repo:http://10.10.10.201:8081/nexus/content/repositories/releases/
  #oschina:http://maven.oschina.net/content/groups/public/ 
  #oschina-ivy:http://maven.oschina.net/content/groups/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  alibaba:http://maven.aliyun.com/nexus/content/groups/public/
  alibaba-ivy:http://maven.aliyun.com/nexus/content/groups/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  maven-central
  typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
  snapshots:http://oss.sonatype.org/content/repositories/snapshots
  releases:http://oss.sonatype.org/content/repositories/releases
  cloudera: https://repository.cloudera.com/artifactory/cloudera-repos/
  ansj:http://maven.nlpcn.org
  lzo:http://repo1.maven.org/maven2/
  sonatype-oss-releases

sbt工程添加本地maven仓库的方法:在项目下的build.sbt文件中添加resolvers += Resolver.mavenLocal

有关sbt的资料地址:

https://github.com/CSUG/real_world_scala/blob/master/02_sbt.markdown

http://www.scala-sbt.org/0.13/docs/zh-cn/Getting-Started.html

http://afoo.me/posts/2014-07-08-sbt-native-packager.html

https://segmentfault.com/a/1190000002484978

有关maven的资料地址:

eclipse 配置maven web项目:http://blog.csdn.net/myprogrames/article/details/46635709

Maven搭建Spring+Struts2+Hibernate项目详解:http://www.bubuko.com/infodetail-648898.html

maven简单教程:http://www.yiibai.com/maven/maven_web_application.html

maven核心,pom.xml详解:http://www.cnblogs.com/qq78292959/p/3711501.html

根据类名、jar名查找maven:http://www.findmaven.net/

将本地jar添加至local mvean:http://maven.group.iteye.com/group/topic/21617

maven中打包源代码命令: mvn source:jar




你可能感兴趣的:(构建工程)