problem with install opendaylight controller - java

I'm using
ubuntu 14.04,
maven 3.3.9 and
jdk 1.7.0_45
Problem:
I am using this manual (section Importing the Source Into Eclipse ):
https://wiki.opendaylight.org/view/GettingStarted:_Eclipse#OLD:_Manual_procedure_previously_used
When i run mvn clean install i get this error:
[WARNING] Failure to transfer org.apache.maven.plugins:maven-install-plugin/maven-metadata.xml from 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. Original error: Could not transfer metadata org.apache.maven.plugins:maven-install-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.apache.maven.plugins:maven-resources-plugin/maven-metadata.xml from 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. Original error: Could not transfer metadata org.apache.maven.plugins:maven-resources-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.apache.maven.plugins:maven-deploy-plugin/maven-metadata.xml from 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. Original error: Could not transfer metadata org.apache.maven.plugins:maven-deploy-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
Downloading: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/yangtools/mockito-configuration/0.6.1-1-SNAPSHOT/maven-metadata.xml
Downloading: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/yangtools/mockito-configuration/0.6.1-1-SNAPSHOT/mockito-configuration-0.6.1-1-SNAPSHOT.pom
[WARNING] The POM for org.opendaylight.yangtools:mockito-configuration:jar:0.6.1-1-SNAPSHOT is missing, no dependency information available
Downloading: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/yangtools/mockito-configuration/0.6.1-1-SNAPSHOT/mockito-configuration-0.6.1-1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] commons.parent ..................................... SUCCESS [ 3.215 s]
[INFO] checkstyle ......................................... SUCCESS [ 9.702 s]
[INFO] commons.opendaylight ............................... SUCCESS [ 17.156 s]
[INFO] sal ................................................ SUCCESS [02:31 min]
[INFO] configuration ...................................... SUCCESS [ 3.291 s]
[INFO] containermanager ................................... SUCCESS [ 3.044 s]
[INFO] usermanager ........................................ SUCCESS [ 6.530 s]
[INFO] appauth ............................................ SUCCESS [ 2.346 s]
[INFO] clustering.services ................................ SUCCESS [ 2.078 s]
[INFO] sal.connection ..................................... SUCCESS [ 2.076 s]
[INFO] connectionmanager .................................. SUCCESS [ 2.350 s]
[INFO] hosttracker ........................................ SUCCESS [ 3.004 s]
[INFO] switchmanager ...................................... SUCCESS [ 8.574 s]
[INFO] topologymanager .................................... SUCCESS [ 7.406 s]
[INFO] arphandler ......................................... SUCCESS [ 3.113 s]
[INFO] bundlescanner ...................................... SUCCESS [ 2.138 s]
[INFO] bundlescanner.implementation ....................... SUCCESS [ 5.797 s]
[INFO] commons.logback_settings ........................... SUCCESS [ 0.555 s]
[INFO] clustering.services-implementation ................. SUCCESS [ 28.061 s]
[INFO] clustering.test .................................... SUCCESS [ 3.128 s]
[INFO] commons.httpclient ................................. SUCCESS [ 3.409 s]
[INFO] commons.northbound ................................. SUCCESS [ 4.284 s]
[INFO] configuration.implementation ....................... SUCCESS [ 2.741 s]
[INFO] connectionmanager.implementation ................... SUCCESS [ 2.118 s]
[INFO] connectionmanager.northbound ....................... SUCCESS [ 28.574 s]
[INFO] containermanager.implementation .................... SUCCESS [ 1.938 s]
[INFO] web ................................................ SUCCESS [ 4.529 s]
[INFO] containermanager.northbound ........................ SUCCESS [ 32.440 s]
[INFO] controllermanager.northbound ....................... SUCCESS [ 15.554 s]
[INFO] forwarding.staticrouting ........................... SUCCESS [ 3.485 s]
[INFO] forwardingrulesmanager ............................. SUCCESS [ 19.376 s]
[INFO] devices.web ........................................ SUCCESS [ 3.486 s]
[INFO] flowprogrammer.northbound .......................... SUCCESS [ 14.038 s]
[INFO] flows.web .......................................... SUCCESS [ 1.861 s]
[INFO] forwarding.staticrouting.northbound ................ SUCCESS [ 8.540 s]
[INFO] forwardingrulesmanager.implementation .............. SUCCESS [ 2.892 s]
[INFO] hosttracker.implementation ......................... SUCCESS [ 6.346 s]
[INFO] hosttracker.northbound ............................. SUCCESS [ 8.275 s]
[INFO] httpservice-bridge ................................. SUCCESS [ 8.785 s]
[INFO] jolokia-bridge ..................................... SUCCESS [ 1.013 s]
[INFO] logging.bridge ..................................... FAILURE [ 3.491 s]
[INFO] sal.networkconfiguration ........................... SKIPPED
[INFO] networkconfig.bridgedomain.northbound .............. SKIPPED
[INFO] networkconfig.neutron .............................. SKIPPED
[INFO] networkconfig.neutron.implementation ............... SKIPPED
[INFO] networkconfig.neutron.northbound ................... SKIPPED
[INFO] osgi-brandfragment.web ............................. SKIPPED
[INFO] protocol_plugins.openflow .......................... SKIPPED
[INFO] routing.dijkstra_implementation .................... SKIPPED
[INFO] sal.connection.implementation ...................... SKIPPED
[INFO] sal.implementation ................................. SKIPPED
[INFO] sal.networkconfiguration.implementation ............ SKIPPED
[INFO] samples.loadbalancer ............................... SKIPPED
[INFO] samples.loadbalancer.northbound .................... SKIPPED
[INFO] samples.simpleforwarding ........................... SKIPPED
[INFO] security ........................................... SKIPPED
[INFO] statisticsmanager .................................. SKIPPED
[INFO] statistics.northbound .............................. SKIPPED
[INFO] statisticsmanager.implementation ................... SKIPPED
[INFO] subnets.northbound ................................. SKIPPED
[INFO] switchmanager.implementation ....................... SKIPPED
[INFO] switchmanager.northbound ........................... SKIPPED
[INFO] topology.northbound ................................ SKIPPED
[INFO] topology.web ....................................... SKIPPED
[INFO] troubleshoot.web ................................... SKIPPED
[INFO] usermanager.implementation ......................... SKIPPED
[INFO] usermanager.northbound ............................. SKIPPED
[INFO] netconf-subsystem .................................. SKIPPED
[INFO] ietf-netconf-monitoring ............................ SKIPPED
[INFO] ietf-netconf-monitoring-extension .................. SKIPPED
[INFO] concepts ........................................... SKIPPED
[INFO] config-subsystem ................................... SKIPPED
[INFO] config-api ......................................... SKIPPED
[INFO] config-util ........................................ SKIPPED
[INFO] config-manager ..................................... SKIPPED
[INFO] config-plugin-parent ............................... SKIPPED
[INFO] yang-jmx-generator ................................. SKIPPED
[INFO] yang-jmx-generator-plugin .......................... SKIPPED
[INFO] netty-config-api ................................... SKIPPED
[INFO] netty-event-executor-config ........................ SKIPPED
[INFO] protocol-framework ................................. SKIPPED
[INFO] netconf-api ........................................ SKIPPED
[INFO] netconf-mapping-api ................................ SKIPPED
[INFO] commons.thirdparty ................................. SKIPPED
[INFO] ganymed ............................................ SKIPPED
[INFO] netconf-util ....................................... SKIPPED
[INFO] netconf-client ..................................... SKIPPED
[INFO] netconf-impl ....................................... SKIPPED
[INFO] yang-test-plugin ................................... SKIPPED
[INFO] yang-test .......................................... SKIPPED
[INFO] config-netconf-connector ........................... SKIPPED
[INFO] config-persister-api ............................... SKIPPED
[INFO] config-persister-file-xml-adapter .................. SKIPPED
[INFO] config-persister-directory-xml-adapter ............. SKIPPED
[INFO] config-persister-impl .............................. SKIPPED
[INFO] logback-config ..................................... SKIPPED
[INFO] netconf-config-dispatcher .......................... SKIPPED
[INFO] netconf-monitoring ................................. SKIPPED
[INFO] netconf-ssh ........................................ SKIPPED
[INFO] netty-threadgroup-config ........................... SKIPPED
[INFO] threadpool-config-api .............................. SKIPPED
[INFO] threadpool-config-impl ............................. SKIPPED
[INFO] netty-timer-config ................................. SKIPPED
[INFO] sal-parent ......................................... SKIPPED
[INFO] sal-common-api ..................................... SKIPPED
[INFO] sal-binding-api .................................... SKIPPED
[INFO] sal-binding-config ................................. SKIPPED
[INFO] sal-binding-util ................................... SKIPPED
[INFO] sal-common-util .................................... SKIPPED
[INFO] sal-common-impl .................................... SKIPPED
[INFO] sal-common ......................................... SKIPPED
[INFO] sal-core-api ....................................... SKIPPED
[INFO] sal-core-spi ....................................... SKIPPED
[INFO] sal-broker-impl .................................... SKIPPED
[INFO] model-parent ....................................... SKIPPED
[INFO] model-inventory .................................... SKIPPED
[INFO] model-flow-base .................................... SKIPPED
[INFO] model-flow-service ................................. SKIPPED
[INFO] model-flow-statistics .............................. SKIPPED
[INFO] sal-binding-broker-impl ............................ SKIPPED
[INFO] model-topology ..................................... SKIPPED
[INFO] MD-SAL to AD-SAL Adaptation Parent ................. SKIPPED
[INFO] MD-SAL to AD-SAL Adaptation ........................ SKIPPED
[INFO] sal-connector-api .................................. SKIPPED
[INFO] sal-netconf-connector .............................. SKIPPED
[INFO] sal-remote ......................................... SKIPPED
[INFO] sal-rest-connector ................................. SKIPPED
[INFO] sal-restconf-broker ................................ SKIPPED
[INFO] shutdown-api ....................................... SKIPPED
[INFO] shutdown-impl ...................................... SKIPPED
[INFO] model-flow-management .............................. SKIPPED
[INFO] flow-management-compatibility ...................... SKIPPED
[INFO] forwardingrules-manager ............................ SKIPPED
[INFO] inventory-manager .................................. SKIPPED
[INFO] statistics-manager ................................. SKIPPED
[INFO] topology-lldp-discovery ............................ SKIPPED
[INFO] topology-manager ................................... SKIPPED
[INFO] sal-samples ........................................ SKIPPED
[INFO] sample-toaster ..................................... SKIPPED
[INFO] sample-toaster-consumer ............................ SKIPPED
[INFO] sample-toaster-provider ............................ SKIPPED
[INFO] distribution.opendaylight .......................... SKIPPED
[INFO] clustering.stub .................................... SKIPPED
[INFO] hosttracker_new .................................... SKIPPED
[INFO] hosttracker_new.implementation ..................... SKIPPED
[INFO] inventory-topology-compatibility ................... SKIPPED
[INFO] config-module-archetype ............................ SKIPPED
[INFO] protocol_plugins.stub .............................. SKIPPED
[INFO] releasepom ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:10 min
[INFO] Finished at: 2018-12-15T11:33:05+03:30
[INFO] Final Memory: 194M/357M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project logging.bridge: Could not resolve dependencies for project org.opendaylight.controller:logging.bridge:bundle:0.4.1-1-SNAPSHOT: Failure to find org.opendaylight.yangtools:mockito-configuration:jar:0.6.1-1-SNAPSHOT in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot 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 :logging.bridge
my parent pom.xml and settings.xml are this link:
https://askubuntu.com/questions/1100920/failed-to-execute-goal-on-project-logging-bridge-could-not-resolve-dependencies
I used the following code to solve the problem, but again I got Error:
cp -n ~/.m2/settings.xml{,.orig} ; \
wget -q -O https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml

