OPCUA Milo- Stack-Core Failure - building phase - java

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.

Related

mvn clean compile jib:build failed

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

Unable to deploy code to google cloud environment

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

Building Giraph with Hadoop

I am trying to set up Giraph with Hadoop 2.7.1
Try as I might, it doesn't seem to work.
I have tried following the below links,
http://giraph.apache.org/build.html
https://blog.cloudera.com/blog/2014/02/how-to-write-and-run-giraph-jobs-on-hadoop/
http://lab.hypotheses.org/1207
What happens when I try to build using mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests package
hadoopuser:/usr/local/giraph$ mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Giraph Parent
[INFO] Apache Giraph Core
[INFO] Apache Giraph Examples
[INFO] Apache Giraph Distribution
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Parent 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-parent ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-parent ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-parent ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-only (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-duplicate (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-dep-mgt (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-duplicate-finder-plugin:1.0.4:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) # giraph-parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Core 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-core ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-core ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-core ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-core ---
[INFO]
[INFO] --- munge-maven-plugin:1.0:munge (munge) # giraph-core ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # giraph-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # giraph-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 711 source files to /usr/local/giraph/giraph-core/target/munged/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[57,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[39,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Some input files use or override a deprecated API.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Recompile with -Xlint:deprecation for details.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Some input files use unchecked or unsafe operations.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Recompile with -Xlint:unchecked for details.
[INFO] 10 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent ............................... SUCCESS [ 4.374 s]
[INFO] Apache Giraph Core ................................. FAILURE [ 8.469 s]
[INFO] Apache Giraph Examples ............................. SKIPPED
[INFO] Apache Giraph Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.136 s
[INFO] Finished at: 2015-11-16T10:19:07+05:30
[INFO] Final Memory: 45M/335M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project giraph-core: Compilation failure: Compilation failure:
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[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 :giraph-cor
What happens when I try to build using, mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests install
hadoopuser:/usr/local/giraph$ mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Giraph Parent
[INFO] Apache Giraph Core
[INFO] Apache Giraph Examples
[INFO] Apache Giraph Distribution
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Parent 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-parent ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-parent ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-parent ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-only (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-duplicate (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-dep-mgt (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-duplicate-finder-plugin:1.0.4:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) # giraph-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # giraph-parent ---
[INFO] Installing /usr/local/giraph/pom.xml to /home/hadoopuser/.m2/repository/org/apache/giraph/giraph-parent/1.1.0/giraph-parent-1.1.0.pom
[INFO] Installing /usr/local/giraph/target/giraph-parent-1.1.0-site.xml to /home/hadoopuser/.m2/repository/org/apache/giraph/giraph-parent/1.1.0/giraph-parent-1.1.0-site.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Core 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-core ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-core ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-core ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-core ---
[INFO]
[INFO] --- munge-maven-plugin:1.0:munge (munge) # giraph-core ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # giraph-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # giraph-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 711 source files to /usr/local/giraph/giraph-core/target/munged/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[57,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[39,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Some input files use or override a deprecated API.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Recompile with -Xlint:deprecation for details.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Some input files use unchecked or unsafe operations.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Recompile with -Xlint:unchecked for details.
[INFO] 10 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent ............................... SUCCESS [ 4.360 s]
[INFO] Apache Giraph Core ................................. FAILURE [ 7.473 s]
[INFO] Apache Giraph Examples ............................. SKIPPED
[INFO] Apache Giraph Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.122 s
[INFO] Finished at: 2015-11-16T10:26:04+05:30
[INFO] Final Memory: 46M/374M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project giraph-core: Compilation failure: Compilation failure:
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[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 :giraph-core
---
Version information follows,
Hadoop:
hadoopuser:~$ hadoop version
Hadoop 2.7.1
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r 15ecc87ccf4a0228f35af08fc56de536e6ce657a
Compiled by jenkins on 2015-06-29T06:04Z
Compiled with protoc 2.5.0
From source with checksum fc0a1a23fc1868e4d5ee7fa2b28a58a
This command was run using /usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.1.jar
Giraph is version 1.1.0 downloaded from here : http://archive.apache.org/dist/giraph/giraph-1.1.0/giraph-dist-1.1.0-src.tar.bz2
Java
hadoopuser:~$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
Maven
hadoopuser:~$ mvn -version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T17:27:37+05:30)
Maven home: /opt/apache-maven-3.3.3
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.8.0/jre
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-68-generic", arch: "amd64", family: "unix"
Edit:
As was suggested by Steve Kaeser in his answer I changed my pom.xlm and changed part is shown below.
<properties>
<hadoop.version>SET_HADOOP_VERSION_USING_MVN_DASH_D_OPTION</hadoop.version>
<munge.symbols>PURE_YARN</munge.symbols>
<!-- TODO: add these checks eventually -->
<project.enforcer.skip>true</project.enforcer.skip>
<giraph.maven.dependency.plugin.skip>true</giraph.maven.dependency.plugin.skip>
<giraph.maven.duplicate.finder.skip>true</giraph.maven.duplicate.finder.skip>
</properties>
After doing this when I run mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests install I get a lot of output and it fails. Parts of the output are shown below,
[INFO]
[INFO] --- apache-rat-plugin:0.8:check (default) # giraph-core ---
[INFO] Exclude: CODE_CONVENTIONS
[INFO] Exclude: **/target/**
[INFO] Exclude: /_bsp/**
[INFO] Exclude: .checkstyle
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: .git/**
[INFO] Exclude: .gitignore
[INFO] Exclude: .arcconfig
[INFO] Exclude: *.patch
[INFO] Exclude: .idea/**
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.ipr
[INFO] Exclude: **/test/resources/**
[INFO] Exclude: giraph-gora/conf/*
[INFO] Exclude: giraph-rexster/giraph-kibble/src/main/resources/META-INF/services/com.tinkerpop.rexster.extension.RexsterExtension
[INFO] Exclude: src/site/resources/images/*.svg
[INFO]
[INFO] >>> findbugs-maven-plugin:2.5.1:check (default) > :findbugs # giraph-core >>>
[INFO]
[INFO] --- findbugs-maven-plugin:2.5.1:findbugs (findbugs) # giraph-core ---
[INFO] Fork Value is true
[java] The following errors occurred during analysis:
[java] Nov 17, 2015 3:16:36 PM edu.umd.cs.findbugs.TextUIBugReporter reportAnalysisError
[java] SEVERE: Error scanning java/util/Comparator for referenced classes
[java] java.lang.ArrayIndexOutOfBoundsException: 51966
[java] at org.objectweb.asm.ClassReader.readUTF8(Unknown Source)
[java] at org.objectweb.asm.ClassReader.readClass(Unknown Source)
.
.
.
.
.
.
.
.
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent ............................... SUCCESS [ 4.140 s]
[INFO] Apache Giraph Core ................................. FAILURE [ 37.541 s]
[INFO] Apache Giraph Examples ............................. SKIPPED
[INFO] Apache Giraph Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.972 s
[INFO] Finished at: 2015-11-17T15:16:37+05:30
[INFO] Final Memory: 68M/537M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.5.1:findbugs (findbugs) on project giraph-core: Execution findbugs of goal org.codehaus.mojo:findbugs-maven-plugin:2.5.1:findbugs failed: Java returned: 1 -> [Help 1]
[ERROR]
I ran into this issue today. Finally I needed two patches to fix it:
Open pom.xml in base directory and replace <munge.symbols>PURE_YARN,STATIC_SASL_SYMBOL</munge.symbols> with: <munge.symbols>PURE_YARN</munge.symbols>
Apply patch found here: GIRAPH-1110.02.patch
Build using the clean flag of maven: mvn -Phadoop_yarn -Dhadoop.version=2.7.3 clean package -DskipTests
I just ran into this issue earlier today and found a reply in the mailing list that suggests removing STATIC_SASL_SYMBOL from munge.symbols in the hadoop_yarn profile.
I was able to build that profile after making that change.
Here is the link to the mailing list archive: http://mail-archives.apache.org/mod_mbox/giraph-user/201501.mbox/%3C54B17196.4040107#hiro-tan.org%3E

gwt-maven-plugin not finding sources in a maven module in a GWT maven reactor build

I have the goal of creating a maven reactor build for a modular RequestFactory project. I'm using Thomas Broyer's maven archetype as suggested by him in GWT Code Server not finding a module in a newly generated project using a maven archetype,
Thanks to his effort, it works immediately out of the box and without any problems whatsoever. It creates three modules (with names ending in client, server, shared).
What bugs me is that three projects have their java sources in the same package. One of the things I tried to do, after the project was up and running, was to refactor the packages of the three maven modules to actually end in their respective names. This works for all but the client project, since the GWT compiler (gwt-maven-plugin) does not seem to look for sources outside of the client project's own package when building the client package.
Hence, if the shared project has it's own package that is not a subpackage of the client's, this will result in GWT not being able to resolve all sources in shared.
My question is, am I missing something obvious, or am I trying to do something that is not recommended at all? Any pointers would be greatly appreciated.
I have been toying around with GWT and maven for a while now, but am still no expert so please bear with me :-). Here is what I did in detail:
Created the project using Thomas Broyer's archetype (the first time I selected "N" in order to be able to input a module name different than "App" the second time):
mvn archetype:generate \
-DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
-DarchetypeGroupId=net.ltgt.gwt.archetypes \
-DarchetypeArtifactId=modular-requestfactory \
-DarchetypeVersion=1.0-SNAPSHOT
Define value for property 'groupId': : com.example
Define value for property 'artifactId': : my-modular-app
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': com.example: : com.example.my.modular.app
Define value for property 'module': App: : MyModularApp
Define value for property 'module-short-name': ${module.toLowerCase()}: :
Confirm properties configuration:
groupId: com.example
artifactId: my-modular-app
version: 1.0-SNAPSHOT
package: com.example.my.modular.app
module: MyModularApp
module-short-name: ${module.toLowerCase()}
Y: : Y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: modular-requestfactory:1.0-SNAPSHOT
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.example
[INFO] Parameter: artifactId, Value: my-modular-app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.example.my.modular.app
[INFO] Parameter: packageInPathFormat, Value: com/example/my/modular/app
[INFO] Parameter: package, Value: com.example.my.modular.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: module, Value: MyModularApp
[INFO] Parameter: groupId, Value: com.example
Feb 22, 2015 12:51:56 PM org.apache.velocity.runtime.log.JdkLogChute log
INFO: FileResourceLoader : adding path '.'
[INFO] Parameter: module-short-name, Value: mymodularapp
[INFO] Parameter: artifactId, Value: my-modular-app
[INFO] Parent element not overwritten in /private/tmp/mvn/my-modular-app/my-modular-app-client/pom.xml
[INFO] Parent element not overwritten in /private/tmp/mvn/my-modular-app/my-modular-app-shared/pom.xml
[INFO] Parent element not overwritten in /private/tmp/mvn/my-modular-app/my-modular-app-server/pom.xml
[INFO] project created from Archetype in dir: /private/tmp/mvn/my-modular-app
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:35 min
[INFO] Finished at: 2015-02-22T12:51:56+01:00
[INFO] Final Memory: 16M/216M
[INFO] ------------------------------------------------------------------------
Executed mvn clean install -Dgwt.draftCompile. Worked like a charm.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] my-modular-app
[INFO] my-modular-app-shared
[INFO] my-modular-app-client
[INFO] my-modular-app-server
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-modular-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # my-modular-app ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # my-modular-app ---
[INFO] Installing /private/tmp/mvn/my-modular-app/pom.xml to /Users/nick/.m2/repository/com/example/my-modular-app/1.0-SNAPSHOT/my-modular-app-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-modular-app-shared 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # my-modular-app-shared ---
[INFO] Deleting /private/tmp/mvn/my-modular-app/my-modular-app-shared/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # my-modular-app-shared ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/mvn/my-modular-app/my-modular-app-shared/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) # my-modular-app-shared ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to /private/tmp/mvn/my-modular-app/my-modular-app-shared/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # my-modular-app-shared ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/mvn/my-modular-app/my-modular-app-shared/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) # my-modular-app-shared ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # my-modular-app-shared ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # my-modular-app-shared ---
[INFO] Building jar: /private/tmp/mvn/my-modular-app/my-modular-app-shared/target/my-modular-app-shared-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) # my-modular-app-shared ---
[INFO] Building jar: /private/tmp/mvn/my-modular-app/my-modular-app-shared/target/my-modular-app-shared-1.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # my-modular-app-shared ---
[INFO] Installing /private/tmp/mvn/my-modular-app/my-modular-app-shared/target/my-modular-app-shared-1.0-SNAPSHOT.jar to /Users/nick/.m2/repository/com/example/my-modular-app-shared/1.0-SNAPSHOT/my-modular-app-shared-1.0-SNAPSHOT.jar
[INFO] Installing /private/tmp/mvn/my-modular-app/my-modular-app-shared/pom.xml to /Users/nick/.m2/repository/com/example/my-modular-app-shared/1.0-SNAPSHOT/my-modular-app-shared-1.0-SNAPSHOT.pom
[INFO] Installing /private/tmp/mvn/my-modular-app/my-modular-app-shared/target/my-modular-app-shared-1.0-SNAPSHOT-sources.jar to /Users/nick/.m2/repository/com/example/my-modular-app-shared/1.0-SNAPSHOT/my-modular-app-shared-1.0-SNAPSHOT-sources.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-modular-app-client 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # my-modular-app-client ---
[INFO] Deleting /private/tmp/mvn/my-modular-app/my-modular-app-client/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # my-modular-app-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/mvn/my-modular-app/my-modular-app-client/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) # my-modular-app-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /private/tmp/mvn/my-modular-app/my-modular-app-client/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # my-modular-app-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/mvn/my-modular-app/my-modular-app-client/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) # my-modular-app-client ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # my-modular-app-client ---
[INFO] No tests to run.
[INFO]
[INFO] --- gwt-maven-plugin:2.7.0:compile (gwt-compile) # my-modular-app-client ---
[INFO] Compiling module com.example.my.modular.app.MyModularApp
[INFO] Compiling 3 permutations
[INFO] Compiling permutation 0...
[INFO] Process output
[INFO] Compiling
[INFO] Compiling permutation 1...
[INFO] Process output
[INFO] Compiling
[INFO] Compiling permutation 2...
[INFO] Compile of permutations succeeded
[INFO] Compilation succeeded -- 8.061s
[INFO] Linking into /private/tmp/mvn/my-modular-app/my-modular-app-client/target/my-modular-app-client-1.0-SNAPSHOT/mymodularapp
[INFO] Link succeeded
[INFO] Linking succeeded -- 0.331s
[INFO]
[INFO] --- maven-war-plugin:2.5:war (default-war) # my-modular-app-client ---
[INFO] Packaging webapp
[INFO] Assembling webapp [my-modular-app-client] in [/private/tmp/mvn/my-modular-app/my-modular-app-client/target/my-modular-app-client-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/private/tmp/mvn/my-modular-app/my-modular-app-client/src/main/webapp]
[INFO] Webapp assembled in [29 msecs]
[INFO] Building war: /private/tmp/mvn/my-modular-app/my-modular-app-client/target/my-modular-app-client-1.0-SNAPSHOT.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # my-modular-app-client ---
[INFO] Installing /private/tmp/mvn/my-modular-app/my-modular-app-client/target/my-modular-app-client-1.0-SNAPSHOT.war to /Users/nick/.m2/repository/com/example/my-modular-app-client/1.0-SNAPSHOT/my-modular-app-client-1.0-SNAPSHOT.war
[INFO] Installing /private/tmp/mvn/my-modular-app/my-modular-app-client/pom.xml to /Users/nick/.m2/repository/com/example/my-modular-app-client/1.0-SNAPSHOT/my-modular-app-client-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-modular-app-server 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # my-modular-app-server ---
[INFO] Deleting /private/tmp/mvn/my-modular-app/my-modular-app-server/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # my-modular-app-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/mvn/my-modular-app/my-modular-app-server/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) # my-modular-app-server ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /private/tmp/mvn/my-modular-app/my-modular-app-server/target/classes
[INFO]
[INFO] --- exec-maven-plugin:1.3.2:exec (requestfactory-validation-tool) # my-modular-app-server ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # my-modular-app-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/mvn/my-modular-app/my-modular-app-server/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) # my-modular-app-server ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # my-modular-app-server ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.5:war (default-war) # my-modular-app-server ---
[INFO] Packaging webapp
[INFO] Assembling webapp [my-modular-app-server] in [/private/tmp/mvn/my-modular-app/my-modular-app-server/target/my-modular-app-server-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/private/tmp/mvn/my-modular-app/my-modular-app-server/src/main/webapp]
[INFO] Processing overlay [ id com.example:my-modular-app-client]
[INFO] Webapp assembled in [50 msecs]
[INFO] Building war: /private/tmp/mvn/my-modular-app/my-modular-app-server/target/my-modular-app-server-1.0-SNAPSHOT.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # my-modular-app-server ---
[INFO] Installing /private/tmp/mvn/my-modular-app/my-modular-app-server/target/my-modular-app-server-1.0-SNAPSHOT.war to /Users/nick/.m2/repository/com/example/my-modular-app-server/1.0-SNAPSHOT/my-modular-app-server-1.0-SNAPSHOT.war
[INFO] Installing /private/tmp/mvn/my-modular-app/my-modular-app-server/pom.xml to /Users/nick/.m2/repository/com/example/my-modular-app-server/1.0-SNAPSHOT/my-modular-app-server-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] my-modular-app ..................................... SUCCESS [ 0.185 s]
[INFO] my-modular-app-shared .............................. SUCCESS [ 1.014 s]
[INFO] my-modular-app-client .............................. SUCCESS [ 10.829 s]
[INFO] my-modular-app-server .............................. SUCCESS [ 1.170 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.341 s
[INFO] Finished at: 2015-02-22T12:55:14+01:00
[INFO] Final Memory: 27M/257M
[INFO] ------------------------------------------------------------------------
Aftwerwards, I refactored the project structure so that each of the client, server, shared has it's own subpackage.
(check) Refactor project my-modular-app-shared:
Rename package com.example.my.modular.app -> com.example.my.modular.app.shared
Replace server's pom.xml reference from com.example.my.modular.app.MyModularAppFactory -> com.example.my.modular.app.shared.MyModularAppFactory
Execute mvn clean install -Dgwt.draftCompile with success.
(check) Refactor project my-modular-app-server:
Rename package com.example.my.modular.app -> com.example.my.modular.app.server
Update GreetingResponseProxy's #ProxyForName("com.example.my.modular.app.GreetingResponse") -> #ProxyForName("com.example.my.modular.app.server.GreetingResponse")
Update GreetingContext's #ServiceName("com.example.my.modular.app.GreetingService") -> #ServiceName("com.example.my.modular.app.server.GreetingService")
Execute mvn clean install -Dgwt.draftCompile with success.
(fail) Refactor project my-modular-app-client:
Rename package com.example.my.modular.app -> com.example.my.modular.app.client
Update client's MyModuleApp.gwt.xml com.example.my.modular.app.MyModularApp -> com.example.my.modular.app.client.MyModularApp
Update client pom.xml's gwt-maven-plugin module entry com.example.my.modular.app.MyModularApp -> com.example.my.modular.app.client.MyModularApp
[INFO] Compiling module com.example.my.modular.app.client.MyModularApp
[INFO] Tracing compile failure path for type 'com.example.my.modular.app.client.MyModularApp'
[INFO] [ERROR] Errors in 'file:/private/tmp/mvn/my-modular-app/my-modular-app-client/src/main/java/com/example/my/modular/app/client/MyModularApp.java'
[INFO] [ERROR] Line 41: No source code is available for type com.example.my.modular.app.shared.MyModularAppFactory; did you forget to inherit a required module?
[INFO] [ERROR] Line 135: No source code is available for type com.example.my.modular.app.shared.GreetingResponseProxy; did you forget to inherit a required module?
[INFO] [ERROR] Line 125: No source code is available for type com.example.my.modular.app.shared.FieldVerifier; did you forget to inherit a required module?
[INFO] Finding entry point classes
[INFO] Tracing compile failure path for type 'com.example.my.modular.app.client.MyModularApp'
[INFO] [ERROR] Errors in 'file:/private/tmp/mvn/my-modular-app/my-modular-app-client/src/main/java/com/example/my/modular/app/client/MyModularApp.java'
[INFO] [ERROR] Line 41: No source code is available for type com.example.my.modular.app.shared.MyModularAppFactory; did you forget to inherit a required module?
[INFO] [ERROR] Line 135: No source code is available for type com.example.my.modular.app.shared.GreetingResponseProxy; did you forget to inherit a required module?
[INFO] [ERROR] Line 125: No source code is available for type com.example.my.modular.app.shared.FieldVerifier; did you forget to inherit a required module?
[INFO] [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] my-modular-app ..................................... SUCCESS [ 0.180 s]
[INFO] my-modular-app-shared .............................. SUCCESS [ 0.999 s]
[INFO] my-modular-app-client .............................. FAILURE [ 5.156 s]
[INFO] my-modular-app-server .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.473 s
There is nothing else in the pom.xml and source files that appears in need to be changed. All Java compilations work out perfectly. However, the end result is a fail, since the GWT compiler (gwt-maven-plugin) does not seem to look for sources outside of the client project's own package when building the client package. Hence, if the shared project has it's own subpackage that is not a subpackage of the client's this will result in gwt-maven-plugin not being able to resolve any sources in shared.
So anything that is under shared is not found by the GWT compiler. Interestingly, if I rename the package in my-modular-app-shared to com.example.my.modular.app.client instead of com.example.my.modular.app.shared and update the references, everything works as a charm.
It seems to me that the problem is that gwt-maven-plugin is confined to the package of the client and all other referenced projects ought to have all GWT relevant sources in subpackages of the client package. The question is, how can I tell the GWT compiler to look in a different package when traversing different maven modules?
Any help/pointers greatly appreciated, and thanks in advance!
PS: I managed to create a workaround by adding the following GWT module in the client project (package com.example.my.modular.app) and inheriting it in the MyModularApp.gwt.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Google Inc.//DTD Google Web Toolkit 1.6.4//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.4.0/distro-source/core/src/gwt-module.dtd">
<module>
<source path="shared"/>
</module>
So to rephrase the question: there an automatic way of achieving this instead of having the need to declare artificial modules?
This is just how GWT works, the compiler only sees classes from the source path which is a subset of the classpath.
Generally, people put their gwt.xml in the com.example.my.modular.app package and add client and shared subpackages to the source path:
<source path="client"/>
<source path="shared"/>

unable to fix liqibase maven plugin update sql during the process of building war file for mifos source code?

error during building war file.we r building war file for mifos source code through maven tool. mifos is java open source code. we use mvn clean package -Dmaven.test.skip=ture cmd and give path name til head folder of source code as shown below
C:\mifos_src_code\mifos-head-2.1.6-0-gb6f7b86\mifos-head-e9d4674>mvn clean package -Dmaven.test.
skip=true;
[INFO] Scanning for projects...
[WARNING]
[WARNING]
Some problems were encountered while building the effective model for org.mifos:mifos-
db:jar:1.8-SNAPSHOT
[WARNING]
'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin # line 132, column 21
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin # line 149, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.mifos:mifos-
accounting:jar:1.8-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missin
g. # line 29, 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]
Mifos - Parent
[INFO] Mifos - DB Management
[INFO] Mifos - Common
[INFO] Mifos - Domain Data Transfer Objects
[INFO] Mifos - Test Framework
[INFO] Mifos - Service Interfaces
[INFO] Mifos - User Interface
[INFO] Mifos - Accounting Integration
[INFO] Mifos - Questionnaire
[INFO] Mifos - Cashflow
[INFO] Mifos - Abstract Domain
[INFO] Mifos - Organization
[INFO] Mifos - Application Domain
[INFO] Mifos - Application
[INFO] Mifos - Acceptance Tests
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Mifos - Parent 1.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # mifos-parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Mifos - DB Management 1.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # mifos-db ---
[INFO] Deleting C:\mifos_src_code\mifos-head-2.1.6-0-gb6f7b86\mifos-head-e9d4674\db\target
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-1:read-project-properties (default) # mifos-db
---
[WARNING] Ignoring missing properties file: C:\Users\Pavan.Kumar1\.mifos\local.properties
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) # mifos-db ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # mifos-db ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) # mifos-db ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\mifos_src_code\mifos-head-2.1.6-0-
gb6f7b86\mifos-h
ead-e9d4674\db\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # mifos-db ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) # mifos-db ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\mifos_src_code\mifos-head-2.1.6-0-gb6f7b86\mifos-head-
e9d46
74\db\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- liquibase-maven-plugin:2.0.0:updateSQL (update-sql) # mifos-db ---
[INFO] ------------------------------------------------------------------------
[INFO] Parsing Liquibase Properties File
[INFO] File: target/classes/liquibase.properties
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Mifos - Parent .................................... SUCCESS [0.110s]
[INFO] Mifos - DB Management ............................. FAILURE [1.570s]
[INFO] Mifos - Common .................................... SKIPPED
[INFO] Mifos - Domain Data Transfer Objects .............. SKIPPED
[INFO] Mifos - Test Framework ............................ SKIPPED
[INFO] Mifos - Service Interfaces ........................ SKIPPED
[INFO] Mifos - User Interface ............................ SKIPPED
[INFO] Mifos - Accounting Integration .................... SKIPPED
[INFO] Mifos - Questionnaire ............................. SKIPPED
[INFO] Mifos - Cashflow .................................. SKIPPED
[INFO] Mifos - Abstract Domain ........................... SKIPPED
[INFO] Mifos - Organization .............................. SKIPPED
[INFO] Mifos - Application Domain ........................ SKIPPED
[INFO] Mifos - Application ............................... SKIPPED
[INFO] Mifos - Acceptance Tests .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.080s
[INFO] Finished at: Mon May 21 10:57:16 IST 2012
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0.0:updateSQL
(update-sql)
on project mifos-db: Error setting up or running Liquibase: java.sql.SQLException: Access
denie
d for user 'mifos'#'localhost' (using password: YES) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the
following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :mifos-db
C:\mifos_src_code\mifos-head-2.1.6-0-gb6f7b86\mifos-head-e9d4674>'
I would recommend to start fixing your pom with the first lines:
[WARNING]
'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin # line 132, column 21
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin # line 149, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.mifos:mifos-
accounting:jar:1.8-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missin
g. # line 29, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of
your build.
[WARNING]
After you fixed that i can see that based on this message:
on project mifos-db: Error setting up or running Liquibase: java.sql.SQLException: Access
denied for user 'mifos'#'localhost' (using password: YES)
That you are trying to access a database which does not allow a password in relationship with this user (Assuming MySQL ?). You have to fix the permissions for this user.

Categories

Resources