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'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.
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
I am using eclipse Luna + maven 3.2 . I have developed small application and trying to move to console.developers.google.com using mvn:appengine:devserver .
But i am getting build failure . below is the error .
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloworld 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> appengine-maven-plugin:1.9.32:devserver (default-cli) > package # helloworld >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:\googleAppEngine\helloworld\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # helloworld ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:\googleAppEngine\helloworld\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # helloworld ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # helloworld ---
[INFO]
[INFO] --- maven-war-plugin:2.4:war (default-war) # helloworld ---
[INFO] Packaging webapp
[INFO] Assembling webapp [helloworld] in [F:\googleAppEngine\helloworld\target\helloworld-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [F:\googleAppEngine\helloworld/src/main/webapp/WEB-INF] to [F:\googleAppEngine\helloworld\target\helloworld-1.0-SNAPSHOT]
[INFO] Copying webapp resources [F:\googleAppEngine\helloworld\src\main\webapp]
[INFO] Webapp assembled in [121 msecs]
[INFO] Building war: F:\googleAppEngine\helloworld\target\helloworld-1.0-SNAPSHOT.war
[INFO]
[INFO] <<< appengine-maven-plugin:1.9.32:devserver (default-cli) < package # helloworld <<<
[INFO]
[INFO] --- appengine-maven-plugin:1.9.32:devserver (default-cli) # helloworld ---
[INFO]
[INFO] Google App Engine Java SDK - Running Development Server
[INFO]
[INFO] Retrieving Google App Engine Java SDK from Maven
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.016 s
[INFO] Finished at: 2016-03-09T08:14:33+05:30
[INFO] Final Memory: 15M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.32:devserver (default-cli) on project helloworld: Execution default-cli of goal com.google.appengine:appengine-maven-plugin:1.9.32:devserver failed. NoSuchElementException -> [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/PluginExecutionException
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.