You are looking for a dependency, which does not exist in the repo you are using, exactly as your error message says. Correct the <dependecy> version in your pom.xml or enforce it using the Dependecy Management if not referenced directly.

As briadeus answer, your problem is due to SSL.
You have other solution than using JVM parameters:
Use Java 8++ to run maven and compile using Java 7 and a toolchain: this require some adaptation and may not work in all case but you should try it as this works very well with maven-compiler-plugin, maven-failsafe-plugin and maven-surefire-plugin (I'm using it to build Java 11 project with Java 8).
Use a more recent JVM (Java 8, 11, etc) and a local, non https, repository such as Sonatype Nexus OSS:
The idea behind the case 2 is simple:
You can't use Java 8 for various reason and using toolchain fails.
You tell Maven to use http://localhost:8081/repository/[...];
You configure Nexus to mirror/proxy the repository you try to access. Since it use a version that's more recent, it won't fails due to SSL.
Note that you may also share this repository with your team.

Related

mvn clean compile jib:build failed

so i have been trying to deploy my spring microservices using jib and it has been really fustrating :(
I have been jumping from one issue to another and right now i dont how to get out of this present situation... I have used openjdk 17 alphine and this is the logs i get from my build...
PS C:\xampp\htdocs\weddingapp-main\weddingapp> mvn clean compile jib:build -rf :discovery-service [INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] discovery-service [jar]
[INFO] api-gateway [jar]
[INFO] wedding [jar]
[INFO] users [jar]
[INFO]
[INFO] -----------------< com.slinkdigital:discovery-service >-----------------
[INFO] Building discovery-service 1.0-SNAPSHOT [1/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # discovery-service ---
[INFO] Deleting C:\xampp\htdocs\weddingapp-main\weddingapp\discovery-service\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # discovery-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # discovery-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\xampp\htdocs\weddingapp-main\weddingapp\discovery-service\target\classes
[INFO]
[INFO] --- jib-maven-plugin:3.3.0:build (default-cli) # discovery-service ---
[INFO]
[INFO] Containerizing application to registry.hub.docker.com/davidtega/discovery-service...
[INFO] Using credentials from Maven settings file for registry.hub.docker.com/davidtega/discovery-service
[INFO]
[INFO] Container entrypoint set to [java, -cp, #/app/jib-classpath-file, com.slinkdigital.eureka.DiscoveryServiceApplication]
[WARNING] PATCH https://registry.hub.docker.com/v2/davidtega/discovery-service/blobs/uploads/79257277-0299-4f05-90cc-e33f34d3a44a?_state=P1UgMi0NjbwAR3C9mu77RBBM0P2yRJNUC5Qz-wEGppl7Ik5hbWUiOiJkYXZpZHRlZ2EvZGlzY292ZXJ5LXNlcnZpY2UiLCJVVUlEIjoiNzkyNTcyNzctMDI5OS00ZjA1LTkwY2MtZTMzZjM0ZDNhNDRhIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTEwLTEyVDA0OjMyOjU2Ljg4OTcxNzc4OFoifQ%3D%3D failed and will NOT be retried
[ERROR] I/O error for image [registry.hub.docker.com/davidtega/discovery-service]:
[ERROR] java.net.SocketException
[ERROR] An established connection was aborted by the software in your host machine
[INFO] Executing tasks:
[INFO] [======================= ] 77.8% complete
[INFO] > launching layer pushers
[INFO] > scheduling pushing manifests
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for discovery-service 1.0-SNAPSHOT:
[INFO]
[INFO] discovery-service .................................. FAILURE [32:57 min]
[INFO] api-gateway ........................................ SKIPPED
[INFO] wedding ............................................ SKIPPED
[INFO] users .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32:58 min
[INFO] Finished at: 2022-10-12T06:05:32+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.0:build (default-cli) on project discovery-service: An established connection was aborted by the software in your host machine -> [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 restarted my pc severally, cleaned up my config.json file and tried every other solution i have seen but its still not working, i will appreciate the assistance... Thanks

OPCUA Milo- Stack-Core Failure - building phase

I've a problem with building Opcua Milo project for eclipse. Here the link: https://github.com/eclipse/milo .
I need to run the standalone examples for security but when I build the project (cleaning the pom and then when I go to install it I've
this failure.
Can You give me some advice? Thank You; Sal.
EDIT 1: Error Text
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.milo:client-examples:jar:0.2.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # org.eclipse.milo:client-examples:[unknown-version], C:\Users\Sal\git\repository4prova2\miloprova2\milo-examples\client-examples\pom.xml, line 82, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.milo:server-examples:jar:0.2.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # org.eclipse.milo:server-examples:[unknown-version], C:\Users\Sal\git\repository4prova2\miloprova2\milo-examples\server-examples\pom.xml, line 76, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.milo:standalone-examples:jar:0.2.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # org.eclipse.milo:standalone-examples:[unknown-version], C:\Users\Sal\git\repository4prova2\miloprova2\milo-examples\standalone-examples\pom.xml, line 167, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.milo:milo-examples:pom:0.2.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # org.eclipse.milo:milo-examples:[unknown-version], C:\Users\Sal\git\repository4prova2\miloprova2\milo-examples\pom.xml, line 27, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.milo:stack-examples:jar:0.2.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # org.eclipse.milo:stack-examples:[unknown-version], C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\stack-examples\pom.xml, line 34, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.milo:stack-tests:jar:0.2.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # org.eclipse.milo:stack-tests:[unknown-version], C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\stack-tests\pom.xml, line 48, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.milo:sdk-tests:jar:0.2.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # org.eclipse.milo:sdk-tests:[unknown-version], C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-sdk\sdk-tests\pom.xml, line 55, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Eclipse Milo Build Tools [jar]
[INFO] Eclipse Milo - OPC-UA (IEC 62541) [pom]
[INFO] opc-ua-stack [pom]
[INFO] stack-core [jar]
[INFO] stack-client [jar]
[INFO] opc-ua-sdk [pom]
[INFO] sdk-core [jar]
[INFO] bsd-parser [pom]
[INFO] bsd-parser-core [jar]
[INFO] sdk-client [jar]
[INFO] stack-server [jar]
[INFO] sdk-server [jar]
[INFO] milo-examples [pom]
[INFO] server-examples [jar]
[INFO] client-examples [jar]
[INFO] standalone-examples [jar]
[INFO] bsd-parser-gson [jar]
[INFO] stack-examples [jar]
[INFO] stack-tests [jar]
[INFO] sdk-tests [jar]
[INFO]
[INFO] --------------------< org.eclipse.milo:build-tools >--------------------
[INFO] Building Eclipse Milo Build Tools 0.2.4-SNAPSHOT [1/20]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # build-tools ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # build-tools ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # build-tools ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Sal\git\repository4prova2\miloprova2\build-tools\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # build-tools ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # build-tools ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # build-tools ---
[INFO] Building jar: C:\Users\Sal\git\repository4prova2\miloprova2\build-tools\target\build-tools-0.2.4-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # build-tools ---
[INFO] Installing C:\Users\Sal\git\repository4prova2\miloprova2\build-tools\target\build-tools-0.2.4-SNAPSHOT.jar to C:\Users\Sal\.m2\repository\org\eclipse\milo\build-tools\0.2.4-SNAPSHOT\build-tools-0.2.4-SNAPSHOT.jar
[INFO] Installing C:\Users\Sal\git\repository4prova2\miloprova2\build-tools\pom.xml to C:\Users\Sal\.m2\repository\org\eclipse\milo\build-tools\0.2.4-SNAPSHOT\build-tools-0.2.4-SNAPSHOT.pom
[INFO]
[INFO] -----------------------< org.eclipse.milo:milo >------------------------
[INFO] Building Eclipse Milo - OPC-UA (IEC 62541) 0.2.4-SNAPSHOT [2/20]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) # milo ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # milo ---
[INFO] Installing C:\Users\Sal\git\repository4prova2\miloprova2\pom.xml to C:\Users\Sal\.m2\repository\org\eclipse\milo\milo\0.2.4-SNAPSHOT\milo-0.2.4-SNAPSHOT.pom
[INFO]
[INFO] -------------------< org.eclipse.milo:opc-ua-stack >--------------------
[INFO] Building opc-ua-stack 0.2.4-SNAPSHOT [3/20]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) # opc-ua-stack ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (java-compile) # opc-ua-stack ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-bundle-plugin:3.2.0:manifest (generate-manifest) # opc-ua-stack ---
[WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (java-test-compile) # opc-ua-stack ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-failsafe-plugin:2.19.1:integration-test (default-integration-test) # opc-ua-stack ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # opc-ua-stack ---
[INFO] Installing C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\pom.xml to C:\Users\Sal\.m2\repository\org\eclipse\milo\opc-ua-stack\0.2.4-SNAPSHOT\opc-ua-stack-0.2.4-SNAPSHOT.pom
[INFO]
[INFO] --------------------< org.eclipse.milo:stack-core >---------------------
[INFO] Building stack-core 0.2.4-SNAPSHOT [4/20]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) # stack-core ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # stack-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\stack-core\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (java-compile) # stack-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 381 source files to C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\stack-core\target\classes
[INFO] /C:/Users/Sal/git/repository4prova2/miloprova2/opc-ua-stack/stack-core/src/main/java/org/eclipse/milo/opcua/stack/core/types/builtin/ExtensionObject.java: C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\stack-core\src\main\java\org\eclipse\milo\opcua\stack\core\types\builtin\ExtensionObject.java uses unchecked or unsafe operations.
[INFO] /C:/Users/Sal/git/repository4prova2/miloprova2/opc-ua-stack/stack-core/src/main/java/org/eclipse/milo/opcua/stack/core/types/builtin/ExtensionObject.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-bundle-plugin:3.2.0:manifest (generate-manifest) # stack-core ---
[WARNING] Manifest org.eclipse.milo:stack-core:jar:0.2.4-SNAPSHOT : Unused Import-Package instructions: [com.sun.management.*]
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # stack-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (java-test-compile) # stack-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\stack-core\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) # stack-core ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/C:/Users/Sal/.m2/repository/io/netty/netty-common/4.0.36.Final/netty-common-4.0.36.Final.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
========================= init =========================
Thread[Attach Listener,5,system]
Thread[Common-Cleaner,8,InnocuousThreadGroup]
Thread[Finalizer,8,system]
Thread[Reference Handler,10,system]
Thread[Signal Dispatcher,9,system]
Thread[TestNGInvoker-testLifecycleClose(),5,main]
Thread[last-ditch-daemon-shutdown-thread-30sec,5,main]
Thread[main,5,main]
Thread[surefire-forkedjvm-command-thread,5,main]
========================= init =========================
========================= opened =========================
Thread[Attach Listener,5,system]
Thread[Common-Cleaner,8,InnocuousThreadGroup]
Thread[FileSystemWatchService,5,main]
Thread[Finalizer,8,system]
Thread[Reference Handler,10,system]
Thread[Signal Dispatcher,9,system]
Thread[TestNGInvoker-testLifecycleClose(),5,main]
Thread[last-ditch-daemon-shutdown-thread-30sec,5,main]
Thread[main,5,main]
Thread[surefire-forkedjvm-command-thread,5,main]
Thread[ua-certificate-directory-watcher,5,main]
========================= opened =========================
========================= closed =========================
Thread[Attach Listener,5,system]
Thread[Common-Cleaner,8,InnocuousThreadGroup]
Thread[Finalizer,8,system]
Thread[Reference Handler,10,system]
Thread[Signal Dispatcher,9,system]
Thread[TestNGInvoker-testLifecycleClose(),5,main]
Thread[last-ditch-daemon-shutdown-thread-30sec,5,main]
Thread[main,5,main]
Thread[surefire-forkedjvm-command-thread,5,main]
========================= closed =========================
Tests run: 149, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.751 sec <<< FAILURE! - in TestSuite
testInitialize(org.eclipse.milo.opcua.stack.core.types.BuiltinDataTypeDictionaryInitializerTest) Time elapsed: 0.11 sec <<< FAILURE!
java.lang.AssertionError: null
at org.eclipse.milo.opcua.stack.core.types.BuiltinDataTypeDictionaryInitializerTest.testInitialize(BuiltinDataTypeDictionaryInitializerTest.java:37)
Results :
Failed tests:
BuiltinDataTypeDictionaryInitializerTest.testInitialize:37 null
Tests run: 149, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Eclipse Milo Build Tools ........................... SUCCESS [ 6.513 s]
[INFO] Eclipse Milo - OPC-UA (IEC 62541) 0.2.4-SNAPSHOT ... SUCCESS [ 10.697 s]
[INFO] opc-ua-stack ....................................... SUCCESS [ 15.518 s]
[INFO] stack-core ......................................... FAILURE [01:42 min]
[INFO] stack-client ....................................... SKIPPED
[INFO] opc-ua-sdk ......................................... SKIPPED
[INFO] sdk-core ........................................... SKIPPED
[INFO] bsd-parser ......................................... SKIPPED
[INFO] bsd-parser-core .................................... SKIPPED
[INFO] sdk-client ......................................... SKIPPED
[INFO] stack-server ....................................... SKIPPED
[INFO] sdk-server ......................................... SKIPPED
[INFO] milo-examples ...................................... SKIPPED
[INFO] server-examples .................................... SKIPPED
[INFO] client-examples .................................... SKIPPED
[INFO] standalone-examples ................................ SKIPPED
[INFO] bsd-parser-gson .................................... SKIPPED
[INFO] stack-examples ..................................... SKIPPED
[INFO] stack-tests ........................................ SKIPPED
[INFO] sdk-tests 0.2.4-SNAPSHOT ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:15 min
[INFO] Finished at: 2018-09-21T14:48:57+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project stack-core: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\Sal\git\repository4prova2\miloprova2\opc-ua-stack\stack-core\target\surefire-reports for the individual test results.
[ERROR] -> [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 :stack-core
You need to build with JDK 8. This is mentioned in the README but it’s easy to miss.

What files are needed by Malvern from Github?

I am trying to install the Google Java library of files needed to run translate.
I have got to the end of the Authentication section OK. The instructions then make a leap to running Malvern.
What is missing is:
What files do I need to download from Github for Malvern?
How do I download those files from Github? and
Where do I put them on my machine?
I am running Netbeans.
Once those questions are answered, then I expect to be able to run the sample. I tried downloading the whole project but ended up with over 1000 folders and over 700 files. I suspect that I only need to download a few files, but I don't know which or where.
I expect anyone who knows something about Malvern and Github should be able to answer these questions. If it isn't obvious already, I don't know about Github or Maven.
Google Translate API instructions
[Edit] I downloaded the whole project from Github then ran the command "mvn clean compile assembly:single" from the project root and got a build failure. That step is missing from the Google instructions. Downloading the project and applying the command resulted in a folder with 8MB files, which seems to be excessive for plugging into a simple API.
I turned on debugging to produce the abridged Malven output below. It appears that all of the Google API specific files were skipped.
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T07:39:06+12:00)
Maven home: D:\Program Files\apache-maven-3.5.0\bin\..
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: D:\Program Files\Java\jdk1.8.0_121\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
...
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[WARNING] The project com.google.cloud:doc-samples:pom:1.0.0 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
[WARNING] The project com.google.cloud:appengine-doc-samples:pom:1.0.0 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
[WARNING] The project com.example.appengine:appengine-channel:war: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
[WARNING] The project com.example.gaefirebaseeventproxy:gaefirebaseeventproxy:war: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
[WARNING] The project com.example.appengine:appengine-firebase-tictactoe:war: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
[WARNING] The project com.example.appengine:appengine-guestbook-objectify:war: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
[WARNING] The project com.example.appengine:appengine-multitenancy:war: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
[WARNING] The project com.example.flexible:flexible-analytics:war: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] doc-samples
[INFO] appengine-doc-samples
[INFO] appengine-analytics
[INFO] appengine-appidentity
[INFO] appengine-channel
[INFO] appengine-cloudsql
[INFO] appengine-datastore
[INFO] appengine-datastore-indexes
[INFO] appengine-datastore-indexes-exploding
[INFO] appengine-datastore-indexes-perfect
[INFO] echo
[INFO] gaefirebaseeventproxy
[INFO] appengine-firebase-tictactoe
[INFO] appengine-guestbook-objectify
[INFO] appengine-helloworld
[INFO] appengine-helloworld-newplugins
[INFO] appengine-images
[INFO] appengine-logs
[INFO] appengine-mailgun
[INFO] appengine-mailjet
[INFO] appengine-memcache
[INFO] appengine-multitenancy
[INFO] appengine-oauth2
[INFO] appengine-requests
[INFO] appengine-search
[INFO] appengine-sendgrid
[INFO] appengine-remote-client
[INFO] appengine-remote-server
[INFO] appengine-staticfiles
[INFO] taskqueue-push
[INFO] appengine-twilio
[INFO] appengine-URLFetch
[INFO] appengine-users
[INFO] flexible-analytics
[INFO] async-rest
[INFO] flexible-cloudsql
[INFO] flexible-cloudstorage
[INFO] managed-vms-cron
[INFO] flexible-datastore
[INFO] flexible-disk
[INFO] extendingruntime
[INFO] flexible-helloworld
[INFO] mailgun
[INFO] mailjet
[INFO] memcache
[INFO] managed-vms-sendgrid
[INFO] spark
[INFO] staticfiles
[INFO] twilio
[INFO] bigquery-google-cloud-samples
[INFO] bigquery-rest-samples
[INFO] compute-cmdline
[INFO] compute-error-reporting
[INFO] compute-mailjet
[INFO] compute-sendgrid
[INFO] Google Cloud Datastore Snippets
[INFO] datastore-google-cloud-samples
[INFO] kms-samples
[INFO] language-entities
[INFO] language-google-cloud-samples
....
[DEBUG] (f) remoteRepositories = [ id: central
url: https://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (f) runOnlyAtExecutionRoot = false
[DEBUG] (s) siteDirectory = D:\temp\java-docs-samples-master\target\site
[DEBUG] (f) skipAssembly = false
[DEBUG] (s) tarLongFileMode = warn
[DEBUG] (s) tempRoot = D:\temp\java-docs-samples-master\target\archive-tmp
[DEBUG] (s) workDirectory = D:\temp\java-docs-samples-master\target\assembly\work
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] doc-samples ........................................ FAILURE [ 1.539 s]
[INFO] appengine-doc-samples .............................. SKIPPED
[INFO] appengine-analytics ................................ SKIPPED
[INFO] appengine-appidentity .............................. SKIPPED
[INFO] appengine-channel .................................. SKIPPED
[INFO] appengine-cloudsql ................................. SKIPPED
[INFO] appengine-datastore ................................ SKIPPED
[INFO] appengine-datastore-indexes ........................ SKIPPED
[INFO] appengine-datastore-indexes-exploding .............. SKIPPED
[INFO] appengine-datastore-indexes-perfect ................ SKIPPED
[INFO] echo ............................................... SKIPPED
[INFO] gaefirebaseeventproxy .............................. SKIPPED
[INFO] appengine-firebase-tictactoe ....................... SKIPPED
[INFO] appengine-guestbook-objectify ...................... SKIPPED
[INFO] appengine-helloworld ............................... SKIPPED
[INFO] appengine-helloworld-newplugins .................... SKIPPED
[INFO] appengine-images ................................... SKIPPED
[INFO] appengine-logs ..................................... SKIPPED
[INFO] appengine-mailgun .................................. SKIPPED
[INFO] appengine-mailjet .................................. SKIPPED
[INFO] appengine-memcache ................................. SKIPPED
[INFO] appengine-multitenancy ............................. SKIPPED
[INFO] appengine-oauth2 ................................... SKIPPED
[INFO] appengine-requests ................................. SKIPPED
[INFO] appengine-search ................................... SKIPPED
[INFO] appengine-sendgrid ................................. SKIPPED
[INFO] appengine-remote-client ............................ SKIPPED
[INFO] appengine-remote-server ............................ SKIPPED
[INFO] appengine-staticfiles .............................. SKIPPED
[INFO] taskqueue-push ..................................... SKIPPED
[INFO] appengine-twilio ................................... SKIPPED
[INFO] appengine-URLFetch ................................. SKIPPED
[INFO] appengine-users .................................... SKIPPED
[INFO] flexible-analytics ................................. SKIPPED
[INFO] async-rest ......................................... SKIPPED
[INFO] flexible-cloudsql .................................. SKIPPED
[INFO] flexible-cloudstorage .............................. SKIPPED
[INFO] managed-vms-cron ................................... SKIPPED
[INFO] flexible-datastore ................................. SKIPPED
[INFO] flexible-disk ...................................... SKIPPED
[INFO] extendingruntime ................................... SKIPPED
[INFO] flexible-helloworld ................................ SKIPPED
[INFO] mailgun ............................................ SKIPPED
[INFO] mailjet ............................................ SKIPPED
[INFO] memcache ........................................... SKIPPED
[INFO] managed-vms-sendgrid ............................... SKIPPED
[INFO] spark .............................................. SKIPPED
[INFO] staticfiles ........................................ SKIPPED
[INFO] twilio ............................................. SKIPPED
[INFO] bigquery-google-cloud-samples ...................... SKIPPED
[INFO] bigquery-rest-samples .............................. SKIPPED
[INFO] compute-cmdline .................................... SKIPPED
[INFO] compute-error-reporting ............................ SKIPPED
[INFO] compute-mailjet .................................... SKIPPED
[INFO] compute-sendgrid ................................... SKIPPED
[INFO] Google Cloud Datastore Snippets .................... SKIPPED
[INFO] datastore-google-cloud-samples ..................... SKIPPED
[INFO] kms-samples ........................................ SKIPPED
[INFO] language-entities .................................. SKIPPED
[INFO] language-google-cloud-samples ...................... SKIPPED
[INFO] cloud-logging-samples .............................. SKIPPED
[INFO] logging-google-cloud-samples ....................... SKIPPED
[INFO] monitoring-google-cloud-samples .................... SKIPPED
[INFO] cloud-monitoring-samples ........................... SKIPPED
[INFO] cloud-monitoring-v3-samples ........................ SKIPPED
[INFO] pubsub-google-cloud-samples ........................ SKIPPED
[INFO] spanner-google-cloud-samples ....................... SKIPPED
[INFO] speech-google-cloud-samples ........................ SKIPPED
[INFO] storage-google-cloud-samples ....................... SKIPPED
[INFO] storage-json-api ................................... SKIPPED
[INFO] transfersample ..................................... SKIPPED
[INFO] storage-xml-cmdline-sample ......................... SKIPPED
[INFO] Example for Google Cloud Storage using OAuth 2.0 Service Accounts on Google App Engine SKIPPED
[INFO] taskqueue-defer-sample ............................. SKIPPED
[INFO] translate .......................................... SKIPPED
[INFO] translate-google-cloud-samples ..................... SKIPPED
[INFO] unittests-appengine-local-testing-samples .......... SKIPPED
[INFO] vision-google-cloud-samples ........................ SKIPPED
[INFO] vision-face-detection .............................. SKIPPED
[INFO] vision-label ....................................... SKIPPED
[INFO] vision-landmark-detection .......................... SKIPPED
[INFO] vision-text ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.548 s
[INFO] Finished at: 2017-04-19T09:45:13+12:00
[INFO] Final Memory: 20M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project doc-samples: Error reading assemblies: No assembly descriptors found. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project doc-samples: Error reading assemblies: No assembly descriptors found.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error reading assemblies: No assembly descriptors found.
at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:356)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: org.apache.maven.plugin.assembly.io.AssemblyReadException: No assembly descriptors found.
at org.apache.maven.plugin.assembly.io.DefaultAssemblyReader.readAssemblies(DefaultAssemblyReader.java:206)
at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:352)
... 22 more
[ERROR]
[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

Convert Doc to PDf with documents4j

I wanted to try to use documents4j in order to convert a doc to PDF. I follow these instructions here http://documents4j.com/#/develop. When I type mvn package and then press enter, everything seems to work well, but I got this
C:\Users\Fabio\Downloads\docs-to-pdf-converter-master\docs-to-pdf-converter-master\docs-to-pdf-converter\documents4j [ma
ster +0 ~0 -237 | +24 ~0 -0 !]> mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] documents4j
[INFO] documents4j-api
[INFO] documents4j-util-all
[INFO] documents4j-transformer-api
[INFO] documents4j-transformer
[INFO] documents4j-util-conversion
[INFO] documents4j-test
[INFO] documents4j-local
[INFO] documents4j-util-transformer-process
[INFO] documents4j-transformer-msoffice
[INFO] documents4j-transformer-msoffice-base
[INFO] documents4j-transformer-msoffice-test
[INFO] documents4j-transformer-msoffice-word
[INFO] documents4j-transformer-msoffice-excel
[INFO] documents4j-local-demo
[INFO] documents4j-util-ws
[INFO] documents4j-client
[INFO] documents4j-util-standalone
[INFO] documents4j-client-standalone
[INFO] documents4j-server
[INFO] documents4j-server-standalone
[INFO] documents4j-aggregation
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building documents4j 1.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) # documents4j-parent ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building documents4j-api 1.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) # documents4j-api ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # documents4j-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Fabio\Downloads\docs-to-pdf-converter-master\docs-to-pdf-converter-m
aster\docs-to-pdf-converter\documents4j\documents4j-api\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # documents4j-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 16 source files to C:\Users\Fabio\Downloads\docs-to-pdf-converter-master\docs-to-pdf-converter-master\d
ocs-to-pdf-converter\documents4j\documents4j-api\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] documents4j ........................................ SUCCESS [ 2.079 s]
[INFO] documents4j-api .................................... FAILURE [ 1.119 s]
[INFO] documents4j-util-all ............................... SKIPPED
[INFO] documents4j-transformer-api ........................ SKIPPED
[INFO] documents4j-transformer ............................ SKIPPED
[INFO] documents4j-util-conversion ........................ SKIPPED
[INFO] documents4j-test ................................... SKIPPED
[INFO] documents4j-local .................................. SKIPPED
[INFO] documents4j-util-transformer-process ............... SKIPPED
[INFO] documents4j-transformer-msoffice ................... SKIPPED
[INFO] documents4j-transformer-msoffice-base .............. SKIPPED
[INFO] documents4j-transformer-msoffice-test .............. SKIPPED
[INFO] documents4j-transformer-msoffice-word .............. SKIPPED
[INFO] documents4j-transformer-msoffice-excel ............. SKIPPED
[INFO] documents4j-local-demo ............................. SKIPPED
[INFO] documents4j-util-ws ................................ SKIPPED
[INFO] documents4j-client ................................. SKIPPED
[INFO] documents4j-util-standalone ........................ SKIPPED
[INFO] documents4j-client-standalone ...................... SKIPPED
[INFO] documents4j-server ................................. SKIPPED
[INFO] documents4j-server-standalone ...................... SKIPPED
[INFO] documents4j-aggregation ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.037 s
[INFO] Finished at: 2015-12-16T12:36:18+01:00
[INFO] Final Memory: 17M/181M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project d
ocuments4j-api: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [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 :documents4j-api
I tried to delete C:\Users\My User.m2 folder but it doesn't work.
I'm sorry for the easy question but I'm very new about maven and I don't know which could be the problem, maybe about pom.xml in documents4j-api?
Your JAVA_HOME point to a jrenot to a JDK. Change the JAVA_HOME variable and it should work

Get clean machine-friendly Maven lines/xml/json output parseable by scripts in STDOUT?

For example, run this command with for a maven project:
mvn dependency:list
What I need from Maven is only these two lines (cut out from the output below):
com.example.code_samples.maven_dependencies:direct_library:jar:0.0.1-SNAPSHOT:compile
com.example.code_samples.maven_dependencies:indirect_library:jar:0.0.1-SNAPSHOT:compile
Is there a way (CLI --option) to see only this requested info in clean lines, xml, json, ...?
Instead, the output looks more like an unstructured log. It has no known format and mixes all types of information together in STDOUT.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] direct_library
[INFO] dependent_binary
[INFO] indirect_library
[INFO] maven_dependencies
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building direct_library 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus:8081/nexus/content/repositories/snapshots/com/example/code_samples/maven_dependencies/indirect_library/0.0.1-SNAPSHOT/maven-metadata.xml
Downloaded: http://nexus:8081/nexus/content/repositories/snapshots/com/example/code_samples/maven_dependencies/indirect_library/0.0.1-SNAPSHOT/maven-metadata.xml (2 KB at 16.1
KB/sec)
[INFO]
[INFO] --- maven-dependency-plugin:2.8:list (default-cli) # direct_library ---
[INFO]
[INFO] The following files have been resolved:
[INFO] junit:junit:jar:4.4:test
[INFO] com.example.code_samples.maven_dependencies:indirect_library:jar:0.0.1-SNAPSHOT:compile
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dependent_binary 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus:8081/nexus/content/repositories/snapshots/com/example/code_samples/maven_dependencies/direct_library/0.0.1-SNAPSHOT/maven-metadata.xml
Downloaded: http://nexus:8081/nexus/content/repositories/snapshots/com/example/code_samples/maven_dependencies/direct_library/0.0.1-SNAPSHOT/maven-metadata.xml (2 KB at 86.2 K
B/sec)
[INFO]
[INFO] --- maven-dependency-plugin:2.8:list (default-cli) # dependent_binary ---
[INFO]
[INFO] The following files have been resolved:
[INFO] com.example.code_samples.maven_dependencies:direct_library:jar:0.0.1-SNAPSHOT:compile
[INFO] com.example.code_samples.maven_dependencies:indirect_library:jar:0.0.1-SNAPSHOT:compile
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building indirect_library 3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:list (default-cli) # indirect_library ---
[INFO]
[INFO] The following files have been resolved:
[INFO] none
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building maven_dependencies 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:list (default-cli) # maven_dependencies ---
[INFO]
[INFO] The following files have been resolved:
[INFO] none
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] direct_library ..................................... SUCCESS [ 0.813 s]
[INFO] dependent_binary ................................... SUCCESS [ 0.026 s]
[INFO] indirect_library ................................... SUCCESS [ 0.013 s]
[INFO] maven_dependencies ................................. SUCCESS [ 0.002 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.065 s
[INFO] Finished at: 2015-03-24T12:10:01+08:00
[INFO] Final Memory: 18M/607M
[INFO] ------------------------------------------------------------------------
UPDATE
Alternatively, I would accept solution to use Maven API to get runtime data like Collection<String> (instead of the text output like above which cannot be parsed reliably).
I took a look at Maven Invoker API, but I don't have hope - my tests showed that it's just a way to invoke Maven from code. And these APIs return no runtime data (just error code with all useful information printed in logs again).
Maven uses standard slf4j logging, wrapped in a plexus container. https://maven.apache.org/maven-logging.html
You should be able to configure the slf4j bindings to provide different output formats as detailed here http://logback.qos.ch/manual/layouts.html#log4jXMLLayout
I'm not familiar with the cleanlines and json logging formats; however, slf4j is probably one of the more adaptable logging packages, so look around for a Formatter and you have a chance at finding one. However, if you don't the last link above also covers the pages on how to write your own logging layout.
I was able to supply a property to save required clean output into a file.
For example, -DoutputFile or -Doutput:
mvn dependency:list -DoutputFile=dependencies.output.txt
mvn help:effective-pom -Doutput=effective.pom.xml
If STDOUT is required, cat the file.
Even though it's not generic, so far, the workaround solves all cases for me.

Categories

Resources