GitHub user aledsage opened a pull request:

    https://github.com/apache/brooklyn-server/pull/629

    Fix itests

    Without these fixes, it fails if the local .m2 doesn't already have the 
pre-built artifacts it needs.
    
    For example, the command below fails if your local .m2 is empty. I think 
this is important for being able to build RCs cleanly, rather than it relying 
on finding existing artifacts on the file system.
    ```
    mvn clean install 
-Dmaven.repo.local=/Users/aledsage/temp/mvn-repo-for-itest-testing
    ```
    The failures were:
    ```
      FeatureInstallationTest.testBrooklynApiFeature » Multi Error
      FeatureInstallationTest.testBrooklynCoreFeature » Multi Error
      FeatureInstallationTest.testBrooklynLocationsJcloudsFeature » Multi Error
    ```
    with errors like:
    ```
    2017-04-11 19:53:22,005 | WARN  | pool-28-thread-1 | AetherBasedResolver    
          | 7 - org.ops4j.pax.url.mvn - 2.5.2 | Error resolving artifact 
org.apache.brooklyn:brooklyn-api:jar:0.11
    .0: [Could not find artifact org.apache.brooklyn:brooklyn-api:jar:0.11.0 in 
central (http://repo1.maven.org/maven2/), Could not find artifact 
org.apache.brooklyn:brooklyn-api:jar:0.11.0 in s
    pring.ebr.release 
(http://repository.springsource.com/maven/bundles/release/), Could not find 
artifact org.apache.brooklyn:brooklyn-api:jar:0.11.0 in spring.ebr.external 
(http://repository.s
    pringsource.com/maven/bundles/external/), Could not find artifact 
org.apache.brooklyn:brooklyn-api:jar:0.11.0 in gemini 
(http://zodiac.springsource.com/maven/bundles/release/), Could not fin
    d artifact org.apache.brooklyn:brooklyn-api:jar:0.11.0 in local 
(file:/Users/aledsage/repos/apache/brooklyn/brooklyn-server/karaf/itests/target/features-repo@releases/)]
    java.io.IOException: Error resolving artifact 
org.apache.brooklyn:brooklyn-api:jar:0.11.0: [Could not find artifact 
org.apache.brooklyn:brooklyn-api:jar:0.11.0 in central (http://repo1.maven
    .org/maven2/), Could not find artifact 
org.apache.brooklyn:brooklyn-api:jar:0.11.0 in spring.ebr.release 
(http://repository.springsource.com/maven/bundles/release/), Could not find 
artifact 
    org.apache.brooklyn:brooklyn-api:jar:0.11.0 in spring.ebr.external 
(http://repository.springsource.com/maven/bundles/external/), Could not find 
artifact org.apache.brooklyn:brooklyn-api:jar:
    0.11.0 in gemini (http://zodiac.springsource.com/maven/bundles/release/), 
Could not find artifact org.apache.brooklyn:brooklyn-api:jar:0.11.0 in local 
(file:/Users/aledsage/repos/apache/broo
    klyn/brooklyn-server/karaf/itests/target/features-repo@releases/)]
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aledsage/brooklyn-server fix-itests

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/629.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #629
    
----
commit afcaa46287382ab46c5bfc997f71894bdd4c808e
Author: Aled Sage <[email protected]>
Date:   2017-04-11T19:30:18Z

    Fix FeatureInstallationTest#testBrooklynLocationsJcloudsFeature
    
    It needs to find `brooklyn-locations-jclouds` bundles, so make sure they 
    are in the `target/features-repo`

commit f50256418d2f4c9d0a9e82048a6035afb50b3b1c
Author: Aled Sage <[email protected]>
Date:   2017-04-11T19:31:34Z

    Fix FeatureInstallationTest’s features-repo
    
    “@releases” is not a valid option - it creates an empty  directory with 
    the suffix “@releases” if the artefacts can’t be found in the other 
    repos (e.g. in ~/.m2/repository).

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to