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




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值