2016-09-16 2 views
0

J'essaie d'apprendre le projet open source sur GitHub. son projet multi-module et pour cela, je peux exécuter mvn clean install avec succès. mais le problème est quand je vais déployer en utilisant mvn wildfly:deploy -DskipTests=true il donne des erreurs ci-dessous.so comment puis-je installer ce type de projet localement et s'il vous plaît aider à déployer avec succès sur wildfly erreurs ci-dessous --->org.wildfly.extension.undertow JBAS010409: source de données non liée

$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 

si je tente d'exécuter en utilisant `mvn jboss-as: déployer -DskipTests = true les mêmes erreurs.

Répondre

1

La cible wilfdly:deploy déploie l'artefact sur un Wildfly en cours d'exécution. Dans votre cas, il n'y a pas de Wildfly en cours d'exécution.

Vous pouvez utiliser la cible wildfly:run pour lancer Wildfly et déployer votre artefact.

Référence: https://docs.jboss.org/wildfly/plugins/maven/latest/usage.html

+0

Juste pour ajouter une note trop en 1.1.0.Alpha11 le message d'erreur est mieux aussi. Ce message d'erreur n'est pas très utile. –

+0

[INFO] DÉFAUT DE CONSTRUCTION [INFO] ---------------------------------------- -------------------------------- [INFO] Temps total: 3.227 s [INF] Terminé à: 2016- 09-19T09: 29: 25 + 05: 30 [INFO] Mémoire finale: 17M/212M [INFO] ------------------------- ----------------------------------------------- [ERREUR ] Aucun plugin trouvé pour le préfixe 'wildfly' dans le projet en cours et dans les groupes de plugins [org.apache.maven.plugins, org.codehaus.mojo] disponibles depuis les dépôts [local (/home/yogesh/.m2/repository)] , central (https://repo.maven.apache.org/maven2)] -> [Aide 1] –