Uploaded image for project: 'PUBLIC - Liferay BLADE'
  1. PUBLIC - Liferay BLADE
  2. BLADE-669

Gradle builds genereates OSGI-INF/metatype/..CustomScreenNameConfiguration.xml but maven do not

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • master
    • master
    • blade-samples
    • Accept

    Description

      I just noticed that screen-name-validator configuration do not work when doing with maven and then when I further did study realized that OSGI-INF/metatype/com.liferay.blade.samples.screenname.validator.CustomScreenNameConfiguration.xml wasn't generated during the build

      unzipped maven build result:

      :~/github/liferay-blade-samples/maven/extensions/screen-name-validator/target$  (master)$unzip com.liferay.blade.screen.name.validator-1.0.0.jar 
      Archive:  com.liferay.blade.screen.name.validator-1.0.0.jar
         creating: META-INF/
        inflating: META-INF/MANIFEST.MF    
         creating: OSGI-OPT/
         creating: OSGI-OPT/src/
         creating: OSGI-OPT/src/com/
         creating: OSGI-OPT/src/com/liferay/
         creating: OSGI-OPT/src/com/liferay/blade/
         creating: OSGI-OPT/src/com/liferay/blade/samples/
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/internal/
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/definition/
         creating: content/
         creating: OSGI-INF/
         creating: com/
         creating: com/liferay/
         creating: com/liferay/blade/
         creating: com/liferay/blade/samples/
         creating: com/liferay/blade/samples/screenname/
         creating: com/liferay/blade/samples/screenname/validator/
         creating: com/liferay/blade/samples/screenname/validator/internal/
         creating: com/liferay/blade/samples/screenname/validator/definition/
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/internal/CustomScreenNameValidator.java  
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/CustomScreenNameConfiguration.java  
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/CustomScreenName.java  
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationPidMapping.java  
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationBeanDeclaration.java  
        inflating: content/Language.properties  
        inflating: OSGI-INF/com.liferay.blade.samples.screenname.validator.internal.CustomScreenNameValidator.xml  
        inflating: OSGI-INF/com.liferay.blade.samples.screenname.validator.definition.CustomScreenNameCompanyServiceConfigurationBeanDeclaration.xml  
        inflating: OSGI-INF/com.liferay.blade.samples.screenname.validator.definition.CustomScreenNameCompanyServiceConfigurationPidMapping.xml  
        inflating: com/liferay/blade/samples/screenname/validator/internal/CustomScreenNameValidator.class  
        inflating: com/liferay/blade/samples/screenname/validator/CustomScreenName.class  
        inflating: com/liferay/blade/samples/screenname/validator/CustomScreenNameConfiguration.class  
        inflating: com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationPidMapping.class  
        inflating: com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationBeanDeclaration.class  
         creating: META-INF/maven/
         creating: META-INF/maven/blade/
         creating: META-INF/maven/blade/screen-name-validator/
        inflating: META-INF/maven/blade/screen-name-validator/pom.xml  
        inflating: META-INF/maven/blade/screen-name-validator/pom.properties
      

      Unzipped gradle build result

      :~/github/liferay-blade-samples/liferay-workspace/extensions/screen-name-validator/build/libs$  (master)$unzip com.liferay.blade.screen.name.validator-1.0.0.jar 
      Archive:  com.liferay.blade.screen.name.validator-1.0.0.jar
         creating: META-INF/
        inflating: META-INF/MANIFEST.MF    
         creating: OSGI-INF/
        inflating: OSGI-INF/com.liferay.blade.samples.screenname.validator.definition.CustomScreenNameCompanyServiceConfigurationBeanDeclaration.xml  
        inflating: OSGI-INF/com.liferay.blade.samples.screenname.validator.definition.CustomScreenNameCompanyServiceConfigurationPidMapping.xml  
        inflating: OSGI-INF/com.liferay.blade.samples.screenname.validator.internal.CustomScreenNameValidator.xml  
         creating: OSGI-INF/metatype/
        inflating: OSGI-INF/metatype/com.liferay.blade.samples.screenname.validator.CustomScreenNameConfiguration.xml  
         creating: OSGI-OPT/
         creating: OSGI-OPT/src/
         creating: OSGI-OPT/src/com/
         creating: OSGI-OPT/src/com/liferay/
         creating: OSGI-OPT/src/com/liferay/blade/
         creating: OSGI-OPT/src/com/liferay/blade/samples/
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/CustomScreenName.java  
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/CustomScreenNameConfiguration.java  
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/definition/
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationBeanDeclaration.java  
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationPidMapping.java  
         creating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/internal/
        inflating: OSGI-OPT/src/com/liferay/blade/samples/screenname/validator/internal/CustomScreenNameValidator.java  
         creating: com/
         creating: com/liferay/
         creating: com/liferay/blade/
         creating: com/liferay/blade/samples/
         creating: com/liferay/blade/samples/screenname/
         creating: com/liferay/blade/samples/screenname/validator/
        inflating: com/liferay/blade/samples/screenname/validator/CustomScreenName.class  
        inflating: com/liferay/blade/samples/screenname/validator/CustomScreenNameConfiguration.class  
         creating: com/liferay/blade/samples/screenname/validator/definition/
        inflating: com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationBeanDeclaration.class  
        inflating: com/liferay/blade/samples/screenname/validator/definition/CustomScreenNameCompanyServiceConfigurationPidMapping.class  
         creating: com/liferay/blade/samples/screenname/validator/internal/
        inflating: com/liferay/blade/samples/screenname/validator/internal/CustomScreenNameValidator.class  
         creating: content/
        inflating: content/Language.properties  
      

      So the maven build result is missing

         creating: OSGI-INF/metatype/
        inflating: OSGI-INF/metatype/com.liferay.blade.samples.screenname.validator.CustomScreenNameConfiguration.xml 
      

      Attachments

        Activity

          People

            lawrence.lee Lawrence Lee
            sammso Sampsa Sohlman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                master