javaee-samples / javaee7-samples

Java EE 7 Samples
https://travis-ci.org/javaee-samples/javaee7-samples
Other
2.51k stars 1.66k forks source link

[Question] BUILD FAILURE - how to run success? #357

Closed donhuvy closed 8 years ago

donhuvy commented 8 years ago

I follow this video tutorial: https://www.youtube.com/watch?v=BB4b-Yz9cF0

mvn clean install -Dmaven.test.skip=true

cd jpa
cd native-sql
cd native-sql-resultset-mapping

mvn clean install -Pwildfly-embedded-arquillian

but not success. I stuck at here and can't overcome. The below is terminal screen, please help me! (Because terminal screen text is too long, I must paste it to Gist)

https://gist.github.com/donhuvy/2e91ca8924de0f739121b0b4100af579

Thank you!

screen shot 2016-07-24 at 4 31 42 pm
donhuvy commented 8 years ago
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (unpack) on project jpa-native-sql: Unable to resolve artifact. Could not transfer artifact org.wildfly:wildfly-dist:zip:8.2.0.Final from/to central (https://repo.maven.apache.org/maven2): GET request of: org/wildfly/wildfly-dist/8.2.0.Final/wildfly-dist-8.2.0.Final.zip from central failed
arjantijms commented 8 years ago

Looks like some problem related to reaching maven central, as the wildfly 8.2 artefact at https://repo.maven.apache.org/maven2/org/wildfly/wildfly-dist/8.2.0.Final/ seems to be there.

Alternatively you could try to use some of the other "embedded" profiles such as

mvn clean test -Pwildfly-managed-arquillian

or

mvn clean test -Ptomee-managed-arquillian

or

mvn clean test -Pliberty-embedded-arquillian

Yet another alternative is to start up your own external WildFly separately and then use

mvn clean test -Pwildfly-remote-arquillian

donhuvy commented 8 years ago

Thank you! I run

mvn clean test -Pwildfly-managed-arquillian

and success.