I am working on installing PL/Java on Postgres 9.5.
My setup is Postgres 9.5 on Centos 6.5 with Oracle-Java JDK 1.8.0_92
My install of Postgres was done from these yum-packages:
postgresql95
postgresql95-devel
postgresql95-libs
postgresql95-server
I list below a summary of my steps so far:
su - postgres
git clone https://github.com/tada/pljava
git checkout V1_5_0
mvn clean install
That seemed to work until I saw this:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PostgreSQL PL/Java ................................. SUCCESS [ 16.707 s]
[INFO] PL/Java API ........................................ SUCCESS [ 8.771 s]
[INFO] PL/Java backend Java code .......................... SUCCESS [ 4.000 s]
[INFO] PL/Java backend native code ........................ FAILURE [ 13.560 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: 52.707 s
[INFO] Finished at: 2016-07-06T18:09:40-07:00
[INFO] Final Memory: 38M/222M
[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: Compile failed: gcc
failed with return code 1 -> [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 <goals> -rf :pljava-so
I would welcome any clues and/or opinions about how to best debug this so that mvn clean install will run error free.
I ran a shell command from root to fix it:
yum install openssl-devel
That fixed it. Yay!
Related
I am having difficulty in getting this ojdbc7 JAR file installed in the correct location. I tried the following from Windows 10 command prompt and got the BUILD SUCCESS message as shown below:
C:\Users\john>mvn install:install-file -Dfile=C:\ojdbc7.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.1 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) # standalone-pom ---
[INFO] Installing C:\ojdbc7.jar to C:\Users\l-john\.m2\repository\com\oracle\ojdbc7\12.1.0.1\ojdbc7-12.1.0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.381 s
[INFO] Finished at: 2018-10-24T12:09:04-05:00
[INFO] ------------------------------------------------------------------------
However, when I went inside the 12.1.0.1 folder (located here C:\Users\john\.m2\repository\com\oracle\ojdbc7\12.1.0.1) I only saw the following files :
For one of my Maven project, eclipse(version 2018-19) is trying to access the JAR file and I keep getting following BUILD FAILURE message which is obvious since the file isn't there:
BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.208 s
[INFO] Finished at: 2018-10-24T12:15:39-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MyProject: Could not resolve dependencies for project com.company.ii:MyProject:war:0.1: Could not find artifact com.oracle.jdbc:ojdbc7:jar:12.1.0.1 in spring-releases (https://repo.spring.io/libs-release) -> [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.
In my pom.xml, I do have the dependency defined as follows:
Is there anything I am doing wrong? Please let me know if I need to perform some additional testing?
I could see that in mvn install command -DgroupId is not correct, instead of giving "-DgroupId=com.oracle.jdbc", you have given just "-DgroupId=com.oracle"
Maven tells you it is installing the jar to
C:\Users\l-john\.m2\repository\com\oracle\ojdbc7\12.1.0.1\ojdbc7-12.1.0.1.jar
But you are looking at
C:\Users\john\.m2\repository\com\oracle\ojdbc7\12.1.0.1
l-john vs john
I am a complete newbie with Apache storm. I tried to follow the storm-starter. I cloned the repository, and then I tried to build and install locally storm. Unfortunately I cannot even do that. The storm-metrics jar cannot be built
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-metrics 2.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # storm-metrics ---
[INFO] Deleting /Users/apple/storm/external/storm-metrics/target
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (cleanup) # storm-metrics ---
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (prepare) # storm-metrics ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks
main:
[echo] Downloading sigar native binaries...
[get] Getting: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
[get] To: /var/root/.m2/repository/org/fusesource/sigar/1.6.4/hyperic-sigar-1.6.4.zip
[get] Error opening connection java.io.FileNotFoundException: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
[get] Error opening connection java.io.FileNotFoundException: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
[get] Error opening connection java.io.FileNotFoundException: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
[get] Can't get https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip to /var/root/.m2/repository/org/fusesource/sigar/1.6.4/hyperic-sigar-1.6.4.zip
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] storm-metrics ...................................... FAILURE [ 2.818 s]
[INFO] storm-cassandra .................................... SKIPPED
[INFO] storm-mqtt-parent .................................. SKIPPED
[INFO] storm-mqtt ......................................... SKIPPED
[INFO] storm-mqtt-examples ................................ SKIPPED
[INFO] storm-mongodb ...................................... SKIPPED
[INFO] storm-clojure ...................................... SKIPPED
[INFO] storm-starter ...................................... SKIPPED
[INFO] storm-kafka-client ................................. SKIPPED
[INFO] storm-opentsdb ..................................... SKIPPED
[INFO] storm-kafka-monitor ................................ SKIPPED
[INFO] storm-kinesis ...................................... SKIPPED
[INFO] storm-druid ........................................ SKIPPED
[INFO] storm-submit-tools ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.867 s
[INFO] Finished at: 2016-08-31T11:52:45+01:00
[INFO] Final Memory: 26M/270M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (prepare) on project storm-metrics: An Ant BuildException has occured: Can't get https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip to /var/root/.m2/repository/org/fusesource/sigar/1.6.4/hyperic-sigar-1.6.4.zip -> [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
I have no idea how to fix this. I tried to follow the link : https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip but indeed there is nothing on this page.
So I have been stuck on this for like 4 hours, I cannot even run a topology yet... Please help :(
It seems like the download link for hyperic-sigar-1.6.4.zip has changed to
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/magelan/hyperic-sigar-1.6.4.zip
Try to do the following:
In the file external/storm-metrics/pom.xml set the entry for <sigar.download.url> to <sigar.download.url>https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/magelan/hyperic-sigar-${sigar.version}.zip</sigar.download.url> and then re-run mvn clean install -DskipTests=true
In my case I grepped for all occurrences of the old download link and replaced them with the new link, but I guess this should not be necessary as all the other places where the link occurred were generated in the build process. Replacing the link worked for me. It is also weird, that the link already is corrected in their GitHub repository, but is not, when you download it as a zip file from GitHub.
Below existing issue link :
https://github.com/apache/storm/commit/ef3c4de133528d04f76a43a0e87e72cea19e173e
I tried to build with latest storm-starter clone and it's working fine. Update your repository and try again. Should work fine.
I want to install Apache Zeppelin on OSX 10.8, but build fails for some mysterious reasons. Specs: Java 1.7, Maven 3.3, node v0.12.4 and grunt v0.1.13.
I'm running the following command:
mvn clean package -DskipTests
And I am getting the following output :
[INFO] Zeppelin: web Application .......................... FAILURE [ 18.310 s]
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:53 min
[INFO] Finished at: 2016-01-14T18:32:13-05:00
[INFO] Final Memory: 78M/387M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:grunt (grunt build) on project zeppelin-web: Failed to run task: 'grunt --no-color' failed. (error code 3) -> [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 :zeppelin-web
It seems to be some errors with grunt, but I'm not sure.
I cloned YSCB git and modified pom.xml in \hbase folder for pointing to right version of my HBase and Hadoop. After that, I was trying to make YCSB package using `mvn clean package', but I get following errors which I'm not able to resolve.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HBase DB Binding 0.1.4
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.hadoop:hadoop-core:jar:2.4.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] YCSB Root .......................................... SUCCESS [ 0.954 s]
[INFO] Core YCSB .......................................... SUCCESS [ 19.117 s]
[INFO] Cassandra DB Binding ............................... SUCCESS [ 10.728 s]
[INFO] HBase DB Binding ................................... FAILURE [ 0.260 s]
[INFO] Hypertable DB Binding .............................. SKIPPED
[INFO] Accumulo DB Binding ................................ SKIPPED
[INFO] DynamoDB DB Binding ................................ SKIPPED
[INFO] ElasticSearch Binding .............................. SKIPPED
[INFO] Infinispan DB Binding .............................. SKIPPED
[INFO] JDBC DB Binding .................................... SKIPPED
[INFO] Mapkeeper DB Binding ............................... SKIPPED
[INFO] Mongo DB Binding ................................... SKIPPED
[INFO] OrientDB Binding ................................... SKIPPED
[INFO] Redis DB Binding ................................... SKIPPED
[INFO] Voldemort DB Binding ............................... SKIPPED
[INFO] YCSB Release Distribution Builder .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.309 s
[INFO] Finished at: 2015-02-27T08:30:30+00:00
[INFO] Final Memory: 53M/934M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hbase-binding: Could not resolve dependencies for project com.yahoo.ycsb:hbase-binding:jar:0.1.4: Failure to find org.apache.hadoop:hadoop-core:jar:2.4.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hbase-binding
I'm using HBase version 0.94.18 & Hadoop 2.4.0. Any suggestions on how to resolve it?
Have you changed the hbase and hadoop versions in the hbase pom.xml file.
Also check whether the required jar is available at the repository you have used https://repo.maven.apache.org/maven2
If you are using YCSB only for hbase i would suggest removing the unwanted modules from the pom file this will reduce the time taken to build.
I´m trying to set up the OpenCMIS InMemory Repository following the instructions from Apache but I keep getting the following error when running the maven command mvn clean install -Dmaven.test.skip=true:
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Chemistry OpenCMIS ......................... SUCCESS [1.665s]
[INFO] OpenCMIS Commons API .............................. SUCCESS [3.327s]
[INFO] OpenCMIS Commons Implementation ................... SUCCESS [7.599s]
[INFO] OpenCMIS Client API ............................... SUCCESS [0.714s]
[INFO] OpenCMIS Client Bindings Implementation ........... FAILURE [2.285s]
[INFO] OpenCMIS Client Implementation .................... SKIPPED
[INFO] OpenCMIS Server Support ........................... SKIPPED
[INFO] OpenCMIS Server Implementation .................... SKIPPED
[INFO] OpenCMIS Server Implementation WAR packaging ...... SKIPPED
[INFO] OpenCMIS Test Utilities ........................... SKIPPED
[INFO] OpenCMIS InMemory Server WAR packaging ............ SKIPPED
[INFO] OpenCMIS FileShare Server Implementation .......... SKIPPED
[INFO] OpenCMIS JCR Server Implementation ................ SKIPPED
[INFO] OpenCMIS Server Archetype ......................... SKIPPED
[INFO] OpenCMIS Bridge WAR packaging ..................... SKIPPED
[INFO] OpenCMIS Test Compatibility Kit ................... SKIPPED
[INFO] OpenCMIS Full Integration Tests ................... SKIPPED
[INFO] OpenCMIS Tools .................................... SKIPPED
[INFO] OpenCMIS Browser .................................. SKIPPED
[INFO] OpenCMIS Browser Application ...................... SKIPPED
[INFO] OpenCMIS Workbench ................................ SKIPPED
[INFO] OpenCMIS OSGi Client Wrapper ...................... SKIPPED
[INFO] OpenCMIS Android Client ........................... SKIPPED
[INFO] OpenCMIS Assemblies Distribution .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.533s
[INFO] Finished at: Thu May 08 18:42:47 CEST 2014
[INFO] Final Memory: 33M/63M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "redhat-techpreview-all-repository" could not be
activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project chemistry-opencmis-client-bindings: Com
pilation failure: Compilation failure:
[ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[41,40] cannot find
symbol
[ERROR] symbol : class StreamingAttachmentFeature
[ERROR] location: package com.sun.xml.internal.ws.developer
[ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[65,28] cannot find
symbol
[ERROR] symbol : class StreamingAttachmentFeature
[ERROR] location: class org.apache.chemistry.opencmis.client.bindings.spi.webser
vices.SunJREPortProvider
[ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[115,66] cannot fin
d symbol
[ERROR] symbol : variable CONNECT_TIMEOUT
[ERROR] location: interface com.sun.xml.internal.ws.developer.JAXWSProperties
[ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[120,66] cannot fin
d symbol
[ERROR] symbol : variable REQUEST_TIMEOUT
[ERROR] location: interface com.sun.xml.internal.ws.developer.JAXWSProperties
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :chemistry-opencmis-client-bindings
Now, I guess the error (at least some of them as [ERROR] symbol : variable CONNECT_TIMEOUT) is because it's not finding the JAX-WS libraries, but since I just downloaded the code and followed instructions, I can't see what I can do to solve it or where to add the dependencies.
You should check your maven version. The Apache site says that version 2.2.1 is required, against java 1.5.
You're trying to build the development version, which is not always stable.
If you just want to use the InMemory Repository, download the "OpenCMIS Server Webapps" package from https://chemistry.apache.org/java/download.html .