Issues of some jars in Maven (sojo-optional-0.5.0.jar, SQLServer jdbc jar)
时间:2010-07-19 来源:7wolfs
1. for spring-json (sojo-optional-0.5.0.jar)
add repository for spring-json (sojo-optional-0.5.0.jar) into pom.xml
2. for sqljdbc jar of SQL Server
1) download maven tool (alone software, not for eclipse)
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.zip
2) unzip this zip file
3) enter into DOS window, walk into the 'bin' directory that contains the unzip file.
4) input the command below.
5) add jar into item of dependency into pom.xml
for sqljdbc.jar (SQLServer JDBC) , refer to attachment.
add repository for spring-json (sojo-optional-0.5.0.jar) into pom.xml
<repository> <id>Spring json</id> <url>http://spring-json.sourceforge.net/repository</url> </repository>
2. for sqljdbc jar of SQL Server
1) download maven tool (alone software, not for eclipse)
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.zip
2) unzip this zip file
3) enter into DOS window, walk into the 'bin' directory that contains the unzip file.
4) input the command below.
mvn install:install-file -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc -Dversion=1.0 -Dpackaging=jar -Dfile=E:\Server\lib\sqljdbc.jar
5) add jar into item of dependency into pom.xml
<dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc</artifactId> <version>1.0</version> </dependency>
for sqljdbc.jar (SQLServer JDBC) , refer to attachment.
相关阅读 更多 +