0
我正在嘗試學習GitHub上的開源項目。它的多模塊項目,爲此,我可以執行mvn clean install successfully。但問題是當我使用mvn wildfly:deploy -DskipTests=true
進行部署時,它會在下面給出錯誤。因此,如何在本地設置這種類型的項目並請幫助如何成功部署它下面--->org.wildfly.extension.undertow JBAS010409:未綁定的數據源
$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
wildfly
錯誤,如果我嘗試使用運行`MVN的jboss-如:部署-DskipTests =真正的同樣的錯誤。
只需添加註釋太1.1.0.Alpha11錯誤消息也較好。此錯誤消息不是非常有用。 –
[INFO] BUILD FAILURE [INFO] ---------------------------------------- -------------------------------- [INFO]總時間:3.227秒 [信息]完成時間:2016- 09-19T09:29:25 + 05:30 [INFO] Final Memory:17M/212M [INFO] ------------------------- ----------------------------------------------- [錯誤]沒有在當前項目和插件組中找到前綴'wildfly'的插件[org.apache.maven.plugins,org.codehaus.mojo]可從存儲庫[local(/home/yogesh/.m2/repository) ,中央(https://repo.maven.apache.org/maven2)] - > [幫助1] –