Because the project requires a SQL Server database, but cannot find its corresponding pom dependency, you need to install the local jar package to the local repository and define the pom dependency. For example, other jar packages can refer to this method
CMD command statement:
MVN install:install-file-dfile=sqljdbc4.jar -dpackaging=jar-dgroupid=com.microsoft.sqlserver - dartifactid=sqljdbc4 -dversion=4.0
Success Example:
Pom dependency:
1 <Dependency>2 <groupId>Com.microsoft.sqlserver</groupId>3 <Artifactid>SQLJDBC4</Artifactid>4 <version>4.0</version>5 </Dependency>
Detailed configuration:
Brown Font : The location of the local jar package, which can enter its location at the cmd command line, or a full-position path, such as D:\sqljdbc4.jar, is required.
Red font: Custom GroupID
Blue font : Custom Artifactid
Green font : Custom Version Number
maven-Installing the jar package to the local warehouse