Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forge add Dependency command with wrong java-ee version #366

Closed
tobiashochguertel opened this issue Feb 20, 2017 · 0 comments
Closed

Forge add Dependency command with wrong java-ee version #366

tobiashochguertel opened this issue Feb 20, 2017 · 0 comments

Comments

@tobiashochguertel
Copy link
Contributor

tobiashochguertel commented Feb 20, 2017

Issue Overview

Hello Arquillian,

the documentation for getting started has an typo in the java-ee version which is used by the forge command: $ project-add-dependencies org.jboss.spec:jboss-javaee-7.0:1.3.0.Final:provided:pom

it should be : $ project-add-dependencies org.jboss.spec:jboss-javaee-7.0:1.0.3.Final:provided:pom.

Expected Behaviour
1 hochguertelto@T430-1:/cygdrive/x/03_java/prodyna-arquillian
$ mvn clean install -U
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building second-interview-arquillian 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ second-interview-arquillian ---
[INFO] Deleting X:\03_java\prodyna-arquillian\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ second-interview-arquillian ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ second-interview-arquillian ---
[INFO] Compiling 1 source file to X:\03_java\prodyna-arquillian\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ second-interview-arquillian ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ second-interview-arquillian ---
[INFO] Compiling 1 source file to X:\03_java\prodyna-arquillian\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ second-interview-arquillian ---
[INFO] Surefire report directory: X:\03_java\prodyna-arquillian\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running local.hochguertel.prodyna.GreeterTest
7b86732f-e3a6-4431-a074-de1803a8c3d0.jar:
/local/
/local/hochguertel/
/local/hochguertel/prodyna/
/local/hochguertel/prodyna/Greeter.class
/META-INF/
/META-INF/beans.xml
Feb 20, 2017 10:13:18 PM org.jboss.weld.bootstrap.WeldStartup <clinit>
INFO: WELD-000900: 2.3.5 (Final)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.849 sec <<< FAILURE! - in local.hochguertel.prodyna.GreeterTest
should_create_greeting(local.hochguertel.prodyna.GreeterTest)  Time elapsed: 0.043 sec  <<< ERROR!
java.lang.NullPointerException: null
        at local.hochguertel.prodyna.GreeterTest.should_create_greeting(GreeterTest.java:30)


Results :

Tests in error:
  GreeterTest.should_create_greeting:30 NullPointer

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.456s
[INFO] Finished at: Mon Feb 20 22:13:19 CET 2017
[INFO] Final Memory: 22M/166M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project second-interview-arquillian: There are test failures.
[ERROR]
[ERROR] Please refer to X:\03_java\prodyna-arquillian\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
1 hochguertelto@T430-1:/cygdrive/x/03_java/prodyna-arquillian
Current Behaviour
1 hochguertelto@T430-1:/cygdrive/x/03_java/prodyna-arquillian
$ mvn clean install -U
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building second-interview-arquillian 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus3.hochguertel.local/repository/maven-public/org/jboss/spec/jboss-javaee-7.0/1.3.0.Final/jboss-javaee-7.0-1.3.0.Final.pom
[WARNING] The POM for org.jboss.spec:jboss-javaee-7.0:pom:1.3.0.Final is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.679s
[INFO] Finished at: Mon Feb 20 22:06:03 CET 2017
[INFO] Final Memory: 8M/241M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project second-interview-arquillian: Could not resolve dependencies for project local.hochguertel.prodyna:second-interview-arquillian:war:1.0.0-SNAPSHOT: Failure to find org.jboss.spec:jboss-javaee-7.0:pom:1.3.0.Final in http://nexus3.hochguertel.local/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [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/DependencyResolutionException
1 hochguertelto@T430-1:/cygdrive/x/03_java/prodyna-arquillian
Steps To Reproduce
  1. Follow the Get Started Tutorial, instruction with forge project creating.
Additional Information
<details>
 <summary>$mvn --version</summary>
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Maven home: C:\Applications\Maven\apache-maven-3.0.5
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: C:\Applications\Oracle\Java\jdk1.8.0_101\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant