You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by ahgittin <gi...@git.apache.org> on 2018/09/15 19:35:01 UTC

[GitHub] brooklyn-server pull request #994: bump karaf version to get consistent jett...

GitHub user ahgittin opened a pull request:

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

    bump karaf version to get consistent jetty

    #991 broke the feature verification build in `dist`.  seems we need to bump karaf as well as it pullls in a version of jetty, and we want them consistent.

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

    $ git pull https://github.com/ahgittin/brooklyn-server bump-version

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

    https://github.com/apache/brooklyn-server/pull/994.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 #994
    
----
commit 115d649a6e3f3d88aadc105c4cf3e7751fb8ba5b
Author: Alex Heneveld <al...@...>
Date:   2018-09-15T19:33:50Z

    bump karaf version to get consistent jetty

----


---

[GitHub] brooklyn-server issue #994: bump karaf version to get consistent jetty

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/994
  
    I changed a few more things as well when looking at this:
    
    In `pom.xml`:
    ```
    <karaf.plugin.version>4.1.6</karaf.plugin.version>
    ```
    
    In `karaf/features/pom.xml`:
    ```
    <versionRange>[4.1.6,)</versionRange>
    ```
    
    https://github.com/apache/brooklyn-ui/blob/master/modularity-server/features/pom.xml#L179 to version range `[4.1.6,)`. Without this last change, it failed with:
    ```
    [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.1.2:verify (verify-brooklyn-ui-modularity-feature) on project brooklyn-ui-modularity-features: Verification failures: Verification failures:
    [ERROR]         Unable to resolve framework features
    [ERROR]         Unable to resolve framework features
    [ERROR]         Unable to resolve framework features
    ```
    ---
    On my old laptop, when trying to build with `mvnf ./ -DscmBranch=mater -DbuildNumber=1.0.0-SNAPSHOT`, I also had a weird (unrelated?) error, which went away when I bumped the `swagger-maven-plugin` to 3.1.7 (from 3.1.4). However I didn't hit this error when I built it on my new laptop!
    ```
    [INFO] Brooklyn REST API .................................. FAILURE [  2.858 s]
    
    [ERROR] Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.1.4:generate (default) on project brooklyn-rest-api: Execution default of goal com.github.kongchen:swagger-maven-plugin:3.1.4:generate failed: Plugin com.github.kongchen:swagger-maven-plugin:3.1.4 or one of its dependencies could not be resolved: Failed to collect dependencies at com.github.kongchen:swagger-maven-plugin:jar:3.1.4 -> org.apache.commons:commons-lang3:jar:[3.4,4.0): No versions available for org.apache.commons:commons-lang3:jar:[3.4,4.0) within specified range ->
    ```


---

[GitHub] brooklyn-server issue #994: bump karaf version to get consistent jetty

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/994
  
    Suggest we close this, and instead merge:
    https://github.com/apache/brooklyn-server/pull/995
    https://github.com/apache/brooklyn-ui/pull/70
    
    If jenkins builds work for those, then I'll merge those PRs.


---

[GitHub] brooklyn-server issue #994: bump karaf version to get consistent jetty

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/994
  
    Confirmed that with *my* build (with the additional edits I listed above), the `brooklyn-dist/karaf/apache-brooklyn/target/assembly` works.
    
    I suggest we also change the `karaf.plugin.version` and the two version ranges to be 4.1.6. Then everything is more consistent (even if it's not essential on your laptop @ahgittin).
    
    The other version differences we can tackle in separate PRs - they were already out-of-sync.


---

[GitHub] brooklyn-server pull request #994: bump karaf version to get consistent jett...

Posted by ahgittin <gi...@git.apache.org>.
Github user ahgittin closed the pull request at:

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


---

[GitHub] brooklyn-server issue #994: bump karaf version to get consistent jetty

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/994
  
    Eye-balling what karaf 4.1.6 ships with, what we have in the brooklyn based on 4.1.2, and what dependencies we declare in the poms, there are a few discrepancies:
    
    ```
    Karaf 4.1.6 (vanilla)       Broolyn dependency   Previous Brooklyn Karaf distro (4.1.2)        New Brooklyn Karaf distro (4.1.6)
    slf4j-api-1.7.12.jar        1.7.25               slf4j-api-1.7.12.jar and jul-to-slf4j-1.7.25  slf4j-api-1.7.12.jar and jul-to-slf4j-1.7.25
    asm-all-5.2.jar             5.0.4                asm-all-5.2.jar and asm-all-5.0.2.jar         asm-all-5.2.jar and asm-all-5.0.2.jar
    jansi-1.17.1.jar            1.2.1                jansi-1.16.jar                                jansi-1.17.1.jar
    org/jline:jline-3.6.2.jar   jline:jline-2.12     jline-3.4.0.jar                               jline-3.6.2.jar
    felix.framework-5.6.10.jar  5.6.1                felix.framework-5.6.6                         felix.framework-5.6.10.jar
    ```


---

[GitHub] brooklyn-server issue #994: bump karaf version to get consistent jetty

Posted by ahgittin <gi...@git.apache.org>.
Github user ahgittin commented on the issue:

    https://github.com/apache/brooklyn-server/pull/994
  
    agree the add'l changes in #995 are good to have.  +1 to aligning with karaf versions and watching where we pull in the same JARs at different versions.


---