0

i am trying to learn open source project on GitHub. its multi-module project and for that, I can execute mvn clean install successfully.but the problem is when I go to deploy using mvn wildfly:deploy -DskipTests=true it gives errors below.so how can I setup this type of project locally and please help how to successfully deploy it on wildfly errors below--->

$mvn wildfly:deploy -DskipTests=true
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building hibernate-ogm-hiking-demo 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> wildfly-maven-plugin:1.0.1.Final:deploy (default-cli) > package @ hibernate-ogm-hiking-demo >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hibernate-ogm-hiking-demo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hibernate-ogm-hiking-demo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hibernate-ogm-hiking-demo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hibernate-ogm-hiking-demo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ hibernate-ogm-hiking-demo ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-war-plugin:2.4:war (default-war) @ hibernate-ogm-hiking-demo ---
[INFO] Packaging webapp
[INFO] Assembling webapp [hibernate-ogm-hiking-demo] in [/media/yogesh/68BFB7DA4E8F9CBB/TEMP/hibernate-demos-master/hibernate-ogm/hiking-demo/target/hibernate-ogm-hiking-demo-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/media/yogesh/68BFB7DA4E8F9CBB/TEMP/hibernate-demos-master/hibernate-ogm/hiking-demo/src/main/webapp]
[INFO] Webapp assembled in [109 msecs]
[INFO] Building war: /media/yogesh/68BFB7DA4E8F9CBB/TEMP/hibernate-demos-master/hibernate-ogm/hiking-demo/target/hibernate-ogm-hiking-demo-1.0-SNAPSHOT.war
[INFO] 
[INFO] <<< wildfly-maven-plugin:1.0.1.Final:deploy (default-cli) < package @ hibernate-ogm-hiking-demo <<<
[INFO] 
[INFO] --- wildfly-maven-plugin:1.0.1.Final:deploy (default-cli) @ hibernate-ogm-hiking-demo ---
Sep 16, 2016 12:21:47 PM org.xnio.Xnio <clinit>
INFO: XNIO version 3.2.0.Final
Sep 16, 2016 12:21:47 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.2.0.Final
Sep 16, 2016 12:21:47 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 4.0.0.Final
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.268 s
[INFO] Finished at: 2016-09-16T12:21:53+05:30
[INFO] Final Memory: 27M/341M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.1.Final:deploy (default-cli) on project hibernate-ogm-hiking-demo: Could not execute goal deploy on /media/yogesh/68BFB7DA4E8F9CBB/TEMP/hibernate-demos-master/hibernate-ogm/hiking-demo/target/hibernate-ogm-hiking-demo-1.0-SNAPSHOT.war. Reason: I/O Error could not execute operation '{
[ERROR] "operation" => "read-attribute",
[ERROR] "address" => [],
[ERROR] "name" => "launch-type"
[ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to http-remoting://127.0.0.1:9990. The connection timed out
[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/MojoExecutionException

if I try to run using `mvn jboss-as:deploy -DskipTests=true the same errors.

Yogesh Doke
  • 1,706
  • 2
  • 12
  • 20

1 Answers1

1

The wilfdly:deploy target is deploying the artifact to a running Wildfly. In you case there is no running Wildfly.

You can use the wildfly:run target to start Wildfly and deploy your artifact.

Reference: https://docs.jboss.org/wildfly/plugins/maven/latest/usage.html

Kazaag
  • 2,115
  • 14
  • 14
  • Just to add a note too in 1.1.0.Alpha11 the error message is better too. This error message isn't very useful. – James R. Perkins Sep 16 '16 at 18:48
  • [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.227 s [INFO] Finished at: 2016-09-19T09:29:25+05:30 [INFO] Final Memory: 17M/212M [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix 'wildfly' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/yogesh/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1] – Yogesh Doke Sep 19 '16 at 04:14