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
Related
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
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.
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
Maven release build of EAR app fails due to failure of MODULE 2 to find a release version of MODULE 1.
Maven version is 2.2.1.
Maven command:
--batch-mode release:prepare release:perform -DdryRun=false -Darguments='-Dmaven.test.skip=true' -e
Excerpt from log:
------------------------------------------------------------------------
[INFO] [INFO] Building MODULE 1
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [resources:resources {execution: default-resources}]
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory /home/jenkins/workspace/repo-trunk-release/target/checkout/module-1-trunk-release/src/main/resources
[INFO] [INFO] [compiler:compile {execution: default-compile}]
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 120 source files to /home/jenkins/workspace/repo-trunk-release/target/checkout/module-1-trunk-release/target/classes
[INFO] [WARNING] /home/jenkins/workspace/repo-trunk-release/target/checkout/module-1-trunk-release/src/main/java/com/.../SomeClass.java: Some input files use or override a deprecated API.
[INFO] [WARNING] /home/jenkins/workspace/repo-trunk-release/target/checkout/module-1-trunk-release/src/main/java/com/.../SomeClass.java: Recompile with -Xlint:deprecation for details.
[INFO] [WARNING] /home/jenkins/workspace/repo-trunk-release/target/checkout/module-1-trunk-release/src/main/java/com/.../SomeClass.java: Some input files use unchecked or unsafe operations.
[INFO] [WARNING] /home/jenkins/workspace/repo-trunk-release/target/checkout/module-1-trunk-release/src/main/java/com/.../SomeClass.java: Recompile with -Xlint:unchecked for details.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building MODULE 2
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [resources:resources {execution: default-resources}]
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] Copying 6 resources
[INFO] Downloading: http:.../nexus/.../module-1-trunk-release/11.0.29/module-1-trunk-release-11.0.29.jar
[INFO] [INFO] Unable to find resource '....apps:module-1-trunk-release:jar:11.0.29' in repository central (http://.../nexus/content/groups/public)
[INFO] Downloading:.http//../nexus/content/repositories/.../module-1-trunk-release/11.0.29/module-1-trunk-release-11.0.29.jar
[INFO] [WARNING] Unable to get resource '....apps:module-1-trunk-release:jar:11.0.29' from repository secondary (http://.../nexus/content/repositories/...-releases): Error transferring file: Connection refused
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Failed to resolve artifact.
[INFO]
[INFO] Missing:
[INFO] ----------
[INFO] 1) ....apps:module-1-trunk-release:jar:11.0.29
[INFO]
[INFO] Try downloading the file manually from the project website.
[INFO]
[INFO] Then, install it using the command:
[INFO] mvn install:install-file -DgroupId=....apps -DartifactId=module-1-trunk-release -Dversion=11.0.29 -Dpackaging=jar -Dfile=/path/to/file
[INFO]
[INFO] Alternatively, if you host your own repository you can deploy the file there:
[INFO] mvn deploy:deploy-file -DgroupId=....apps -DartifactId=module-1-trunk-release -Dversion=11.0.29 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[INFO]
[INFO] Path to dependency:
[INFO] 1) ....apps:module-2:jar:11.0.29
[INFO] 2) ....apps:module-1:jar:11.0.29
[INFO]
[INFO] ----------
[INFO] 1 required artifact is missing.
[INFO]
[INFO] for artifact:
[INFO] ....apps:module-2:jar:11.0.29
[INFO]
[INFO] from the specified remote repositories:
[INFO] repo-pub1 (http://..../nexus/content/repositories/...-releases),
[INFO] repo-pub2 (http://..../nexus/content/groups/public)
[INFO]
[INFO]
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] For more information, run Maven with the -e switch
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 42 seconds
[INFO] [INFO] Finished at: Thu Dec 03 17:18:49 GMT 2015
[INFO] [INFO] Final Memory: 99M/438M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit code: '1'
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at hudson.maven.agent.Main.launch(Main.java:205)
at hudson.maven.MavenBuilder.call(MavenBuilder.java:154)
at hudson.maven.Maven2Builder.call(Maven2Builder.java:79)
at hudson.maven.Maven2Builder.call(Maven2Builder.java:55)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code: '1'
at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:174)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 27 more
Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed, exit code: '1'
at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:91)
at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.runLogic(RunPerformGoalsPhase.java:135)
at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:46)
at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:429)
at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:381)
at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:170)
... 30 more
Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution failed, exit code: '1'
at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:433)
at org.apache.maven.shared.release.exec.AbstractMavenExecutor.executeGoals(AbstractMavenExecutor.java:114)
at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:85)
... 35 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 27 seconds
[INFO] Finished at: Thu Dec 03 17:18:50 GMT 2015
[INFO] Final Memory: 33M/404M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving /home/jenkins/workspace/repo-trunk-release/pom.xml to ....apps/.../11.0.29-SNAPSHOT/repo-trunk-release-11.0.29-SNAPSHOT.pom
channel stopped
Finished: FAILURE
Fixed build and this is how.
I first switched to maven 3.0.2 in the Jenkins config, since as alluded to by
#khmarbaise using maven 2.2.1 was the root of issue.
But then I got wsimport errors, to fix these I removed the encoding property
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
from the parent pom.
I then got a lot of encoding errors, of the type,
error: unmappable character for encoding ANSI_X3.4-1968
so to fix these I added
-Dfile.encoding=UTF8
to the the to MAVEN OPTS props in the Jenkins job config.
The encoding errors were related to the existence of lots of 'strange' chars in JavaDoc and elsewhere in app code.
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.