Maven configuring SQLserverde

Using Idea to integrate Maven management jar, it was found that the sqljdbc4. jar package of SQL Server cannot be imported in the pom file. After searching for the article, the following steps are taken:

1. Download sqljdbc4. jar and place it in the C: drive https://mvnrepository.com/artifact/com.microsoft.sqlserver/sqljdbc4/4.0.

2. Add dependency to pom file.

    <!-- SQL Server link-- >
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>4.0</version>
</dependency>

3. Command line CMD enters e: execute.

Dfile=e:sqljdbc4-4.0.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0

Pay attention to the path, as shown in the figure below, BUILD SUCCESS indicates success, and there is an imported Microsoft directory in the com directory of the private warehouse.