Setting up OpenCMIS InMemory Repository - java

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 .

Related

Vaadin no plugin found for prefix jetty

Good evening, im trying to install vaadin framework and integrate it into my eclipse but everytime i try to run the maven build i keep getting this error block, the main part is that the prefix jetty is not recognized and im not sre how to deal with that. Please help
[INFO] Scanning for projects...
[WARNING] The project com.gmail.khaled:my-starter-project:pom:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] My Starter Project [pom]
[INFO] My Starter Project-backend [jar]
[INFO] My Starter Project-ui [war]
[INFO] Downloading from : https://maven.vaadin.com/vaadin-prereleases/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading from : https://maven.vaadin.com/vaadin-prereleases/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloaded from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 13 kB/s)
[INFO] Downloaded from : https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 18 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] My Starter Project 1.0-SNAPSHOT .................... SKIPPED
[INFO] My Starter Project-backend ......................... SKIPPED
[INFO] My Starter Project-ui 1.0-SNAPSHOT ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.739 s
[INFO] Finished at: 2019-03-18T21:39:18+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\hp\.m2\repository), vaadin-prereleases (https://maven.vaadin.com/vaadin-prereleases), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException
This error message tells, that there is no maven Jetty plugin defined in the pom.xml where you are trying to run jetty:run target. Hence it is failing. Usually the convention in multi module maven projects is to place Jetty plugin to actual application module. In your case it is probably the "My Starter Project-ui" module. If it is not there you need to add it there.
I had the same problem. When creating a debug configuration in the field goal
do not type: jetty:run
instead type: spring-boot:run

Failed to execute goal on project Siafu: Could not resolve dependencies for project Siafu:Siafu:jar:1.0.6-SNAPSHOT

Siafu is a context simulator
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] MavenParent ........................................ SUCCESS [ 0.004 s]
[INFO] Siafu Simulator .................................... FAILURE [01:27 min]
[INFO] Siafu datatypes library ............................ SKIPPED
[INFO] Simulation-Glasgow ................................. SKIPPED
[INFO] Simulation-Leimen .................................. SKIPPED
[INFO] Simulation-Office .................................. SKIPPED
[INFO] Simulation-Testland ................................ SKIPPED
[INFO] Simulation-Valencia ................................ SKIPPED
[INFO] Simulations ........................................ SKIPPED
[INFO] SiafuAggregator .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 min
[INFO] Finished at: 2017-04-24T15:45:12+08:00
[INFO] Final Memory: 10M/91M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project Siafu: Could not resolve dependencies for project Siafu:Siafu:jar:1.0.6-SNAPSHOT:
Failed to collect dependencies at org.eclipse.swt:org.eclipse.swt.gtk.linux.x86:jar:3.8:
Failed to read artifact descriptor for org.eclipse.swt:org.eclipse.swt.gtk.linux.x86:jar:3.8:
Could not transfer artifact org.eclipse.swt:org.eclipse.swt.gtk.linux.x86:pom:3.8 from/to swt-repo (https://swt-repo.googlecode.com/svn/repo/): Network is unreachable (connect failed) -> [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
Please give me some help to solve this problem,thanks!

mvn clean install fails for PL/Java on Postgres 9.5

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!

YCSB Maven build error

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.

Maven installation of guvnor can't find ResourceType variable

I'm trying to install drools guvnor on an Ubuntu system with mvn clean install -DskipTests, and I'm receiving an error output like this:
[INFO] 39 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Guvnor multiproject ............................... SUCCESS [1.539s]
[INFO] kie-uberfire-bootstrap ............................ SUCCESS [5.865s]
[INFO] kie-project-editor ................................ SUCCESS [6.465s]
[INFO] Guvnor API ........................................ SUCCESS [1.993s]
[INFO] Guvnor repository connector multiproject .......... SUCCESS [0.056s]
[INFO] Guvnor repository connector JCR ................... SUCCESS [1.463s]
[INFO] Guvnor repository connector Jackrabbit ............ SUCCESS [1.920s]
[INFO] Guvnor repository connector ModeShape ............. SUCCESS [1.827s]
[INFO] Guvnor repository ................................. SUCCESS [8.587s]
[INFO] Drools and jBPM IDE common ........................ FAILURE [11.337s]
[INFO] Guvnor web application core ....................... SKIPPED
[INFO] Guvnor web application Drools ..................... SKIPPED
[INFO] Guvnor bulk importer .............................. SKIPPED
[INFO] Guvnor JCR to UberFire VFS migration .............. SKIPPED
[INFO] Guvnor examples ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.425s
[INFO] Finished at: Thu Dec 06 22:13:58 EET 2012
[INFO] Final Memory: 32M/78M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (default-testCompile) on project droolsjbpm-ide-common: Compilation failure: Compilation failure:
[ERROR] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[ERROR] SLF4J: Defaulting to no-operation (NOP) logger implementation
[ERROR] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] /home/neyo/drools/guvnor/droolsjbpm-ide-common/src/test/java/org/drools/ide/common/server/factconstraints/predefined/RangeConstraintMultipleOperatorsTest.java:[37,22] error: cannot find symbol
[ERROR] symbol: class ResourceType
[ERROR] location: package org.kie.builder
[ERROR] /home/neyo/drools/guvnor/droolsjbpm-ide-common/src/test/java/org/drools/ide/common/server/factconstraints/predefined/RangeConstraintSingleOperatorTest.java:[38,22] error: cannot find symbol
[...]
[ERROR] symbol: variable ResourceType
[ERROR] location: class MandatoryFieldConstraintTest
[ERROR] /home/neyo/drools/guvnor/droolsjbpm-ide-common/src/test/java/org/drools/ide/common/server/factconstraints/predefined/NotMatchesConstraintTest.java:[148,124] error: cannot find symbol
[...]
Any thoughts why it can't find ResourceType ?
I'm using maven 3.0.4 and java 1.7, and I've cloned all the repositories from github.com/droolsjbpm
I'm having the same problem, and I'm seeing a possibly related commit on a file from their github repository:
-import org.kie.builder.ResourceType;
+import org.kie.io.ResourceType;
So they possibly changed their packages around a bit. Try changing that inside the files see if it fixes it, I will verify tonight when I can.

Categories