Because the company's split was completed yesterday after the migration, some configurations of the system were gone. After exporting the project, I found that Topology always reported the error "can't find main class" when running, and the same was true for linking connectionpool. When I asked Sai, it turned out that vertica and jdbc were not installed, and the corresponding jar package could not be found in the dependencies of pom.xml.
First learn from a detailed explanation of pom.xml:
http://blog.csdn.net/adeyi/article/details/17259479
The installation steps are as follows:
1. First, you need to have the corresponding jar package, and find the directory where the jar package is located on the computer;
2. Shift+right-click in the blank space of the folder where the jar package is located, click to open the command window here, and execute the corresponding command.
install vertica:
mvn install:install-file -DgroupId=vertica -DartifactId=vertica-jdbc -Dversion=7.0.1 -Dpackaging=jar -Dfile=./vertica-jdbc-7.0.1-0.jar -DgeneratePom=true
install sqlserver:
mvn install:install-file -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar -Dfile=./sqljdbc4.jar -DgeneratePom=true
When there are multiple jar packages, just change the corresponding version name in the command.
Attach the command for Maven to install the JAR package:
mvn install:install-file -Dfile=path where the jar file needs to be installed -DgroupId=corresponding groupId in pom.xml -DartifactId=artifactId in pom.xml -Dversion=pom.xml version -Dpackaging=jar