Issues of some jars in Maven (sojo-optional-0.5.0.jar, SQLServer jdbc jar)

1. for spring-json (sojo-optional-0.5.0.jar)
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.

你可能感兴趣的:(java,spring,maven,json,jdbc)