安装PL / Java时,MVN全新安装返回构建失败

时间:2019-07-05 12:42:53

标签: postgresql maven pljava

我正在尝试在Ubuntu 16.0.4上安装PL / Java,并在运行PL/Java backend native code ........................ FAILURE命令时出现mvn clean install错误。完整的错误日志如下。

PostgreSQL版本-11 Ubuntu版本-16.0.4

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] PostgreSQL PL/Java
[INFO] PL/Java API
[INFO] PL/Java backend Java code
[INFO] PL/Java backend native code
[INFO] PL/Java Deploy
[INFO] PL/Java Ant tasks
[INFO] PL/Java examples
[INFO] PL/Java packaging
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PostgreSQL PL/Java 1.5.2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pljava.app ---
[INFO] Deleting /home/dataguise/Downloads/pljava-1_5_2/target
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ pljava.app ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ pljava.app ---
[INFO] Installing /home/dataguise/Downloads/pljava-1_5_2/pom.xml to /home/dataguise/.m2/repository/org/postgresql/pljava.app/1.5.2/pljava.app-1.5.2.pom
[INFO] Installing /home/dataguise/Downloads/pljava-1_5_2/target/pljava.app-1.5.2-site.xml to /home/dataguise/.m2/repository/org/postgresql/pljava.app/1.5.2/pljava.app-1.5.2-site.xml
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PL/Java API 1.5.2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pljava-api ---
[INFO] Deleting /home/dataguise/Downloads/pljava-1_5_2/pljava-api/target
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ pljava-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/dataguise/Downloads/pljava-1_5_2/pljava-api/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ pljava-api ---
[INFO] Compiling 24 source files to /home/dataguise/Downloads/pljava-1_5_2/pljava-api/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ pljava-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/dataguise/Downloads/pljava-1_5_2/pljava-api/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ pljava-api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ pljava-api ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-service-config) @ pljava-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ pljava-api ---
[INFO] Building jar: /home/dataguise/Downloads/pljava-1_5_2/pljava-api/target/pljava-api-1.5.2.jar
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ pljava-api ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ pljava-api ---
[INFO] Installing /home/dataguise/Downloads/pljava-1_5_2/pljava-api/target/pljava-api-1.5.2.jar to /home/dataguise/.m2/repository/org/postgresql/pljava-api/1.5.2/pljava-api-1.5.2.jar
[INFO] Installing /home/dataguise/Downloads/pljava-1_5_2/pljava-api/pom.xml to /home/dataguise/.m2/repository/org/postgresql/pljava-api/1.5.2/pljava-api-1.5.2.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PL/Java backend Java code 1.5.2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pljava ---
[INFO] Deleting /home/dataguise/Downloads/pljava-1_5_2/pljava/target
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ pljava ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/dataguise/Downloads/pljava-1_5_2/pljava/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ pljava ---
[INFO] Compiling 74 source files to /home/dataguise/Downloads/pljava-1_5_2/pljava/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ pljava ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/dataguise/Downloads/pljava-1_5_2/pljava/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ pljava ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ pljava ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ pljava ---
[INFO] Building jar: /home/dataguise/Downloads/pljava-1_5_2/pljava/target/pljava-1.5.2.jar
[INFO] 
[INFO] --- maven-shade-plugin:1.4:shade (default) @ pljava ---
[INFO] Including org.postgresql:pljava-api:jar:1.5.2 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/dataguise/Downloads/pljava-1_5_2/pljava/target/pljava-1.5.2.jar with /home/dataguise/Downloads/pljava-1_5_2/pljava/target/pljava-1.5.2-shaded.jar
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ pljava ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ pljava ---
[INFO] Installing /home/dataguise/Downloads/pljava-1_5_2/pljava/target/pljava-1.5.2.jar to /home/dataguise/.m2/repository/org/postgresql/pljava/1.5.2/pljava-1.5.2.jar
[INFO] Installing /home/dataguise/Downloads/pljava-1_5_2/pljava/dependency-reduced-pom.xml to /home/dataguise/.m2/repository/org/postgresql/pljava/1.5.2/pljava-1.5.2.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PL/Java backend native code 1.5.2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pljava-so ---
[INFO] Deleting /home/dataguise/Downloads/pljava-1_5_2/pljava-so/target
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-validate (default-nar-validate) @ pljava-so ---
[INFO] Using AOL: amd64-Linux-gpp
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-download (default-nar-download) @ pljava-so ---
[INFO] Getting Nar dependencies
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (pg_config to pgsql.properties) @ pljava-so ---
[INFO] Executing tasks

main:

configure_msvc:

configure_nomsvc:

configure_msvc_options:

