Open cmoulliard opened 8 years ago
I have the same error...
ownloading: https://repository.jboss.org/nexus/content/repositories/fs-releases/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar
Downloading: https://repo.maven.apache.org/maven2/junit/junit/4.0/junit-4.0.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar
Downloaded: https://repo.maven.apache.org/maven2/junit/junit/4.0/junit-4.0.jar (104 KB at 781.3 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar (12 KB at 99.9 KB/sec)
[INFO] Surefire report directory: /Users/alwong/sandbox/rider-auto-openshift/rider-auto-file/target/surefire-reports
[org.springframework.test.context.junit4.SpringJUnit4ClassRunner] : SpringJUnit4ClassRunner constructor called with [class org.fusesource.camel.test.FilePollerUnitTest].
[org.springframework.test.context.support.AbstractDelegatingSmartContextLoader] : Delegating to GenericXmlContextLoader to process context configuration [ContextConfigurationAttributes@5419f379 declaringClass = 'org.fusesource.camel.test.FilePollerUnitTest', classes = '{}', locations = '{classpath:/META-INF/spring/camel-context.xml, classpath:/META-INF/spring/test-camel-context.xml}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader'].
[org.springframework.test.context.ContextLoaderUtils] : Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [org.fusesource.camel.test.FilePollerUnitTest]
[org.springframework.test.context.TestContextManager] : @TestExecutionListeners is not present for class [org.fusesource.camel.test.FilePollerUnitTest]: using defaults.
[org.springframework.test.context.TestContextManager] : Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/web/context/request/RequestAttributes]
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.fusesource.camel.test.FilePollerUnitTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE!
Results :
Tests in error:
initializationError(org.fusesource.camel.test.FilePollerUnitTest)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Rider Auto OSGi Example ............................ SUCCESS [ 0.277 s]
[INFO] Rider Auto OSGi Example :: Common .................. SUCCESS [ 30.002 s]
[INFO] Rider Auto OSGi Example :: File Poller ............. FAILURE [03:10 min]
[INFO] Rider Auto OSGi Example :: Web Service ............. SKIPPED
[INFO] Rider Auto OSGi Example :: Normalizer .............. SKIPPED
[INFO] Rider Auto OSGi Example :: Backend ................. SKIPPED
[INFO] Rider Auto OSGi Example :: OpenShift Installer ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:01 min
[INFO] Finished at: 2016-05-06T18:03:30-07:00
[INFO] Final Memory: 70M/425M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project rider-auto-file: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/alwong/sandbox/rider-auto-openshift/rider-auto-file/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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :rider-auto-file
With OpenJDK 1.8 devel
Downloaded: https://repo.maven.apache.org/maven2/org/jsoup/jsoup/1.7.2/jsoup-1.7.2.jar (287 KB at 59.3 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Rider Auto OSGi Example ............................ SUCCESS [ 0.104 s]
[INFO] Rider Auto OSGi Example :: Common .................. SUCCESS [ 1.698 s]
[INFO] Rider Auto OSGi Example :: File Poller ............. FAILURE [01:15 min]
[INFO] Rider Auto OSGi Example :: Web Service ............. SKIPPED
[INFO] Rider Auto OSGi Example :: Normalizer .............. SKIPPED
[INFO] Rider Auto OSGi Example :: Backend ................. SKIPPED
[INFO] Rider Auto OSGi Example :: OpenShift Installer ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:18 min
[INFO] Finished at: 2016-05-06T21:31:04-04:00
[INFO] Final Memory: 44M/286M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rider-auto-file: Could not resolve dependencies for project org.fusesource.examples:rider-auto-file:bundle:5.0-SNAPSHOT: The following artifacts could not be resolved: commons-collections:commons-collections:jar:3.2.1.redhat-7, javax.inject:javax.inject:jar:1.0.0.redhat-5: Could not find artifact commons-collections:commons-collections:jar:3.2.1.redhat-7 in fuse-releases (https://repository.jboss.org/nexus/content/repositories/fs-releases/) -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :rider-auto-file
I also had different error with OpenJDK 1.7... said something about error with 1.8 target. That's why I tried with OpenJDK 1.8. Still both didn't work.
Even when you skip tests... it fails
[vagrant@rhel-cdk rider-auto-openshift]$ mvn clean install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Rider Auto OSGi Example
[INFO] Rider Auto OSGi Example :: Common
[INFO] Rider Auto OSGi Example :: File Poller
[INFO] Rider Auto OSGi Example :: Web Service
[INFO] Rider Auto OSGi Example :: Normalizer
[INFO] Rider Auto OSGi Example :: Backend
[INFO] Rider Auto OSGi Example :: OpenShift Installer
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Rider Auto OSGi Example 5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rider-auto-osgi ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ rider-auto-osgi ---
[INFO] Installing /home/vagrant/rider-auto-openshift/pom.xml to /home/vagrant/.m2/repository/org/fusesource/examples/rider-auto-osgi/5.0-SNAPSHOT/rider-auto-osgi-5.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Rider Auto OSGi Example :: Common 5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rider-auto-common ---
[INFO] Deleting /home/vagrant/rider-auto-openshift/rider-auto-common/target
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ rider-auto-common ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ rider-auto-common ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /home/vagrant/rider-auto-openshift/rider-auto-common/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ rider-auto-common ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ rider-auto-common ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.4.3:test (default-test) @ rider-auto-common ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-bundle-plugin:3.0.1:bundle (default-bundle) @ rider-auto-common ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:attach-artifact (attach-features-xml) @ rider-auto-common ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ rider-auto-common ---
[INFO] Installing /home/vagrant/rider-auto-openshift/rider-auto-common/target/rider-auto-common-5.0-SNAPSHOT.jar to /home/vagrant/.m2/repository/org/fusesource/examples/rider-auto-common/5.0-SNAPSHOT/rider-auto-common-5.0-SNAPSHOT.jar
[INFO] Installing /home/vagrant/rider-auto-openshift/rider-auto-common/pom.xml to /home/vagrant/.m2/repository/org/fusesource/examples/rider-auto-common/5.0-SNAPSHOT/rider-auto-common-5.0-SNAPSHOT.pom
[INFO] Installing /home/vagrant/rider-auto-openshift/rider-auto-common/target/classes/features.xml to /home/vagrant/.m2/repository/org/fusesource/examples/rider-auto-common/5.0-SNAPSHOT/rider-auto-common-5.0-SNAPSHOT-features.xml
[INFO]
[INFO] --- maven-bundle-plugin:3.0.1:install (default-install) @ rider-auto-common ---
[INFO] Installing org/fusesource/examples/rider-auto-common/5.0-SNAPSHOT/rider-auto-common-5.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Rider Auto OSGi Example :: File Poller 5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for commons-collections:commons-collections:jar:3.2.1.redhat-7 is missing, no dependency information available
[WARNING] The POM for javax.inject:javax.inject:jar:1.0.0.redhat-5 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Rider Auto OSGi Example ............................ SUCCESS [ 0.099 s]
[INFO] Rider Auto OSGi Example :: Common .................. SUCCESS [ 1.565 s]
[INFO] Rider Auto OSGi Example :: File Poller ............. FAILURE [ 0.522 s]
[INFO] Rider Auto OSGi Example :: Web Service ............. SKIPPED
[INFO] Rider Auto OSGi Example :: Normalizer .............. SKIPPED
[INFO] Rider Auto OSGi Example :: Backend ................. SKIPPED
[INFO] Rider Auto OSGi Example :: OpenShift Installer ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.416 s
[INFO] Finished at: 2016-05-06T23:48:39-04:00
[INFO] Final Memory: 43M/274M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rider-auto-file: Could not resolve dependencies for project org.fusesource.examples:rider-auto-file:bundle:5.0-SNAPSHOT: The following artifacts could not be resolved: commons-collections:commons-collections:jar:3.2.1.redhat-7, javax.inject:javax.inject:jar:1.0.0.redhat-5: Failure to find commons-collections:commons-collections:jar:3.2.1.redhat-7 in https://repository.jboss.org/nexus/content/repositories/fs-releases/ was cached in the local repository, resolution will not be reattempted until the update interval of fuse-releases 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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :rider-auto-file
Don't need to skip tests now; i've removed unit tests as those are not relevant to this demo. They're still in the original rider osgi project if want to demo unit tests, etc (https://github.com/RedHatWorkshops/rider-auto-osgi). I've left the Kubernetes Integration tests in as that's something I'd like to get working at some point as well. Let's open another issue to track the missing dependencies https://github.com/RedHatWorkshops/rider-auto-openshift/issues/13
maven install executed from a fresh git clone installation generates this error
Full stack trace