Cayenne
  1. Cayenne
  2. CAY-1790

append cayenne-modeler-eclipse-plugin into build tree

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1B2
    • Fix Version/s: None
    • Component/s: Modeler
    • Labels:
      None

      Description

      I have forked cayenne Github repository into ischindl/cayenne and in branch eclipse-plugin is added support for building eclipse-plugin for cayenne modeler. Support is based on tycho and p2-maven-plugin. More details are in README.md in project. Side efect of this is that Cayenne is usable in OSGI environment.

      Excuse me english, please .

      1. plugins.png
        159 kB
        Andrus Adamchik

        Activity

        Hide
        Andrus Adamchik added a comment -

        > excuse me but I don't know how can I response on markmail?

        Of course you can't Please send a message to our dev list. Here is the info on the dev list: http://cayenne.apache.org/mailing-lists.html . Subscription address is dev-subscribe at cayenne.apache.org . List address for messages is dev at cayenne.apache.org

        Show
        Andrus Adamchik added a comment - > excuse me but I don't know how can I response on markmail? Of course you can't Please send a message to our dev list. Here is the info on the dev list: http://cayenne.apache.org/mailing-lists.html . Subscription address is dev-subscribe at cayenne.apache.org . List address for messages is dev at cayenne.apache.org
        Hide
        Imrich Schindler added a comment -

        Hello Andrus, excuse me but I don't know how can I response on markmail?

        About your questions on markmail.

        earlier
        http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-modeler-eclipse-plugin/

        Code of plugin is completely related to
        http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-modeler-eclipse-plugin-gsoc/
        <http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-modeler-eclipse-plugin/>

        I was only must change package name (added .modeler.eclipse) because in
        OSGI make troubles if two budles exports same
        package(org.apache.cayenne). This package export
        org.apache.cayenne.server bundle.

        My work was only rewrite build from maven first to Manifest first with
        tycho and p2-maven-plugin support.
        This makes plugin very thin(all dependencies are OSGI budles and it is
        not needed packaged them with modeler in one big bundle)
        and independent from eclipse version(if you can build plugin for Indigo
        and not for Juno eclipse version, you can do this with small change in
        pom.xml - you need only change p2 repository from Juno to Indigo)

        2. What are your plans for future development of the plugin? If we move
        it to
        Apache infrastructure from GitHub, would you be interested to work with
        us here?
        Or do you feel like keeping working on GitHub instead?
        You can move plugin into apache infrastructure. I worked on it for all
        cayenne community. I'm using cayenne on daily basis in our closed source
        software(single sourced eclipse RCP/RAP based application).
        It is very useful software. My future plans , I have little spare
        time, but if will be needed I can help improve this plugin.

        And about IP - I have not any IP with code. All my work is free.

        Imrich

        On 28.01.2013 00:29, Andrus Adamchik (JIRA) wrote:

        Show
        Imrich Schindler added a comment - Hello Andrus, excuse me but I don't know how can I response on markmail? About your questions on markmail. earlier http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-modeler-eclipse-plugin/ Code of plugin is completely related to http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-modeler-eclipse-plugin-gsoc/ < http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-modeler-eclipse-plugin/ > I was only must change package name (added .modeler.eclipse) because in OSGI make troubles if two budles exports same package(org.apache.cayenne). This package export org.apache.cayenne.server bundle. My work was only rewrite build from maven first to Manifest first with tycho and p2-maven-plugin support. This makes plugin very thin(all dependencies are OSGI budles and it is not needed packaged them with modeler in one big bundle) and independent from eclipse version(if you can build plugin for Indigo and not for Juno eclipse version, you can do this with small change in pom.xml - you need only change p2 repository from Juno to Indigo) 2. What are your plans for future development of the plugin? If we move it to Apache infrastructure from GitHub, would you be interested to work with us here? Or do you feel like keeping working on GitHub instead? You can move plugin into apache infrastructure. I worked on it for all cayenne community. I'm using cayenne on daily basis in our closed source software(single sourced eclipse RCP/RAP based application). It is very useful software. My future plans , I have little spare time, but if will be needed I can help improve this plugin. And about IP - I have not any IP with code. All my work is free. Imrich On 28.01.2013 00:29, Andrus Adamchik (JIRA) wrote:
        Hide
        Andrus Adamchik added a comment - - edited

        Success - I was able to run the same build of the plugin on a CentOS (run on VirtualBox VM). Not sure whether the failure on OS X is due to the OS, or the other plugins. I guess we'll figure it out. Now I a thinking what's the best way for us to incorporate these changes to Cayenne. Hope you don't mind if I take this discussion out of Jira and on to the mailing list to make it a bit more visible? Here is the thread:

        http://markmail.org/message/mh2m3dxumui6otp5

        Show
        Andrus Adamchik added a comment - - edited Success - I was able to run the same build of the plugin on a CentOS (run on VirtualBox VM). Not sure whether the failure on OS X is due to the OS, or the other plugins. I guess we'll figure it out. Now I a thinking what's the best way for us to incorporate these changes to Cayenne. Hope you don't mind if I take this discussion out of Jira and on to the mailing list to make it a bit more visible? Here is the thread: http://markmail.org/message/mh2m3dxumui6otp5
        Hide
        Andrus Adamchik added a comment -

        Hi! I did build it from the command line every time. I'll try your other suggestions later today. Thanks for bearing with me

        Show
        Andrus Adamchik added a comment - Hi! I did build it from the command line every time. I'll try your other suggestions later today. Thanks for bearing with me
        Hide
        Imrich Schindler added a comment -

        Hello Andrus, try build plugin from command line and not throught m2e from eclipse. I have same trouble with m2e build like you.

        Show
        Imrich Schindler added a comment - Hello Andrus, try build plugin from command line and not throught m2e from eclipse. I have same trouble with m2e build like you.
        Hide
        Imrich Schindler added a comment -

        I am on linux 64bit debian, I have created new copy of eclipse and new workspace and install builded 3.2.M1 version of CM eclipse plugin into it and all is ok.

        But your listing:

        osgi> ss cayenne
        "Framework is launched."

        id State Bundle
        osgi>

        Is not good. Try it once more please.

        Show
        Imrich Schindler added a comment - I am on linux 64bit debian, I have created new copy of eclipse and new workspace and install builded 3.2.M1 version of CM eclipse plugin into it and all is ok. But your listing: osgi> ss cayenne "Framework is launched." id State Bundle osgi> Is not good. Try it once more please.
        Hide
        Imrich Schindler added a comment - - edited

        Please, try eclipse with new empty workspace, may be that workspace builded plugin have collision with installed one.

        And one question. How you install plugin into eclipse? Copy into dropins directory or throught p2 install (Help/Install New Software) ?

        2nd id right.

        Show
        Imrich Schindler added a comment - - edited Please, try eclipse with new empty workspace, may be that workspace builded plugin have collision with installed one. And one question. How you install plugin into eclipse? Copy into dropins directory or throught p2 install (Help/Install New Software) ? 2nd id right.
        Hide
        Andrus Adamchik added a comment -

        Eclipse Java EE IDE for Web Developers.
        Version: Juno Release
        Build id: 20120614-1722

        I am on OS X 10.8.2 if that matters... using built-in java 6

        Here is a screenshot of my plugins.

        Show
        Andrus Adamchik added a comment - Eclipse Java EE IDE for Web Developers. Version: Juno Release Build id: 20120614-1722 I am on OS X 10.8.2 if that matters... using built-in java 6 Here is a screenshot of my plugins.
        Hide
        Imrich Schindler added a comment -

        Hm, my console print is :

        ss cayenne
        "Framework is launched."

        id State Bundle
        59 RESOLVED org.apache.cayenne.modeler_3.2.0.M1
        60 STARTING org.apache.cayenne.modeler.eclipse.plugin_3.2.0.M1
        61 RESOLVED org.apache.cayenne.project_3.2.0.M1
        62 RESOLVED org.apache.cayenne.server_3.2.0.M1
        63 RESOLVED org.apache.cayenne.tools_3.2.0.M1

        and plugin is ok. Which version of eclipse are use? Juno ? Is it Cayenne Modeler plugin in installed software in eclipse instalation details dialog?

        You can try "-clean" parameter of eclipse

        Show
        Imrich Schindler added a comment - Hm, my console print is : ss cayenne "Framework is launched." id State Bundle 59 RESOLVED org.apache.cayenne.modeler_3.2.0.M1 60 STARTING org.apache.cayenne.modeler.eclipse.plugin_3.2.0.M1 61 RESOLVED org.apache.cayenne.project_3.2.0.M1 62 RESOLVED org.apache.cayenne.server_3.2.0.M1 63 RESOLVED org.apache.cayenne.tools_3.2.0.M1 and plugin is ok. Which version of eclipse are use? Juno ? Is it Cayenne Modeler plugin in installed software in eclipse instalation details dialog? You can try "-clean" parameter of eclipse
        Hide
        Andrus Adamchik added a comment -

        Just built origin/STABLE-3.1. Same behavior as before.

        osgi> ss cayenne
        "Framework is launched."

        id State Bundle
        osgi>

        Haven't tried the updated "eclipse-plugin" branch.

        Show
        Andrus Adamchik added a comment - Just built origin/STABLE-3.1. Same behavior as before. osgi> ss cayenne "Framework is launched." id State Bundle osgi> Haven't tried the updated "eclipse-plugin" branch.
        Hide
        Imrich Schindler added a comment -

        In eclipse-plugin branch is now buildable and useable version 3.2.M1.

        Show
        Imrich Schindler added a comment - In eclipse-plugin branch is now buildable and useable version 3.2.M1.
        Hide
        Imrich Schindler added a comment - - edited

        To test if plugin is acticve try this:

        run eclipse with "-debug -console - consloeLog" parameters

        this opens command window with osgi> prompt
        enter command

        "ss cayenne"

        if plugins are installed you see print like:

        nnn ACTIVE (RESOLVED, INSTALLED) org.apache.cayenne.modeler...
        .
        .
        .

        where nnn is number of bundle in osgi
        if status is'nt ACTIVE try command

        "diag nnn"

        where nnn is bundle number and you can see why bundle can't be ACTIVE (unresolved dependencies)

        I am working on branch STABLE-3.1 just now. Try, please, use this branch from my repository.

        Show
        Imrich Schindler added a comment - - edited To test if plugin is acticve try this: run eclipse with "-debug -console - consloeLog" parameters this opens command window with osgi> prompt enter command "ss cayenne" if plugins are installed you see print like: nnn ACTIVE (RESOLVED, INSTALLED) org.apache.cayenne.modeler... . . . where nnn is number of bundle in osgi if status is'nt ACTIVE try command "diag nnn" where nnn is bundle number and you can see why bundle can't be ACTIVE (unresolved dependencies) I am working on branch STABLE-3.1 just now. Try, please, use this branch from my repository.
        Hide
        Andrus Adamchik added a comment -

        I was able to build it now. Installed it in Eclipse (v.20120614-1722). I guess I am still missing something here. I have a few existing Cayenne 3.2 projects (m2eclipse projects). 'cayenne-xyz.xml' in those can only be opened the old way as XML. And "open with.." doesn't offer me any new choices.

        Show
        Andrus Adamchik added a comment - I was able to build it now. Installed it in Eclipse (v.20120614-1722). I guess I am still missing something here. I have a few existing Cayenne 3.2 projects (m2eclipse projects). 'cayenne-xyz.xml' in those can only be opened the old way as XML. And "open with.." doesn't offer me any new choices.
        Hide
        Imrich Schindler added a comment -

        For CM eclipse plugin build can be used Tycho stable version 0.16.0, I change it in repository

        Show
        Imrich Schindler added a comment - For CM eclipse plugin build can be used Tycho stable version 0.16.0, I change it in repository
        Hide
        Andrus Adamchik added a comment -

        Hey very cool. So I figured out how to build p2-maven-plugin SNAPSHOT locally:

        git clone https://github.com/reficio/p2-maven-plugin.git
        cd p2-maven-plugin
        mvn clean install

        (Would be cool to have a published version that is not a SNAPSHOT, but I guess we'll deal with that later)

        Now the tycho plugin dependency is also a SNAPSHOT: org.eclipse.tycho:tycho-maven-plugin:jar:0.17.0-SNAPSHOT Where do I get the sources for Tycho?

        Show
        Andrus Adamchik added a comment - Hey very cool. So I figured out how to build p2-maven-plugin SNAPSHOT locally: git clone https://github.com/reficio/p2-maven-plugin.git cd p2-maven-plugin mvn clean install (Would be cool to have a published version that is not a SNAPSHOT, but I guess we'll deal with that later) Now the tycho plugin dependency is also a SNAPSHOT: org.eclipse.tycho:tycho-maven-plugin:jar:0.17.0-SNAPSHOT Where do I get the sources for Tycho?

          People

          • Assignee:
            Unassigned
            Reporter:
            Imrich Schindler
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development