问题列表
驱动相关
openGauss-connector-jdbc\pom.xml does not exist
D:\program\Java\jdk1.8.0_171\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\program\merge\git_project\openGaussJdbc2.0\openGauss-connector-jdbc -Dmaven.home=D:\program\apache-maven-3.6.3 -Dclassworlds.conf=D:\program\apache-maven-3.6.3\bin\m2.conf "-Dmaven.ext.class.path=D:\program\IntelliJ IDEA 2020.1.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\program\IntelliJ IDEA 2020.1.2\lib\idea_rt.jar=57600:D:\program\IntelliJ IDEA 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath D:\program\apache-maven-3.6.3\boot\plexus-classworlds-2.6.0.jar;D:\program\apache-maven-3.6.3\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version2020.1.2 -s D:\program\apache-maven-3.6.3\conf\settings.xml_aliyun -Dmaven.repo.local=D:\program\m2\aliyunRepo -DskipTests=true clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Child module D:\program\merge\git_project\openGaussJdbc2.0\openGauss-connector-jdbc\jdbc of D:\program\merge\git_project\openGaussJdbc2.0\openGauss-connector-jdbc\pom.xml does not exist @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.huawei:pgjdbc-aggregate:42.2.5 (D:\program\merge\git_project\openGaussJdbc2.0\openGauss-connector-jdbc\pom.xml) has 1 error
[ERROR] Child module D:\program\merge\git_project\openGaussJdbc2.0\openGauss-connector-jdbc\jdbc of D:\program\merge\git_project\openGaussJdbc2.0\openGauss-connector-jdbc\pom.xml does not exist
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
解决方式
先将hw-java-sdk-core.jar包给推到本地仓库
mvn install:install-file -DgroupId=com.huawei.apigateway -DartifactId=hw-java-sdk-core -Dversion=3.0.12 -Dpackaging=jar -Dfile=D:\java-sdk-core-3.0.12.jar --settings D:\program\apache-maven-3.6.3\conf\settings.xml_aliyun
然后编译shade
最后直接将pgjdbc的目录直接导入到idea 作为项目
编译即可
jdk
java.lang.IllegalMonitorStateException
Exception in thread "Thread-0" java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:151)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1261)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.fullyRelease(AbstractQueuedSynchronizer.java:1723)
sharding相关
Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.3.0:jar (attach-javadocs) on project shardingsphere-standalone-mode-repository-file: MavenReportException: Error while generating Javadoc: Unable to execute javadoc command: Error while executing process.: Cannot run program “cmd.exe”
解决方式:
clean install -DskipTests -Dmaven.javadoc.skip=true -f pom.xml
INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20:32 min
[INFO] Finished at: 2021-11-17T20:35:08+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.3.0:jar (attach-javadocs) on project shardingsphere-standalone-mode-repository-file: MavenReportException: Error while generating Javadoc: Unable to execute javadoc command: Error while executing process.: Cannot run program "cmd.exe"
(in directory "D:\program\merge\git_project\shardingsphere-5.0.0
\shardingsphere-mode\shardingsphere-mode-type\
shardingsphere-standalone-mode\shardingsphere-standalone-mode-repository
\shardingsphere-standalone-mode-repository-provider
\shardingsphere-standalone-mode-repository-file\target\apidocs"):
CreateProcess error=267, 目录名称无效。 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :shardingsphere-standalone-mode-repository-file