pg_config:
[propertyfile] Creating new property file: /home/dataguise/Downloads/pljava-1_5_2/pljava-so/target/pgsql.properties
[INFO] Executed tasks
[INFO] 
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ pljava-so ---
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-unpack (default-nar-unpack) @ pljava-so ---
[INFO] Getting Nar dependencies
[INFO] Unpacking 0 dependencies to /home/dataguise/Downloads/pljava-1_5_2/pljava-so/target/nar
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-gnu-configure (default-nar-gnu-configure) @ pljava-so ---
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-system-generate (default-nar-system-generate) @ pljava-so ---
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-vcproj (default-nar-vcproj) @ pljava-so ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ pljava-so ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/dataguise/Downloads/pljava-1_5_2/pljava-so/src/main/resources
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-resources (default-nar-resources) @ pljava-so ---
[INFO] Copied 0 resources
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-gnu-resources (default-nar-gnu-resources) @ pljava-so ---
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ pljava-so ---
[INFO] No sources to compile
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-javah (default-nar-javah) @ pljava-so ---
[INFO] Running /usr/lib/jvm/jdk1.8.0_211/bin/javah compiler on 26 classes...
[INFO] + /usr/lib/jvm/jdk1.8.0_211/bin/javah -classpath /home/dataguise/Downloads/pljava-1_5_2/pljava-so/../pljava/target/classes/:/home/dataguise/Downloads/pljava-1_5_2/pljava-so/../pljava-api/target/classes/ -d /home/dataguise/Downloads/pljava-1_5_2/pljava-so/target/nar/javah-include org.postgresql.pljava.internal.Session org.postgresql.pljava.internal.SubXactListener org.postgresql.pljava.internal.Backend org.postgresql.pljava.jdbc.SingleRowReader org.postgresql.pljava.internal.TupleDesc org.postgresql.pljava.internal.Oid org.postgresql.pljava.internal.VarlenaWrapper$Input$State org.postgresql.pljava.internal.Tuple org.postgresql.pljava.internal.AclId org.postgresql.pljava.internal.TriggerData org.postgresql.pljava.internal.DualState$SingleMemContextDelete org.postgresql.pljava.internal.PgSavepoint org.postgresql.pljava.jdbc.SQLOutputToChunk org.postgresql.pljava.internal.ErrorData org.postgresql.pljava.jdbc.SQLXMLImpl org.postgresql.pljava.internal.DualState$SinglePfree org.postgresql.pljava.internal.VarlenaWrapper$Output$State org.postgresql.pljava.internal.XactListener org.postgresql.pljava.internal.SPI org.postgresql.pljava.internal.JavaWrapper org.postgresql.pljava.internal.Relation org.postgresql.pljava.internal.ExecutionPlan org.postgresql.pljava.internal.HeapTupleHeader org.postgresql.pljava.jdbc.SQLInputFromTuple org.postgresql.pljava.internal.Portal org.postgresql.pljava.jdbc.Invocation java.sql.Types
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-gnu-make (default-nar-gnu-make) @ pljava-so ---
[INFO] 
[INFO] --- nar-maven-plugin:3.2.3:nar-compile (default-nar-compile) @ pljava-so ---
[INFO] Compiling 53 native files
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] PostgreSQL PL/Java ................................. SUCCESS [  0.413 s]
[INFO] PL/Java API ........................................ SUCCESS [  0.719 s]
[INFO] PL/Java backend Java code .......................... SUCCESS [  0.713 s]
[INFO] PL/Java backend native code ........................ FAILURE [  3.502 s]
[INFO] PL/Java Deploy ..................................... SKIPPED
[INFO] PL/Java Ant tasks .................................. SKIPPED
[INFO] PL/Java examples ................................... SKIPPED
[INFO] PL/Java packaging .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.631 s
[INFO] Finished at: 2019-07-05T18:04:00+05:30
[INFO] Final Memory: 40M/593M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.2.3:nar-compile (default-nar-compile) on project pljava-so: NAR: Include path not found: com.github.maven_nar.IncludePath@6a292803 -> [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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :pljava-so

1 个答案:

答案 0 :(得分:0)

嗯,这是一个古老的问题,但是为了有一个答案,以防将来的访客找到它....

日志中显示Include path not found: com.github.maven_nar.IncludePath@6a292803 -> [Help 1],看起来像是nar-maven-plugin的一个错误,可能旨在显示未找到包含路径的内容(!),但是他们打印了一个没有有用的IncludePath方法的toString对象。好吧,这种想法很重要。

几乎可以肯定,这意味着构建所需的某些内容(也许是PostgreSQL本身?)并没有在预期的位置包含文件,可能是因为尚未安装单独的-devel软件包。这些就是要检查的东西。

对于Ubuntu或Debian,通常不是更简单地从源代码构建,而是先添加the PGDG apt repository,然后再添加apt-get install postgresql-11-pljava(或您喜欢的PostgreSQL版本代替11)。

这本来对提问者没有帮助,因为没有适用于16.04的软件包,但其中包含用于较新版本的软件包。