Sql Sever 2008 jar Maven pom.xml dependency
来源:互联网 发布:免费淘宝客推广软件 编辑:程序博客网 时间:2024/05/22 03:12
When I add sqlserver04.jar into my maven project, it's a little bit different others. For other jars, I directly add dependency into pom.xml. For sqlserver.jar, the dependency works on others' projects, but not mine. It always give me an error about missing artifact. Here is my solution:
1) download latest jar Microsoft download center. I download *.exe file.
2) Run the exe file and unzip it.
3) Open a command prompt and switch into the directory whre the jar file is located
4) Execute the comand
mvn install:install-file -Dfile=sqljdbc4.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0
5) When you see Build Success, You can find the jar in your maven repository. Mine is located here:
C:\Users\****\.m2\repository\com\microsoft\sqlserver\sqljdbc4\4.0
6) Now you're ready to add the dependency to pom.xml
<dependency><groupId>com.microsoft.sqlserver</groupId><artifactId>sqljdbc4</artifactId><version>4.0</version></dependency>
- Sql Sever 2008 jar Maven pom.xml dependency
- Maven-pom.xml -Dependency Scope 区别
- maven项目找不到pom.xml配置的dependency jar中的类问题解决方法
- 在maven的pom.xml中添加<dependency>直接可以下载jar包吗
- JavaEE之Maven中的pom.xml文件jar包dependency配置方法
- Maven的pom.xml中的dependency部分,如何写
- Maven的pom.xml中的dependency部分写法
- maven项目打包时生成dependency-reduced-pom.xml
- Maven引用本地jar到pom.xml
- maven pom.xml 添加本地jar
- 关于maven pom.xml中dependency type 为pom的应用
- 关于maven pom.xml中dependency type 为pom的应用
- maven的pom.xml中添加想要的jar包
- maven在pom.xml里引用本地jar
- maven的pom.xml出错 已经下载完了jar包
- springmvc 依赖的jar包 maven的pom.xml文件
- maven项目 pom.xml中添加jar包
- Eclipse创建Maven工程,pom.xml,dependency报错的解决办法
- Linux内核学习:kmalloc
- zoj2411-Link Link Look(WA)
- 开源中国在线工具
- 今天用Map集合写了一个字符串字符统计的程序,看集合看的头痛,就看了一下GUI,于是就随便记点。
- 完全用Linux工作
- Sql Sever 2008 jar Maven pom.xml dependency
- 《锋利的jQuery》读书笔记 第1章 认识jQuery
- 2012年第三届西安电子科技大学网络攻防 大赛暨网络渗透部分通关方案 V2.0
- 为什么我们需要uCos
- 离线查询和子查询--DetachedCriteria
- warning: no newline at end of file
- 非常高兴,“万能数据库查询分析器”中英文3.01版本测试完成,会尽快完成发布,敬请等待
- 根据新浪IP库地址,跳到不同城市的二级页面
- Javah 常见错误记录-NDK与JNI除错