PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-8691

Service builder doesn't generate model interfaces, only implementation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Completed
    • Affects Version/s: 6.0.0 Preview
    • Fix Version/s: 6.0.6 GA
    • Labels:
      None
    • Environment:
      tomcat 6.0.24, linux
    • Similar Issues:
      Show 4 results 

      Description

      From within pluginSDK/portlet environment when build-service target is started from a portlet, it generates everything properly except those model interfaces

      com.liferay.whatever.model.BookReportsEntry; < - this is missing - the entire package
      com.liferay.whatever.model.impl.BookReportsEntryImpl; <- this is generated

      Could please anybody tell my what is going on ?

        Activity

        Hide
        Jakub Liska added a comment -

        Don't look at the names of classes, instead of book there is recipe

        ~/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet$ ant build-service
        Buildfile: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/build.xml

        build-service:
        [mkdir] Created dir: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/classes
        [copy] Copied 9 empty directories to 5 empty directories under /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/classes
        [java] Loading jar:file:/opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
        [java] Loading jar:file:/opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
        [java] Loading jar:file:/opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
        [java] 00:53:27,823 INFO [PortalImpl:258] Global lib directory /opt/aaa/liferay-portal-6.0.0/at-2/lib/ext/
        [java] 00:53:27,844 INFO [PortalImpl:278] Portal lib directory /opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/
        [java] Building RecipeReportsEntry
        [java] Writing docroot/WEB-INF/service/com/liferay/recipeManager/model/RecipeReportsEntryWrapper.java
        [mkdir] Created dir: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/service-classes
        [delete] Deleting: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/lib/recipe-manager-portlet-service.jar
        [javac] Compiling 19 source files to /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/service-classes
        [javac] Note: Some input files use unchecked or unsafe operations.
        [javac] Note: Recompile with -Xlint:unchecked for details.
        [zip] Building zip: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/lib/recipe-manager-portlet-service.jar
        [delete] Deleting directory /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/service-classes

        BUILD SUCCESSFUL

        Show
        Jakub Liska added a comment - Don't look at the names of classes, instead of book there is recipe ~/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet$ ant build-service Buildfile: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/build.xml build-service: [mkdir] Created dir: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/classes [copy] Copied 9 empty directories to 5 empty directories under /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/classes [java] Loading jar: file:/opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties [java] Loading jar: file:/opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties [java] Loading jar: file:/opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties [java] 00:53:27,823 INFO [PortalImpl:258] Global lib directory /opt/aaa/liferay-portal-6.0.0/at-2/lib/ext/ [java] 00:53:27,844 INFO [PortalImpl:278] Portal lib directory /opt/aaa/liferay-portal-6.0.0/at-2/webapps/ROOT/WEB-INF/lib/ [java] Building RecipeReportsEntry [java] Writing docroot/WEB-INF/service/com/liferay/recipeManager/model/RecipeReportsEntryWrapper.java [mkdir] Created dir: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/service-classes [delete] Deleting: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/lib/recipe-manager-portlet-service.jar [javac] Compiling 19 source files to /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/service-classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [zip] Building zip: /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/lib/recipe-manager-portlet-service.jar [delete] Deleting directory /home/lisak/workspace/liferay-stable/portal-svn/plugins/portlets/recipe-manager-portlet/docroot/WEB-INF/service-classes BUILD SUCCESSFUL
        Hide
        Jakub Liska added a comment -

        Ou my shitness, I overlooked the service directory ... my appologies

        Show
        Jakub Liska added a comment - Ou my shitness, I overlooked the service directory ... my appologies

          People

          • Assignee:
            SE Support
            Reporter:
            Jakub Liska
            Recent user:
            Randy Zhu
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 9 weeks, 4 days ago

              Development

                Structure Helper Panel